| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 if (component_mode == "shared_library") { | 83 if (component_mode == "shared_library") { |
| 84 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] | 84 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] |
| 85 } | 85 } |
| 86 | 86 |
| 87 libs = [ "dl" ] | 87 libs = [ "dl" ] |
| 88 | 88 |
| 89 include_dirs = [ "bodge" ] | 89 include_dirs = [ "bodge" ] |
| 90 | 90 |
| 91 # 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 |
| 92 # precedence. | 92 # precedence. |
| 93 public_configs += [ | 93 public_configs += [ "//third_party/nss:system_nss_no_ssl_config" ] |
| 94 "//third_party/nss:system_nss_no_ssl_config" | |
| 95 ] | |
| 96 } else if (is_mac) { | 94 } else if (is_mac) { |
| 97 libs = [ "Security.framework" ] | 95 libs = [ "Security.framework" ] |
| 98 } | 96 } |
| 99 | 97 |
| 100 if (is_clang) { | 98 if (is_clang) { |
| 101 # SSL triggers some of these Clang warnings. | 99 # SSL triggers some of these Clang warnings. |
| 102 configs -= [ "//build/config/clang:extra_warnings" ] | 100 configs -= [ "//build/config/clang:extra_warnings" ] |
| 103 } | 101 } |
| 104 | 102 |
| 105 if (is_posix) { | 103 if (is_posix) { |
| 106 sources -= [ | 104 sources -= [ |
| 107 "win32err.c", | 105 "win32err.c", |
| 108 "win32err.h", | 106 "win32err.h", |
| 109 ] | 107 ] |
| 110 } | 108 } |
| 111 | 109 |
| 112 if (is_mac || is_ios) { | 110 if (is_mac || is_ios) { |
| 113 defines += [ | 111 defines += [ |
| 114 "XP_UNIX", | 112 "XP_UNIX", |
| 115 "DARWIN", | 113 "DARWIN", |
| 116 "XP_MACOSX", | 114 "XP_MACOSX", |
| 117 ] | 115 ] |
| 118 } | 116 } |
| 119 | 117 |
| 120 if (is_mac || is_ios || is_win) { | 118 if (is_mac || is_ios || is_win) { |
| 121 sources -= [ | 119 sources -= [ "bodge/secitem_array.c" ] |
| 122 "bodge/secitem_array.c", | |
| 123 ] | |
| 124 public_deps = [ | 120 public_deps = [ |
| 125 "//third_party/nss:nspr", | 121 "//third_party/nss:nspr", |
| 126 "//third_party/nss:nss", | 122 "//third_party/nss:nss", |
| 127 ] | 123 ] |
| 128 } | 124 } |
| 129 | 125 |
| 130 if (is_debug) { | 126 if (is_debug) { |
| 131 defines += [ "DEBUG" ] | 127 defines += [ "DEBUG" ] |
| 132 } | 128 } |
| 133 } | 129 } |
| OLD | NEW |