1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
7 [ 'os_posix == 1 and OS != "mac" and OS != "ios"', {
11 'pkg-config': '../../../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)" "<(system_libdir)"',
15 'pkg-config': 'pkg-config'
24 'target_name': 'libssl',
25 'type': '<(component)',
26 'product_name': 'crssl', # Don't conflict with OpenSSL's libssl
70 'ssl/bodge/secitem_array.c',
81 'msvs_disabled_warnings': [4018, 4244, 4267],
83 ['component == "shared_library"', {
85 ['OS == "mac" or OS == "ios"', {
87 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
92 'ssl/exports_win.def',
95 ['os_posix == 1 and OS != "mac" and OS != "ios"', {
96 'cflags!': ['-fvisibility=hidden'],
102 # There is a broken header guard in /usr/include/nss/secmod.h:
103 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072
114 [ 'OS == "mac" or OS == "ios"', {
124 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
134 { # else: OS != "win"
141 [ 'os_posix == 1 and OS != "mac" and OS != "ios"', {
146 '<!@(<(pkg-config) --cflags nss)',
149 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)',
152 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")',
155 [ 'OS == "mac" or OS == "ios" or OS == "win"', {
157 ['exclude', 'ssl/bodge/'],
162 'NSS_PLATFORM_CLIENT_AUTH',
164 'direct_dependent_settings': {
166 'NSS_PLATFORM_CLIENT_AUTH',
172 '../../../third_party/nss/nss.gyp:nspr',
173 '../../../third_party/nss/nss.gyp:nss',
175 'export_dependent_settings': [
176 '../../../third_party/nss/nss.gyp:nspr',
177 '../../../third_party/nss/nss.gyp:nss',
179 'direct_dependent_settings': {