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': 'static_library',
71 'ssl/bodge/secure_memcmp.c',
83 # Regrettably, NSS can't be compiled with NO_NSPR_10_SUPPORT yet.
87 '../../../third_party/zlib/zlib.gyp:zlib',
89 'msvs_disabled_warnings': [4018, 4244],
93 # See http://crbug.com/138571#c8. In short, sslsecur.c picks up the
94 # system's cert.h because cert.h isn't in chromium's repo.
95 '-Wno-incompatible-pointer-types',
98 [ 'OS == "mac" or OS == "ios"', {
111 { # else: OS != "win"
118 [ 'os_posix == 1 and OS != "mac" and OS != "ios"', {
120 # These macros are needed only for compiling the files in
122 'SHLIB_PREFIX="lib"',
125 'SOFTOKEN_SHLIB_VERSION="3"',
131 '<!@(<(pkg-config) --cflags nss)',
134 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)',
137 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")',
140 [ 'OS == "mac" or OS == "ios" or OS == "win"', {
142 ['exclude', 'ssl/bodge/'],
147 'NSS_PLATFORM_CLIENT_AUTH',
149 'direct_dependent_settings': {
151 'NSS_PLATFORM_CLIENT_AUTH',
157 '../../../third_party/nss/nss.gyp:nspr',
158 '../../../third_party/nss/nss.gyp:nss',
160 'export_dependent_settings': [
161 '../../../third_party/nss/nss.gyp:nspr',
162 '../../../third_party/nss/nss.gyp:nss',
164 'direct_dependent_settings': {