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 } |
| 11 |
| 12 if (is_clang) { |
| 13 cflags = [ |
| 14 # There is a broken header guard in /usr/include/nss/secmod.h: |
| 15 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 |
| 16 "-Wno-header-guard", |
| 17 ] |
| 18 } |
11 } | 19 } |
12 | 20 |
13 component("libssl") { | 21 component("libssl") { |
14 output_name = "crssl" | 22 output_name = "crssl" |
15 | 23 |
16 sources = [ | 24 sources = [ |
17 "authcert.c", | 25 "authcert.c", |
18 "cmpcert.c", | 26 "cmpcert.c", |
19 "derive.c", | 27 "derive.c", |
20 "dtlscon.c", | 28 "dtlscon.c", |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 "//third_party/nss:nss", | 127 "//third_party/nss:nss", |
120 ] | 128 ] |
121 forward_dependent_configs_from = deps | 129 forward_dependent_configs_from = deps |
122 } | 130 } |
123 | 131 |
124 if (is_clang) { | 132 if (is_clang) { |
125 cflags += [ | 133 cflags += [ |
126 # See http://crbug.com/138571#c8. In short, sslsecur.c picks up the | 134 # See http://crbug.com/138571#c8. In short, sslsecur.c picks up the |
127 # system's cert.h because cert.h isn't in chromium's repo. | 135 # system's cert.h because cert.h isn't in chromium's repo. |
128 "-Wno-incompatible-pointer-types", | 136 "-Wno-incompatible-pointer-types", |
129 | |
130 # There is a broken header guard in /usr/include/nss/secmod.h: | |
131 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 | |
132 "-Wno-header-guard", | |
133 ] | 137 ] |
134 } | 138 } |
135 | 139 |
136 if (is_debug) { | 140 if (is_debug) { |
137 defines += [ "DEBUG" ] | 141 defines += [ "DEBUG" ] |
138 } | 142 } |
139 } | 143 } |
OLD | NEW |