Chromium Code Reviews| 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", |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 42 "mac_security_services_lock.h", | 42 "mac_security_services_lock.h", |
| 43 # TODO(brettw) these mocks should be moved to a test_support_crypto target | 43 # TODO(brettw) these mocks should be moved to a test_support_crypto target |
| 44 # if possible. | 44 # if possible. |
| 45 "mock_apple_keychain.cc", | 45 "mock_apple_keychain.cc", |
| 46 "mock_apple_keychain.h", | 46 "mock_apple_keychain.h", |
| 47 "mock_apple_keychain_ios.cc", | 47 "mock_apple_keychain_ios.cc", |
| 48 "mock_apple_keychain_mac.cc", | 48 "mock_apple_keychain_mac.cc", |
| 49 "nss_util.cc", | 49 "nss_util.cc", |
| 50 "nss_util.h", | 50 "nss_util.h", |
| 51 "nss_util_internal.h", | 51 "nss_util_internal.h", |
| 52 "openpgp_symmetric_encryption.cc", | |
| 53 "openpgp_symmetric_encryption.h", | |
| 54 "openssl_util.cc", | 52 "openssl_util.cc", |
| 55 "openssl_util.h", | 53 "openssl_util.h", |
| 56 "p224.cc", | 54 "p224.cc", |
| 57 "p224.h", | 55 "p224.h", |
| 58 "p224_spake.cc", | 56 "p224_spake.cc", |
| 59 "p224_spake.h", | 57 "p224_spake.h", |
| 60 "random.cc", | 58 "random.cc", |
| 61 "random.h", | 59 "random.h", |
| 62 "rsa_private_key.cc", | 60 "rsa_private_key.cc", |
| 63 "rsa_private_key.h", | 61 "rsa_private_key.h", |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 98 ] | 96 ] |
| 99 | 97 |
| 100 if (!is_mac && !is_ios) { | 98 if (!is_mac && !is_ios) { |
| 101 sources -= [ | 99 sources -= [ |
| 102 "apple_keychain.h", | 100 "apple_keychain.h", |
| 103 "mock_apple_keychain.cc", | 101 "mock_apple_keychain.cc", |
| 104 "mock_apple_keychain.h", | 102 "mock_apple_keychain.h", |
| 105 ] | 103 ] |
| 106 } | 104 } |
| 107 | 105 |
| 108 if (use_openssl || !is_linux) { | |
| 109 sources -= [ | |
| 110 "openpgp_symmetric_encryption.cc", | |
| 111 "openpgp_symmetric_encryption.h", | |
| 112 ] | |
| 113 } | |
| 114 if (!is_mac) { | 106 if (!is_mac) { |
| 115 sources -= [ | 107 sources -= [ |
| 116 "cssm_init.cc", | 108 "cssm_init.cc", |
| 117 "cssm_init.h", | 109 "cssm_init.h", |
| 118 "mac_security_services_lock.cc", | 110 "mac_security_services_lock.cc", |
| 119 "mac_security_services_lock.h", | 111 "mac_security_services_lock.h", |
| 120 ] | 112 ] |
| 121 } | 113 } |
| 122 if (!is_win) { | 114 if (!is_win) { |
| 123 sources -= [ | 115 sources -= [ |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 211 "p224_unittest.cc", | 203 "p224_unittest.cc", |
| 212 "p224_spake_unittest.cc", | 204 "p224_spake_unittest.cc", |
| 213 "random_unittest.cc", | 205 "random_unittest.cc", |
| 214 "rsa_private_key_unittest.cc", | 206 "rsa_private_key_unittest.cc", |
| 215 "rsa_private_key_nss_unittest.cc", | 207 "rsa_private_key_nss_unittest.cc", |
| 216 "secure_hash_unittest.cc", | 208 "secure_hash_unittest.cc", |
| 217 "sha2_unittest.cc", | 209 "sha2_unittest.cc", |
| 218 "signature_creator_unittest.cc", | 210 "signature_creator_unittest.cc", |
| 219 "signature_verifier_unittest.cc", | 211 "signature_verifier_unittest.cc", |
| 220 "symmetric_key_unittest.cc", | 212 "symmetric_key_unittest.cc", |
| 221 "openpgp_symmetric_encryption_unittest.cc", | |
| 222 ] | 213 ] |
| 223 | 214 |
| 224 if (use_openssl) { | 215 if (use_openssl) { |
| 225 sources -= [ | 216 sources -= [ |
| 226 "nss_util_unittest.cc", | 217 "nss_util_unittest.cc", |
| 227 "openpgp_symmetric_encryption_unittest.cc", | |
| 228 "rsa_private_key_nss_unittest.cc", | |
|
Ryan Sleevi
2014/04/26 01:06:44
the RSA cleanup is slightly unrelated, but avoids
| |
| 229 ] | 218 ] |
| 230 } | 219 } |
| 231 | 220 |
| 232 if (use_openssl || !is_linux) { | 221 if (use_openssl || !is_linux) { |
| 233 sources -= [ | 222 sources -= [ |
| 234 "rsa_private_key_nss_unittest.cc", | 223 "rsa_private_key_nss_unittest.cc", |
| 235 "openpgp_symmetric_encryption_unittest.cc", | |
| 236 ] | 224 ] |
| 237 } | 225 } |
| 238 | 226 |
| 239 if (use_openssl) { | 227 if (use_openssl) { |
| 240 sources -= [ "nss_util_unittest.cc" ] | 228 sources -= [ "nss_util_unittest.cc" ] |
| 241 } | 229 } |
| 242 | 230 |
| 243 deps = [ | 231 deps = [ |
| 244 ":crypto", | 232 ":crypto", |
| 245 ":platform", | 233 ":platform", |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 275 ] | 263 ] |
| 276 } else { | 264 } else { |
| 277 # Non-Linux platforms use the hermetic NSS from the tree. | 265 # Non-Linux platforms use the hermetic NSS from the tree. |
| 278 deps += [ | 266 deps += [ |
| 279 "//third_party/nss:nspr", | 267 "//third_party/nss:nspr", |
| 280 "//third_party/nss:nss", | 268 "//third_party/nss:nss", |
| 281 ] | 269 ] |
| 282 } | 270 } |
| 283 } | 271 } |
| 284 } | 272 } |
| OLD | NEW |