Chromium Code Reviews| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 71 | 71 |
| 72 if (is_win) { | 72 if (is_win) { |
| 73 cflags += [ "/wd4267" ] # Disable warning: Conversion from size_t to 'type' . | 73 cflags += [ "/wd4267" ] # Disable warning: Conversion from size_t to 'type' . |
| 74 | 74 |
| 75 sources -= [ | 75 sources -= [ |
| 76 "unix_err.c", | 76 "unix_err.c", |
| 77 "unix_err.h", | 77 "unix_err.h", |
| 78 ] | 78 ] |
| 79 sources += [ "exports_win.def" ] | 79 sources += [ "exports_win.def" ] |
| 80 } else if (is_linux) { | 80 } else if (is_linux) { |
| 81 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] | 81 if (component_mode == "shared_library") { |
| 82 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] | |
| 83 } | |
| 84 | |
| 82 libs = [ "dl" ] | 85 libs = [ "dl" ] |
| 83 | 86 |
| 84 include_dirs = [ "bodge" ] | 87 include_dirs = [ "bodge" ] |
| 85 | 88 |
| 86 # 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 |
| 87 # precedence. | 90 # precedence. |
| 88 direct_dependent_configs += [ | 91 direct_dependent_configs += [ |
| 89 "//third_party/nss:system_nss_no_ssl_config" | 92 "//third_party/nss:system_nss_no_ssl_config" |
| 90 ] | 93 ] |
| 91 } else if (is_mac) { | 94 } else if (is_mac) { |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 111 sources -= [ | 114 sources -= [ |
| 112 "bodge/secitem_array.c", | 115 "bodge/secitem_array.c", |
| 113 ] | 116 ] |
| 114 deps = [ | 117 deps = [ |
| 115 "//third_party/nss:nspr", | 118 "//third_party/nss:nspr", |
| 116 "//third_party/nss:nss", | 119 "//third_party/nss:nss", |
| 117 ] | 120 ] |
| 118 forward_dependent_configs_from = deps | 121 forward_dependent_configs_from = deps |
| 119 } | 122 } |
| 120 | 123 |
| 121 if (!is_win && component_mode == "shared_library") { | |
| 122 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] | |
| 123 } | |
|
wtc
2014/05/16 23:12:07
Does Mac, iOS, or Android need this?
tfarina
2014/05/16 23:23:37
That is a good question.
Currently we don't buil
| |
| 124 | |
| 125 if (is_clang) { | 124 if (is_clang) { |
| 126 cflags += [ | 125 cflags += [ |
| 127 # See http://crbug.com/138571#c8. In short, sslsecur.c picks up the | 126 # 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. | 127 # system's cert.h because cert.h isn't in chromium's repo. |
| 129 "-Wno-incompatible-pointer-types", | 128 "-Wno-incompatible-pointer-types", |
| 130 | 129 |
| 131 # There is a broken header guard in /usr/include/nss/secmod.h: | 130 # There is a broken header guard in /usr/include/nss/secmod.h: |
| 132 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 | 131 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 |
| 133 "-Wno-header-guard", | 132 "-Wno-header-guard", |
| 134 ] | 133 ] |
| 135 } | 134 } |
| 136 | 135 |
| 137 if (is_debug) { | 136 if (is_debug) { |
| 138 defines += [ "DEBUG" ] | 137 defines += [ "DEBUG" ] |
| 139 } | 138 } |
| 140 } | 139 } |
| OLD | NEW |