| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 sources -= [ | 117 sources -= [ |
| 118 "capi_util.cc", | 118 "capi_util.cc", |
| 119 "capi_util.h", | 119 "capi_util.h", |
| 120 ] | 120 ] |
| 121 } | 121 } |
| 122 | 122 |
| 123 if (is_android) { | 123 if (is_android) { |
| 124 deps += [ "//third_party/android_tools:cpu_features" ] | 124 deps += [ "//third_party/android_tools:cpu_features" ] |
| 125 } | 125 } |
| 126 | 126 |
| 127 if (is_win) { |
| 128 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 129 cflags = [ "/wd4267" ] |
| 130 } |
| 131 |
| 127 if (use_openssl) { | 132 if (use_openssl) { |
| 128 # Remove NSS files when using OpenSSL | 133 # Remove NSS files when using OpenSSL |
| 129 sources -= [ | 134 sources -= [ |
| 130 "ec_private_key_nss.cc", | 135 "ec_private_key_nss.cc", |
| 131 "ec_signature_creator_nss.cc", | 136 "ec_signature_creator_nss.cc", |
| 132 "encryptor_nss.cc", | 137 "encryptor_nss.cc", |
| 133 "hmac_nss.cc", | 138 "hmac_nss.cc", |
| 134 "nss_util.cc", | 139 "nss_util.cc", |
| 135 "nss_util.h", | 140 "nss_util.h", |
| 136 "nss_util_internal.h", | 141 "nss_util_internal.h", |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 ] | 307 ] |
| 303 } else { | 308 } else { |
| 304 # Non-Linux platforms use the hermetic NSS from the tree. | 309 # Non-Linux platforms use the hermetic NSS from the tree. |
| 305 deps += [ | 310 deps += [ |
| 306 "//third_party/nss:nspr", | 311 "//third_party/nss:nspr", |
| 307 "//third_party/nss:nss", | 312 "//third_party/nss:nss", |
| 308 ] | 313 ] |
| 309 } | 314 } |
| 310 } | 315 } |
| 311 } | 316 } |
| OLD | NEW |