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

Unified Diff: chrome/chrome_common.gypi

Issue 881213004: Support building BoringSSL with NSS certificates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
Index: chrome/chrome_common.gypi
diff --git a/chrome/chrome_common.gypi b/chrome/chrome_common.gypi
index 83a320d3bc198b853e07144bef771b8765ad0c2c..0fbd601714204c3e5a55562b172e40171d77f13f 100644
--- a/chrome/chrome_common.gypi
+++ b/chrome/chrome_common.gypi
@@ -609,43 +609,31 @@
}, { # OS == ios
'sources!': [
'common/net/net_resource_provider.cc',
+ ],
+ }],
+ ['OS == "android" or OS == "ios"', {
+ 'sources!': [
'common/net/x509_certificate_model.cc',
],
}],
- ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
+ ['use_openssl_certs == 1 and OS != "android"', {
'dependencies': [
- '../build/linux/system.gyp:ssl',
+ '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
],
- },
- ],
- ['os_posix != 1 or OS == "mac" or OS == "ios"', {
+ }, {
'sources!': [
- 'common/net/x509_certificate_model_nss.cc',
'common/net/x509_certificate_model_openssl.cc',
],
},
],
- ['OS == "android"', {
+ ['use_nss == 1', {
'dependencies': [
- '../third_party/boringssl/boringssl.gyp:boringssl',
- ],
- 'sources!': [
- 'common/net/x509_certificate_model.cc',
- 'common/net/x509_certificate_model_openssl.cc',
+ '../build/linux/system.gyp:ssl',
],
- }],
- ['use_openssl==1', {
+ }, {
'sources!': [
'common/net/x509_certificate_model_nss.cc',
],
- 'dependencies': [
- '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
- ],
- },
- { # else !use_openssl: remove the unneeded files
- 'sources!': [
- 'common/net/x509_certificate_model_openssl.cc',
- ],
},
],
['OS=="win"', {

Powered by Google App Engine
This is Rietveld 408576698