| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 "sslt.h", | 50 "sslt.h", |
| 51 "ssltrace.c", | 51 "ssltrace.c", |
| 52 "sslver.c", | 52 "sslver.c", |
| 53 "unix_err.c", | 53 "unix_err.c", |
| 54 "unix_err.h", | 54 "unix_err.h", |
| 55 "win32err.c", | 55 "win32err.c", |
| 56 "win32err.h", | 56 "win32err.h", |
| 57 "bodge/secitem_array.c", | 57 "bodge/secitem_array.c", |
| 58 ] | 58 ] |
| 59 | 59 |
| 60 direct_dependent_configs = [ ":ssl_config" ] | 60 public_configs = [ ":ssl_config" ] |
| 61 | 61 |
| 62 cflags = [] | 62 cflags = [] |
| 63 defines = [ | 63 defines = [ |
| 64 "NO_PKCS11_BYPASS", | 64 "NO_PKCS11_BYPASS", |
| 65 "NSS_ENABLE_ECC", | 65 "NSS_ENABLE_ECC", |
| 66 "USE_UTIL_DIRECTLY", | 66 "USE_UTIL_DIRECTLY", |
| 67 ] | 67 ] |
| 68 | 68 |
| 69 configs -= [ "//build/config/compiler:chromium_code" ] | 69 configs -= [ "//build/config/compiler:chromium_code" ] |
| 70 configs += [ "//build/config/compiler:no_chromium_code" ] | 70 configs += [ "//build/config/compiler:no_chromium_code" ] |
| (...skipping 10 matching lines...) Expand all Loading... |
| 81 if (component_mode == "shared_library") { | 81 if (component_mode == "shared_library") { |
| 82 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] | 82 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] |
| 83 } | 83 } |
| 84 | 84 |
| 85 libs = [ "dl" ] | 85 libs = [ "dl" ] |
| 86 | 86 |
| 87 include_dirs = [ "bodge" ] | 87 include_dirs = [ "bodge" ] |
| 88 | 88 |
| 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 direct_dependent_configs += [ | 91 public_configs += [ |
| 92 "//third_party/nss:system_nss_no_ssl_config" | 92 "//third_party/nss:system_nss_no_ssl_config" |
| 93 ] | 93 ] |
| 94 } else if (is_mac) { | 94 } else if (is_mac) { |
| 95 libs = [ "Security.framework" ] | 95 libs = [ "Security.framework" ] |
| 96 } | 96 } |
| 97 | 97 |
| 98 if (is_posix) { | 98 if (is_posix) { |
| 99 sources -= [ | 99 sources -= [ |
| 100 "win32err.c", | 100 "win32err.c", |
| 101 "win32err.h", | 101 "win32err.h", |
| 102 ] | 102 ] |
| 103 } | 103 } |
| 104 | 104 |
| 105 if (is_mac || is_ios) { | 105 if (is_mac || is_ios) { |
| 106 defines += [ | 106 defines += [ |
| 107 "XP_UNIX", | 107 "XP_UNIX", |
| 108 "DARWIN", | 108 "DARWIN", |
| 109 "XP_MACOSX", | 109 "XP_MACOSX", |
| 110 ] | 110 ] |
| 111 } | 111 } |
| 112 | 112 |
| 113 if (is_mac || is_ios || is_win) { | 113 if (is_mac || is_ios || is_win) { |
| 114 sources -= [ | 114 sources -= [ |
| 115 "bodge/secitem_array.c", | 115 "bodge/secitem_array.c", |
| 116 ] | 116 ] |
| 117 deps = [ | 117 public_deps = [ |
| 118 "//third_party/nss:nspr", | 118 "//third_party/nss:nspr", |
| 119 "//third_party/nss:nss", | 119 "//third_party/nss:nss", |
| 120 ] | 120 ] |
| 121 forward_dependent_configs_from = deps | |
| 122 } | 121 } |
| 123 | 122 |
| 124 if (is_clang) { | 123 if (is_clang) { |
| 125 cflags += [ | 124 cflags += [ |
| 126 # See http://crbug.com/138571#c8. In short, sslsecur.c picks up the | 125 # 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. | 126 # system's cert.h because cert.h isn't in chromium's repo. |
| 128 "-Wno-incompatible-pointer-types", | 127 "-Wno-incompatible-pointer-types", |
| 129 | 128 |
| 130 # There is a broken header guard in /usr/include/nss/secmod.h: | 129 # There is a broken header guard in /usr/include/nss/secmod.h: |
| 131 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 | 130 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 |
| 132 "-Wno-header-guard", | 131 "-Wno-header-guard", |
| 133 ] | 132 ] |
| 134 } | 133 } |
| 135 | 134 |
| 136 if (is_debug) { | 135 if (is_debug) { |
| 137 defines += [ "DEBUG" ] | 136 defines += [ "DEBUG" ] |
| 138 } | 137 } |
| 139 } | 138 } |
| OLD | NEW |