| 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 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 component("crypto") { | 8 component("crypto") { |
| 9 output_name = "crcrypto" # Avoid colliding with OpenSSL's libcrypto. | 9 output_name = "crcrypto" # Avoid colliding with OpenSSL's libcrypto. |
| 10 sources = [ | 10 sources = [ |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 ] | 120 ] |
| 121 } | 121 } |
| 122 | 122 |
| 123 defines = [ "CRYPTO_IMPLEMENTATION" ] | 123 defines = [ "CRYPTO_IMPLEMENTATION" ] |
| 124 | 124 |
| 125 if (is_nacl) { | 125 if (is_nacl) { |
| 126 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] | 126 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] |
| 127 } | 127 } |
| 128 } | 128 } |
| 129 | 129 |
| 130 # TODO(GYP): TODO(dpranke), fix the compile errors for this stuff | |
| 131 # and make it work. | |
| 132 if (false && is_win) { | |
| 133 # A minimal crypto subset for hmac-related stuff that small standalone | |
| 134 # targets can use to reduce code size on Windows. This does not depend on | |
| 135 # OpenSSL/NSS but will use Windows APIs for that functionality. | |
| 136 source_set("crypto_minimal_win") { | |
| 137 sources = [ | |
| 138 "crypto_export.h", | |
| 139 "hmac.cc", | |
| 140 "hmac.h", | |
| 141 "openssl_util.cc", | |
| 142 "openssl_util.h", | |
| 143 "secure_util.cc", | |
| 144 "secure_util.h", | |
| 145 "symmetric_key.cc", | |
| 146 "symmetric_key.h", | |
| 147 ] | |
| 148 | |
| 149 deps = [ | |
| 150 "//base", | |
| 151 "//base/third_party/dynamic_annotations", | |
| 152 ] | |
| 153 | |
| 154 defines = [ "CRYPTO_IMPLEMENTATION" ] | |
| 155 } | |
| 156 } | |
| 157 | |
| 158 test("crypto_unittests") { | 130 test("crypto_unittests") { |
| 159 sources = [ | 131 sources = [ |
| 160 "aead_unittest.cc", | 132 "aead_unittest.cc", |
| 161 "curve25519_unittest.cc", | 133 "curve25519_unittest.cc", |
| 162 "ec_private_key_unittest.cc", | 134 "ec_private_key_unittest.cc", |
| 163 "ec_signature_creator_unittest.cc", | 135 "ec_signature_creator_unittest.cc", |
| 164 "encryptor_unittest.cc", | 136 "encryptor_unittest.cc", |
| 165 "hkdf_unittest.cc", | 137 "hkdf_unittest.cc", |
| 166 "hmac_unittest.cc", | 138 "hmac_unittest.cc", |
| 167 "nss_key_util_unittest.cc", | 139 "nss_key_util_unittest.cc", |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 "//third_party/boringssl", | 220 "//third_party/boringssl", |
| 249 ] | 221 ] |
| 250 | 222 |
| 251 # Link in NSS if it is used for the platform certificate library | 223 # Link in NSS if it is used for the platform certificate library |
| 252 # (use_nss_certs). | 224 # (use_nss_certs). |
| 253 if (use_nss_certs) { | 225 if (use_nss_certs) { |
| 254 public_configs = [ ":platform_config" ] | 226 public_configs = [ ":platform_config" ] |
| 255 public_configs += [ "//third_party/nss:system_nss_no_ssl_config" ] | 227 public_configs += [ "//third_party/nss:system_nss_no_ssl_config" ] |
| 256 } | 228 } |
| 257 } | 229 } |
| OLD | NEW |