| 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 } | |
| 19 } | 11 } |
| 20 | 12 |
| 21 component("libssl") { | 13 component("libssl") { |
| 22 output_name = "crssl" | 14 output_name = "crssl" |
| 23 | 15 |
| 24 sources = [ | 16 sources = [ |
| 25 "authcert.c", | 17 "authcert.c", |
| 26 "cmpcert.c", | 18 "cmpcert.c", |
| 27 "derive.c", | 19 "derive.c", |
| 28 "dtlscon.c", | 20 "dtlscon.c", |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 90 |
| 99 # Must be after ssl_config since we want our SSL headers to take | 91 # Must be after ssl_config since we want our SSL headers to take |
| 100 # precedence. | 92 # precedence. |
| 101 public_configs += [ | 93 public_configs += [ |
| 102 "//third_party/nss:system_nss_no_ssl_config" | 94 "//third_party/nss:system_nss_no_ssl_config" |
| 103 ] | 95 ] |
| 104 } else if (is_mac) { | 96 } else if (is_mac) { |
| 105 libs = [ "Security.framework" ] | 97 libs = [ "Security.framework" ] |
| 106 } | 98 } |
| 107 | 99 |
| 100 if (is_clang) { |
| 101 # SSL triggers some of these Clang warnings. |
| 102 configs -= [ "//build/config/clang:extra_warnings" ] |
| 103 } |
| 104 |
| 108 if (is_posix) { | 105 if (is_posix) { |
| 109 sources -= [ | 106 sources -= [ |
| 110 "win32err.c", | 107 "win32err.c", |
| 111 "win32err.h", | 108 "win32err.h", |
| 112 ] | 109 ] |
| 113 } | 110 } |
| 114 | 111 |
| 115 if (is_mac || is_ios) { | 112 if (is_mac || is_ios) { |
| 116 defines += [ | 113 defines += [ |
| 117 "XP_UNIX", | 114 "XP_UNIX", |
| 118 "DARWIN", | 115 "DARWIN", |
| 119 "XP_MACOSX", | 116 "XP_MACOSX", |
| 120 ] | 117 ] |
| 121 } | 118 } |
| 122 | 119 |
| 123 if (is_mac || is_ios || is_win) { | 120 if (is_mac || is_ios || is_win) { |
| 124 sources -= [ | 121 sources -= [ |
| 125 "bodge/secitem_array.c", | 122 "bodge/secitem_array.c", |
| 126 ] | 123 ] |
| 127 public_deps = [ | 124 public_deps = [ |
| 128 "//third_party/nss:nspr", | 125 "//third_party/nss:nspr", |
| 129 "//third_party/nss:nss", | 126 "//third_party/nss:nss", |
| 130 ] | 127 ] |
| 131 } | 128 } |
| 132 | 129 |
| 133 if (is_debug) { | 130 if (is_debug) { |
| 134 defines += [ "DEBUG" ] | 131 defines += [ "DEBUG" ] |
| 135 } | 132 } |
| 136 } | 133 } |
| OLD | NEW |