summaryrefslogtreecommitdiffstats
path: root/build/common.gypi
diff options
context:
space:
mode:
Diffstat (limited to 'build/common.gypi')
-rw-r--r--build/common.gypi16
1 files changed, 16 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 3289014..400081b 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -741,6 +741,15 @@
'use_nss_certs%': 0,
}],
+ # NSS verifier usage.
+ # On non-OpenSSL iOS configurations, certificates use the operating
+ # system library, but the verifier uses the bundled copy of NSS.
+ ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") or (OS=="ios" and use_openssl==0)', {
+ 'use_nss_verifier%': 1,
+ }, {
+ 'use_nss_verifier%': 0,
+ }],
+
# libudev usage. This currently only affects the content layer.
['OS=="linux" and embedded==0', {
'use_udev%': 1,
@@ -1153,6 +1162,7 @@
'use_openssl%': '<(use_openssl)',
'use_openssl_certs%': '<(use_openssl_certs)',
'use_nss_certs%': '<(use_nss_certs)',
+ 'use_nss_verifier%': '<(use_nss_verifier)',
'use_udev%': '<(use_udev)',
'os_bsd%': '<(os_bsd)',
'os_posix%': '<(os_posix)',
@@ -2125,6 +2135,9 @@
['use_nss_certs==1', {
'grit_defines': ['-D', 'use_nss_certs'],
}],
+ ['use_nss_verifier==1', {
+ 'grit_defines': ['-D', 'use_nss_verifier'],
+ }],
['use_ozone==1', {
'grit_defines': ['-D', 'use_ozone'],
}],
@@ -3086,6 +3099,9 @@
['<(use_nss_certs)==1 and >(nacl_untrusted_build)==0', {
'defines': ['USE_NSS_CERTS=1'],
}],
+ ['<(use_nss_verifier)==1 and >(nacl_untrusted_build)==0', {
+ 'defines': ['USE_NSS_VERIFIER=1'],
+ }],
['<(chromeos)==1 and >(nacl_untrusted_build)==0', {
'defines': ['OS_CHROMEOS=1'],
}],