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
30 'ssl/bodge/secitem_array.c',
81 'msvs_disabled_warnings': [4018, 4244, 4267],
83 'clang_warning_flags_unset': [
84 # ssl uses PR_ASSERT(!"foo") instead of PR_ASSERT(false && "foo")
85 '-Wstring-conversion',
89 ['component == "shared_library"', {
91 ['OS == "mac" or OS == "ios"', {
93 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
98 'ssl/exports_win.def',
101 ['os_posix == 1 and OS != "mac" and OS != "ios"', {
102 'cflags!': ['-fvisibility=hidden'],
108 # There is a broken header guard in /usr/include/nss/secmod.h:
109 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072
120 [ 'OS == "mac" or OS == "ios"', {
130 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
140 { # else: OS != "win"
147 [ 'os_posix == 1 and OS != "mac" and OS != "ios"', {
152 '<!@(<(pkg-config) --cflags nss)',
155 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)',
158 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")',
161 [ 'OS == "mac" or OS == "ios" or OS == "win"', {
163 ['exclude', 'ssl/bodge/'],
168 'NSS_PLATFORM_CLIENT_AUTH',
170 'direct_dependent_settings': {
172 'NSS_PLATFORM_CLIENT_AUTH',
178 '../../../third_party/nss/nss.gyp:nspr',
179 '../../../third_party/nss/nss.gyp:nss',
181 'export_dependent_settings': [
182 '../../../third_party/nss/nss.gyp:nspr',
183 '../../../third_party/nss/nss.gyp:nss',
185 'direct_dependent_settings': {