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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 sources -= [ | 111 sources -= [ |
112 "bodge/secitem_array.c", | 112 "bodge/secitem_array.c", |
113 ] | 113 ] |
114 deps = [ | 114 deps = [ |
115 "//third_party/nss:nspr", | 115 "//third_party/nss:nspr", |
116 "//third_party/nss:nss", | 116 "//third_party/nss:nss", |
117 ] | 117 ] |
118 forward_dependent_configs_from = deps | 118 forward_dependent_configs_from = deps |
119 } | 119 } |
120 | 120 |
121 if (!is_win && component_mode == "shared_library") { | 121 if (component_mode == "shared_library") { |
122 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] | 122 # TODO(brettw) GCC_SYMBOLS_PRIVATE_EXTERN thing. |
123 } | 123 } |
124 | 124 |
125 if (is_clang) { | 125 if (is_clang) { |
126 cflags += [ | 126 cflags += [ |
127 # See http://crbug.com/138571#c8. In short, sslsecur.c picks up the | 127 # See http://crbug.com/138571#c8. In short, sslsecur.c picks up the |
128 # system's cert.h because cert.h isn't in chromium's repo. | 128 # system's cert.h because cert.h isn't in chromium's repo. |
129 "-Wno-incompatible-pointer-types", | 129 "-Wno-incompatible-pointer-types", |
130 | 130 |
131 # 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: |
132 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 | 132 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 |
133 "-Wno-header-guard", | 133 "-Wno-header-guard", |
134 ] | 134 ] |
135 } | 135 } |
136 | 136 |
137 if (is_debug) { | 137 if (is_debug) { |
138 defines += [ "DEBUG" ] | 138 defines += [ "DEBUG" ] |
139 } | 139 } |
140 } | 140 } |
OLD | NEW |