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 crypto_minimal_sources = [ | 7 crypto_minimal_sources = [ |
8 "hmac.cc", | 8 "hmac.cc", |
9 "hmac.h", | 9 "hmac.h", |
10 "hmac_win.cc", | 10 "hmac_win.cc", |
11 "secure_util.cc", | 11 "secure_util.cc", |
12 "secure_util.h", | 12 "secure_util.h", |
13 "symmetric_key.h", | 13 "symmetric_key.h", |
14 "symmetric_key_win.cc", | 14 "symmetric_key_win.cc", |
15 "third_party/nss/chromium-sha256.h", | 15 "third_party/nss/chromium-sha256.h", |
16 "third_party/nss/sha512.cc", | 16 "third_party/nss/sha512.cc", |
17 ] | 17 ] |
18 | 18 |
19 component("crypto") { | 19 component("crypto") { |
20 external = true | |
21 output_name = "crcrypto" # Avoid colliding with OpenSSL's libcrypto. | 20 output_name = "crcrypto" # Avoid colliding with OpenSSL's libcrypto. |
22 sources = [ | 21 sources = [ |
23 "apple_keychain.h", | 22 "apple_keychain.h", |
24 "apple_keychain_ios.mm", | 23 "apple_keychain_ios.mm", |
25 "apple_keychain_mac.mm", | 24 "apple_keychain_mac.mm", |
26 "capi_util.cc", | 25 "capi_util.cc", |
27 "capi_util.h", | 26 "capi_util.h", |
28 "crypto_export.h", | 27 "crypto_export.h", |
29 "crypto_module_blocking_password_delegate.h", | 28 "crypto_module_blocking_password_delegate.h", |
30 "cssm_init.cc", | 29 "cssm_init.cc", |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 178 |
180 # TODO(brettw) once GYP compat is no longer necessary, just move | 179 # TODO(brettw) once GYP compat is no longer necessary, just move |
181 # crypto_minimal_sources to the crypto_minimal target and include a | 180 # crypto_minimal_sources to the crypto_minimal target and include a |
182 # dependency on it here. | 181 # dependency on it here. |
183 sources += crypto_minimal_sources | 182 sources += crypto_minimal_sources |
184 } | 183 } |
185 | 184 |
186 # A minimal crypto subset for core features that small standalone targets can | 185 # A minimal crypto subset for core features that small standalone targets can |
187 # use to reduce code size. | 186 # use to reduce code size. |
188 static_library("crypto_minimal") { | 187 static_library("crypto_minimal") { |
189 external = true | |
190 sources = crypto_minimal_sources | 188 sources = crypto_minimal_sources |
191 | 189 |
192 deps = [ | 190 deps = [ |
193 "//base", | 191 "//base", |
194 "//base/third_party/dynamic_annotations", | 192 "//base/third_party/dynamic_annotations", |
195 ] | 193 ] |
196 | 194 |
197 defines = [ "CRYPTO_IMPLEMENTATION" ] | 195 defines = [ "CRYPTO_IMPLEMENTATION" ] |
198 } | 196 } |
199 | 197 |
200 test("crypto_unittests") { | 198 test("crypto_unittests") { |
201 external = true | |
202 sources = [ | 199 sources = [ |
203 # Tests. | 200 # Tests. |
204 "curve25519_unittest.cc", | 201 "curve25519_unittest.cc", |
205 "ec_private_key_unittest.cc", | 202 "ec_private_key_unittest.cc", |
206 "ec_signature_creator_unittest.cc", | 203 "ec_signature_creator_unittest.cc", |
207 "encryptor_unittest.cc", | 204 "encryptor_unittest.cc", |
208 "ghash_unittest.cc", | 205 "ghash_unittest.cc", |
209 "hkdf_unittest.cc", | 206 "hkdf_unittest.cc", |
210 "hmac_unittest.cc", | 207 "hmac_unittest.cc", |
211 "nss_util_unittest.cc", | 208 "nss_util_unittest.cc", |
(...skipping 24 matching lines...) Expand all Loading... |
236 "//base/test:run_all_unittests", | 233 "//base/test:run_all_unittests", |
237 "//base/test:test_support_base", | 234 "//base/test:test_support_base", |
238 "//testing/gmock", | 235 "//testing/gmock", |
239 "//testing/gtest", | 236 "//testing/gtest", |
240 ] | 237 ] |
241 | 238 |
242 if (is_mac) { | 239 if (is_mac) { |
243 #deps += "//third_party/nss:nspr" | 240 #deps += "//third_party/nss:nspr" |
244 } | 241 } |
245 } | 242 } |
OLD | NEW |