summaryrefslogtreecommitdiffstats
path: root/tools/gn/secondary/crypto/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gn/secondary/crypto/BUILD.gn')
-rw-r--r--tools/gn/secondary/crypto/BUILD.gn31
1 files changed, 19 insertions, 12 deletions
diff --git a/tools/gn/secondary/crypto/BUILD.gn b/tools/gn/secondary/crypto/BUILD.gn
index 248b699..111c61b 100644
--- a/tools/gn/secondary/crypto/BUILD.gn
+++ b/tools/gn/secondary/crypto/BUILD.gn
@@ -4,8 +4,21 @@
import("ssl/flags.gni")
+crypto_minimal_sources = [
+ "hmac.cc",
+ "hmac.h",
+ "hmac_win.cc",
+ "secure_util.cc",
+ "secure_util.h",
+ "symmetric_key.h",
+ "symmetric_key_win.cc",
+ "third_party/nss/chromium-sha256.h",
+ "third_party/nss/sha512.cc",
+]
+
component("crypto") {
external = true
+ output_name = "crcrypto" # Avoid colliding with OpenSSL's libcrypto.
sources = [
"apple_keychain.h",
"apple_keychain_ios.mm",
@@ -86,7 +99,6 @@ component("crypto") {
]
deps = [
- ":crypto_minimal",
"//base",
"//base/third_party/dynamic_annotations",
"//crypto/ssl:metassl",
@@ -164,23 +176,18 @@ component("crypto") {
}
defines = [ "CRYPTO_IMPLEMENTATION" ]
+
+ # TODO(brettw) once GYP compat is no longer necessary, just move
+ # crypto_minimal_sources to the crypto_minimal target and include a
+ # dependency on it here.
+ sources += crypto_minimal_sources
}
# A minimal crypto subset for core features that small standalone targets can
# use to reduce code size.
static_library("crypto_minimal") {
external = true
- sources = [
- "hmac.cc",
- "hmac.h",
- "hmac_win.cc",
- "secure_util.cc",
- "secure_util.h",
- "symmetric_key.h",
- "symmetric_key_win.cc",
- "third_party/nss/chromium-sha256.h",
- "third_party/nss/sha512.cc",
- ]
+ sources = crypto_minimal_sources
deps = [
"//base",