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 import("//build/config/crypto.gni") | 5 import("//build/config/crypto.gni") |
6 | 6 |
7 component("crypto") { | 7 component("crypto") { |
8 output_name = "crcrypto" # Avoid colliding with OpenSSL's libcrypto. | 8 output_name = "crcrypto" # Avoid colliding with OpenSSL's libcrypto. |
9 sources = [ | 9 sources = [ |
10 "apple_keychain.h", | 10 "apple_keychain.h", |
11 "apple_keychain_ios.mm", | 11 "apple_keychain_ios.mm", |
12 "apple_keychain_mac.mm", | 12 "apple_keychain_mac.mm", |
13 "capi_util.cc", | 13 "capi_util.cc", |
14 "capi_util.h", | 14 "capi_util.h", |
15 "crypto_export.h", | 15 "crypto_export.h", |
16 "crypto_module_blocking_password_delegate.h", | |
brettw
2014/04/22 21:17:23
This file doesn't exist.
| |
17 "cssm_init.cc", | 16 "cssm_init.cc", |
18 "cssm_init.h", | 17 "cssm_init.h", |
19 "curve25519.cc", | 18 "curve25519.cc", |
20 "curve25519-donna.c", | 19 "curve25519-donna.c", |
21 "curve25519.h", | 20 "curve25519.h", |
22 "ec_private_key.h", | 21 "ec_private_key.h", |
23 "ec_private_key_nss.cc", | 22 "ec_private_key_nss.cc", |
24 "ec_private_key_openssl.cc", | 23 "ec_private_key_openssl.cc", |
25 "ec_signature_creator.cc", | 24 "ec_signature_creator.cc", |
26 "ec_signature_creator.h", | 25 "ec_signature_creator.h", |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
167 | 166 |
168 defines = [ "CRYPTO_IMPLEMENTATION" ] | 167 defines = [ "CRYPTO_IMPLEMENTATION" ] |
169 } | 168 } |
170 | 169 |
171 if (is_win) { | 170 if (is_win) { |
172 # A minimal crypto subset for hmac-related stuff that small standalone | 171 # A minimal crypto subset for hmac-related stuff that small standalone |
173 # targets can use to reduce code size on Windows. This does not depend on | 172 # targets can use to reduce code size on Windows. This does not depend on |
174 # OpenSSL/NSS but will use Windows APIs for that functionality. | 173 # OpenSSL/NSS but will use Windows APIs for that functionality. |
175 source_set("crypto_minimal_win") { | 174 source_set("crypto_minimal_win") { |
176 sources = [ | 175 sources = [ |
176 "crypto_export.h", | |
177 "hmac.cc", | 177 "hmac.cc", |
178 "hmac.h", | 178 "hmac.h", |
179 "hmac_win.cc", | 179 "hmac_win.cc", |
180 "scoped_capi_types.h", | |
181 "scoped_nss_types.h", | |
180 "secure_util.cc", | 182 "secure_util.cc", |
181 "secure_util.h", | 183 "secure_util.h", |
182 "symmetric_key.h", | 184 "symmetric_key.h", |
183 "symmetric_key_win.cc", | 185 "symmetric_key_win.cc", |
186 "third_party/nss/chromium-blapi.h", | |
184 "third_party/nss/chromium-sha256.h", | 187 "third_party/nss/chromium-sha256.h", |
185 "third_party/nss/sha512.cc", | 188 "third_party/nss/sha512.cc", |
186 ] | 189 ] |
187 | 190 |
188 deps = [ | 191 deps = [ |
189 "//base", | 192 "//base", |
190 "//base/third_party/dynamic_annotations", | 193 "//base/third_party/dynamic_annotations", |
191 ] | 194 ] |
192 | 195 |
193 defines = [ "CRYPTO_IMPLEMENTATION" ] | 196 defines = [ "CRYPTO_IMPLEMENTATION" ] |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
272 ] | 275 ] |
273 } else { | 276 } else { |
274 # Non-Linux platforms use the hermetic NSS from the tree. | 277 # Non-Linux platforms use the hermetic NSS from the tree. |
275 deps += [ | 278 deps += [ |
276 "//third_party/nss:nspr", | 279 "//third_party/nss:nspr", |
277 "//third_party/nss:nss", | 280 "//third_party/nss:nss", |
278 ] | 281 ] |
279 } | 282 } |
280 } | 283 } |
281 } | 284 } |
OLD | NEW |