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)"',
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 # See http://crbug.com/138571#c8. In short, sslsecur.c picks up the
103 # system's cert.h because cert.h isn't in chromium's repo.
104 '-Wno-incompatible-pointer-types',
106 # There is a broken header guard in /usr/include/nss/secmod.h:
107 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072
111 [ 'OS == "mac" or OS == "ios"', {
121 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
131 { # else: OS != "win"
138 [ 'os_posix == 1 and OS != "mac" and OS != "ios"', {
143 '<!@(<(pkg-config) --cflags nss)',
146 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)',
149 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")',
152 [ 'OS == "mac" or OS == "ios" or OS == "win"', {
154 ['exclude', 'ssl/bodge/'],
159 'NSS_PLATFORM_CLIENT_AUTH',
161 'direct_dependent_settings': {
163 'NSS_PLATFORM_CLIENT_AUTH',
169 '../../../third_party/nss/nss.gyp:nspr',
170 '../../../third_party/nss/nss.gyp:nss',
172 'export_dependent_settings': [
173 '../../../third_party/nss/nss.gyp:nspr',
174 '../../../third_party/nss/nss.gyp:nss',
176 'direct_dependent_settings': {