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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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" ] |
71 | 71 |
72 if (is_win) { | 72 if (is_win) { |
73 cflags += [ "/wd4267" ] # Disable warning: Conversion from size_t to 'type'
. | |
74 | |
75 sources -= [ | 73 sources -= [ |
76 "unix_err.c", | 74 "unix_err.c", |
77 "unix_err.h", | 75 "unix_err.h", |
78 ] | 76 ] |
79 if (component_mode == "shared_library") { | 77 if (component_mode == "shared_library") { |
80 ldflags = [ "/DEF:" + rebase_path("exports_win.def", root_build_dir) ] | 78 ldflags = [ "/DEF:" + rebase_path("exports_win.def", root_build_dir) ] |
81 } | 79 } |
82 } else if (is_linux) { | 80 } else if (is_linux) { |
83 if (component_mode == "shared_library") { | 81 if (component_mode == "shared_library") { |
84 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] | 82 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 public_deps = [ | 118 public_deps = [ |
121 "//third_party/nss:nspr", | 119 "//third_party/nss:nspr", |
122 "//third_party/nss:nss", | 120 "//third_party/nss:nss", |
123 ] | 121 ] |
124 } | 122 } |
125 | 123 |
126 if (is_debug) { | 124 if (is_debug) { |
127 defines += [ "DEBUG" ] | 125 defines += [ "DEBUG" ] |
128 } | 126 } |
129 } | 127 } |
OLD | NEW |