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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 # Must be after ssl_config since we want our SSL headers to take | 89 # Must be after ssl_config since we want our SSL headers to take |
90 # precedence. | 90 # precedence. |
91 public_configs += [ "//third_party/nss:system_nss_no_ssl_config" ] | 91 public_configs += [ "//third_party/nss:system_nss_no_ssl_config" ] |
92 } else if (is_mac) { | 92 } else if (is_mac) { |
93 libs = [ "Security.framework" ] | 93 libs = [ "Security.framework" ] |
94 } | 94 } |
95 | 95 |
96 if (is_clang) { | 96 if (is_clang) { |
97 # SSL triggers some of these Clang warnings. | 97 # SSL triggers some of these Clang warnings. |
98 configs -= [ "//build/config/clang:extra_warnings" ] | 98 configs -= [ "//build/config/clang:extra_warnings" ] |
| 99 |
| 100 # There is a broken header guard in /usr/include/nss/secmod.h: |
| 101 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 |
| 102 cflags = [ "-Wno-header-guard" ] |
99 } | 103 } |
100 | 104 |
101 if (is_posix) { | 105 if (is_posix) { |
102 sources -= [ | 106 sources -= [ |
103 "win32err.c", | 107 "win32err.c", |
104 "win32err.h", | 108 "win32err.h", |
105 ] | 109 ] |
106 } | 110 } |
107 | 111 |
108 if (is_mac || is_ios) { | 112 if (is_mac || is_ios) { |
109 defines += [ | 113 defines += [ |
110 "XP_UNIX", | 114 "XP_UNIX", |
111 "DARWIN", | 115 "DARWIN", |
112 "XP_MACOSX", | 116 "XP_MACOSX", |
113 ] | 117 ] |
114 } | 118 } |
115 | 119 |
116 if (is_mac || is_ios || is_win) { | 120 if (is_mac || is_ios || is_win) { |
117 sources -= [ "bodge/secitem_array.c" ] | 121 sources -= [ "bodge/secitem_array.c" ] |
118 public_deps = [ | 122 public_deps = [ |
119 "//third_party/nss:nspr", | 123 "//third_party/nss:nspr", |
120 "//third_party/nss:nss", | 124 "//third_party/nss:nss", |
121 ] | 125 ] |
122 } | 126 } |
123 | 127 |
124 if (is_debug) { | 128 if (is_debug) { |
125 defines += [ "DEBUG" ] | 129 defines += [ "DEBUG" ] |
126 } | 130 } |
127 } | 131 } |
OLD | NEW |