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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 "win32err.h", | 57 "win32err.h", |
58 ] | 58 ] |
59 | 59 |
60 public_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 "_GNU_SOURCE", |
67 ] | 68 ] |
68 | 69 |
69 configs -= [ "//build/config/compiler:chromium_code" ] | 70 configs -= [ "//build/config/compiler:chromium_code" ] |
70 configs += [ "//build/config/compiler:no_chromium_code" ] | 71 configs += [ "//build/config/compiler:no_chromium_code" ] |
71 | 72 |
72 if (is_win) { | 73 if (is_win) { |
73 sources -= [ | 74 sources -= [ |
74 "unix_err.c", | 75 "unix_err.c", |
75 "unix_err.h", | 76 "unix_err.h", |
76 ] | 77 ] |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 public_deps = [ | 123 public_deps = [ |
123 "//third_party/nss:nspr", | 124 "//third_party/nss:nspr", |
124 "//third_party/nss:nss", | 125 "//third_party/nss:nss", |
125 ] | 126 ] |
126 } | 127 } |
127 | 128 |
128 if (is_debug) { | 129 if (is_debug) { |
129 defines += [ "DEBUG" ] | 130 defines += [ "DEBUG" ] |
130 } | 131 } |
131 } | 132 } |
OLD | NEW |