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

Unified Diff: crypto/crypto.gyp

Issue 1882433002: Removing NSS files and USE_OPENSSL flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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/aead_openssl_unittest.cc ('k') | crypto/crypto.gypi » ('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 21bd6c5b56cd437cff775795e4ac434d5cb932b1..9edbe3560260a55e9636337444bb01e56f741606 100644
--- a/crypto/crypto.gyp
+++ b/crypto/crypto.gyp
@@ -17,10 +17,17 @@
'dependencies': [
'../base/base.gyp:base',
'../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
+ '../third_party/boringssl/boringssl.gyp:boringssl',
],
'defines': [
'CRYPTO_IMPLEMENTATION',
],
+ 'sources!': [
+ 'third_party/nss/chromium-nss.h',
+ 'third_party/nss/chromium-prtypes.h',
+ 'third_party/nss/chromium-sha256.h',
+ 'third_party/nss/sha512.cc',
+ ],
'conditions': [
[ 'os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
'dependencies': [
@@ -70,16 +77,6 @@
'mac_security_services_lock.h',
],
}],
- [ 'use_openssl == 0 and (OS == "mac" or OS == "ios" or OS == "win")', {
- 'dependencies': [
- '../third_party/nss/nss.gyp:nspr',
- '../third_party/nss/nss.gyp:nss',
- ],
- 'export_dependent_settings': [
- '../third_party/nss/nss.gyp:nspr',
- '../third_party/nss/nss.gyp:nss',
- ],
- }],
[ 'OS != "win"', {
'sources!': [
'capi_util.h',
@@ -91,58 +88,8 @@
4267, # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
],
}],
- [ 'use_openssl==1', {
- 'dependencies': [
- '../third_party/boringssl/boringssl.gyp:boringssl',
- ],
- # TODO(joth): Use a glob to match exclude patterns once the
- # OpenSSL file set is complete.
- 'sources!': [
- 'curve25519-donna.c',
- 'curve25519_nss.cc',
- 'ec_private_key_nss.cc',
- 'ec_signature_creator_nss.cc',
- 'encryptor_nss.cc',
- 'hmac_nss.cc',
- 'rsa_private_key_nss.cc',
- 'secure_hash_default.cc',
- 'signature_creator_nss.cc',
- 'signature_verifier_nss.cc',
- 'symmetric_key_nss.cc',
- 'third_party/nss/chromium-blapi.h',
- 'third_party/nss/chromium-blapit.h',
- 'third_party/nss/chromium-nss.h',
- 'third_party/nss/chromium-prtypes.h',
- 'third_party/nss/chromium-sha256.h',
- 'third_party/nss/pk11akey.cc',
- 'third_party/nss/rsawrapr.c',
- 'third_party/nss/secsign.cc',
- 'third_party/nss/sha512.cc',
- ],
- }, {
- 'sources!': [
- 'aead_openssl.cc',
- 'aead_openssl.h',
- 'auto_cbb.h',
- 'curve25519_openssl.cc',
- 'ec_private_key_openssl.cc',
- 'ec_signature_creator_openssl.cc',
- 'encryptor_openssl.cc',
- 'hmac_openssl.cc',
- 'openssl_bio_string.cc',
- 'openssl_bio_string.h',
- 'openssl_util.cc',
- 'openssl_util.h',
- 'rsa_private_key_openssl.cc',
- 'secure_hash_openssl.cc',
- 'signature_creator_openssl.cc',
- 'signature_verifier_openssl.cc',
- 'symmetric_key_openssl.cc',
- ],
- },],
- [ 'use_openssl==1 and use_nss_certs==0', {
- # Some files are built when NSS is used at all, either for the
- # internal crypto library or the platform certificate library.
+ [ 'use_nss_certs==0', {
+ # Some files are built when NSS is used for the platform certificate library.
'sources!': [
'nss_key_util.cc',
'nss_key_util.h',
@@ -188,6 +135,7 @@
'../base/base.gyp:test_support_base',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
+ '../third_party/boringssl/boringssl.gyp:boringssl',
],
'conditions': [
[ 'use_nss_certs == 1', {
@@ -195,32 +143,17 @@
'../build/linux/system.gyp:ssl',
],
}],
- [ 'use_openssl == 1 and use_nss_certs == 0', {
- # Some files are built when NSS is used at all, either for the
- # internal crypto library or the platform certificate library.
+ [ 'use_nss_certs == 0', {
+ # Some files are built when NSS is used for the platform certificate library.
'sources!': [
'nss_key_util_unittest.cc',
'nss_util_unittest.cc',
],
}],
- [ 'use_openssl == 0 and (OS == "mac" or OS == "ios" or OS == "win")', {
- 'dependencies': [
- '../third_party/nss/nss.gyp:nspr',
- ],
- }],
[ 'OS == "win"', {
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [4267, ],
}],
- [ 'use_openssl==1', {
- 'dependencies': [
- '../third_party/boringssl/boringssl.gyp:boringssl',
- ],
- }, {
- 'sources!': [
- 'openssl_bio_string_unittest.cc',
- ],
- }],
],
},
],
@@ -229,9 +162,7 @@
'targets': [
{
'target_name': 'crypto_nacl_win64',
- # We do not want nacl_helper to depend on NSS because this would
- # require including a 64-bit copy of NSS. Thus, use the native APIs
- # for the helper.
+ # We use the native APIs for the helper.
'type': '<(component)',
'dependencies': [
'../base/base.gyp:base_win64',
« no previous file with comments | « crypto/aead_openssl_unittest.cc ('k') | crypto/crypto.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698