Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(799)

Unified Diff: crypto/crypto.gyp

Issue 881213004: Support building BoringSSL with NSS certificates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « crypto/BUILD.gn ('k') | crypto/rsa_private_key.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/crypto.gyp
diff --git a/crypto/crypto.gyp b/crypto/crypto.gyp
index c8551e70d3b8832354244782bbc02722c7e9c4ad..a9cff553e022c9288b8e723884bc07b376d89399 100644
--- a/crypto/crypto.gyp
+++ b/crypto/crypto.gyp
@@ -108,9 +108,6 @@
'ec_signature_creator_nss.cc',
'encryptor_nss.cc',
'hmac_nss.cc',
- 'nss_util.cc',
- 'nss_util.h',
- 'nss_util_internal.h',
'rsa_private_key_nss.cc',
'secure_hash_default.cc',
'signature_creator_nss.cc',
@@ -143,6 +140,15 @@
'symmetric_key_openssl.cc',
],
},],
+ [ 'use_openssl==1 and use_nss_certs==0', {
+ # NSS is used for neither the internal crypto library nor the
+ # platform certificate library.
+ 'sources!': [
+ 'nss_util.cc',
+ 'nss_util.h',
+ 'nss_util_internal.h',
+ ],
+ },],
],
'sources': [
'<@(crypto_sources)',
@@ -182,7 +188,7 @@
'../testing/gtest.gyp:gtest',
],
'conditions': [
- [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
+ [ 'use_nss_certs == 1', {
'conditions': [
[ 'use_allocator!="none"', {
'dependencies': [
@@ -194,10 +200,13 @@
'dependencies': [
'../build/linux/system.gyp:ssl',
],
- }, { # os_posix != 1 or OS == "mac" or OS == "android" or OS == "ios"
+ }],
+ [ 'use_openssl == 1 and use_nss_certs == 0', {
+ # nss_util is built if NSS is used for either the internal crypto
+ # library or the platform certificate library.
'sources!': [
- 'rsa_private_key_nss_unittest.cc',
- ]
+ 'nss_util_unittest.cc',
+ ],
}],
[ 'use_openssl == 0 and (OS == "mac" or OS == "ios" or OS == "win")', {
'dependencies': [
@@ -213,7 +222,6 @@
'../third_party/boringssl/boringssl.gyp:boringssl',
],
'sources!': [
- 'nss_util_unittest.cc',
'rsa_private_key_nss_unittest.cc',
],
}, {
« no previous file with comments | « crypto/BUILD.gn ('k') | crypto/rsa_private_key.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698