OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 config("ssl_config") { | 5 config("ssl_config") { |
6 include_dirs = [ "." ] | 6 include_dirs = [ "." ] |
7 | 7 |
8 if (is_mac || is_win) { | 8 if (is_mac || is_win) { |
9 defines = [ "NSS_PLATFORM_CLIENT_AUTH" ] | 9 defines = [ "NSS_PLATFORM_CLIENT_AUTH" ] |
10 } | 10 } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 "sslt.h", | 50 "sslt.h", |
51 "ssltrace.c", | 51 "ssltrace.c", |
52 "sslver.c", | 52 "sslver.c", |
53 "unix_err.c", | 53 "unix_err.c", |
54 "unix_err.h", | 54 "unix_err.h", |
55 "win32err.c", | 55 "win32err.c", |
56 "win32err.h", | 56 "win32err.h", |
57 "bodge/secitem_array.c", | 57 "bodge/secitem_array.c", |
58 ] | 58 ] |
59 | 59 |
60 direct_dependent_settings = [ ":ssl_config" ] | 60 direct_dependent_configs = [ ":ssl_config" ] |
61 | 61 |
62 cflags = [] | 62 cflags = [] |
63 defines = [ | 63 defines = [ |
64 "NO_PKCS11_BYPASS", | 64 "NO_PKCS11_BYPASS", |
65 "NSS_ENABLE_ECC", | 65 "NSS_ENABLE_ECC", |
66 "USE_UTIL_DIRECTLY", | 66 "USE_UTIL_DIRECTLY", |
67 ] | 67 ] |
68 | 68 |
69 configs -= [ "//build/config/compiler:chromium_code" ] | 69 configs -= [ "//build/config/compiler:chromium_code" ] |
70 configs += [ "//build/config/compiler:no_chromium_code" ] | 70 configs += [ "//build/config/compiler:no_chromium_code" ] |
71 | 71 |
72 if (is_win) { | 72 if (is_win) { |
73 cflags += [ "/wd4267" ] # Disable warning: Conversion from size_t to 'type'
. | 73 cflags += [ "/wd4267" ] # Disable warning: Conversion from size_t to 'type'
. |
74 | 74 |
75 sources -= [ | 75 sources -= [ |
76 "unix_err.c", | 76 "unix_err.c", |
77 "unix_err.h", | 77 "unix_err.h", |
78 ] | 78 ] |
79 sources += [ "exports_win.def" ] | 79 sources += [ "exports_win.def" ] |
80 } else if (is_linux) { | 80 } else if (is_linux) { |
81 #visibility hidden thing. | 81 #visibility hidden thing. |
82 libs = [ "dl" ] | 82 libs = [ "dl" ] |
83 | 83 |
84 include_dirs = [ "bodge" ] | 84 include_dirs = [ "bodge" ] |
85 | 85 |
86 direct_dependent_configs = [ | 86 # Must be after ssl_config since we want our SSL headers to take |
| 87 # precedence. |
| 88 direct_dependent_configs += [ |
87 "//third_party/nss:system_nss_no_ssl_config" | 89 "//third_party/nss:system_nss_no_ssl_config" |
88 ] | 90 ] |
89 } else if (is_mac) { | 91 } else if (is_mac) { |
90 libs = [ "Security.framework" ] | 92 libs = [ "Security.framework" ] |
91 } | 93 } |
92 | 94 |
93 if (is_posix) { | 95 if (is_posix) { |
94 sources -= [ | 96 sources -= [ |
95 "win32err.c", | 97 "win32err.c", |
96 "win32err.h", | 98 "win32err.h", |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 # There is a broken header guard in /usr/include/nss/secmod.h: | 131 # There is a broken header guard in /usr/include/nss/secmod.h: |
130 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 | 132 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 |
131 "-Wno-header-guard", | 133 "-Wno-header-guard", |
132 ] | 134 ] |
133 } | 135 } |
134 | 136 |
135 if (is_debug) { | 137 if (is_debug) { |
136 defines += [ "DEBUG" ] | 138 defines += [ "DEBUG" ] |
137 } | 139 } |
138 } | 140 } |
OLD | NEW |