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.
8 'target_name': 'libssl',
9 'type': '<(component)',
10 'product_name': 'crssl', # Don't conflict with OpenSSL's libssl
14 'ssl/bodge/secitem_array.c',
65 'msvs_disabled_warnings': [4244, 4267],
67 'clang_warning_flags_unset': [
68 # ssl uses PR_ASSERT(!"foo") instead of PR_ASSERT(false && "foo")
69 '-Wstring-conversion',
73 ['component == "shared_library"', {
75 ['OS == "mac" or OS == "ios"', {
77 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
82 'ssl/exports_win.def',
85 ['os_posix == 1 and OS != "mac" and OS != "ios"', {
86 'cflags!': ['-fvisibility=hidden'],
92 # There is a broken header guard in /usr/include/nss/secmod.h:
93 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072
104 [ 'OS == "mac" or OS == "ios"', {
114 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
124 { # else: OS != "win"
131 [ 'os_posix == 1 and OS != "mac" and OS != "ios"', {
136 '<!@(<(pkg-config) --cflags nss)',
139 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)',
142 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")',
145 [ 'OS == "mac" or OS == "ios" or OS == "win"', {
147 ['exclude', 'ssl/bodge/'],
152 'NSS_PLATFORM_CLIENT_AUTH',
154 'direct_dependent_settings': {
156 'NSS_PLATFORM_CLIENT_AUTH',
162 '../../../third_party/nss/nss.gyp:nspr',
163 '../../../third_party/nss/nss.gyp:nss',
165 'export_dependent_settings': [
166 '../../../third_party/nss/nss.gyp:nspr',
167 '../../../third_party/nss/nss.gyp:nss',
169 'direct_dependent_settings': {