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

Side by Side Diff: build/common.gypi

Issue 881213004: Support building BoringSSL with NSS certificates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more ios Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 # Use the PCI lib to collect GPU information. 64 # Use the PCI lib to collect GPU information.
65 'use_libpci%': 1, 65 'use_libpci%': 1,
66 66
67 # Use OpenSSL instead of NSS as the underlying SSL and crypto 67 # Use OpenSSL instead of NSS as the underlying SSL and crypto
68 # implementation. Certificate verification will in most cases be 68 # implementation. Certificate verification will in most cases be
69 # handled by the OS. If OpenSSL's struct X509 is used to represent 69 # handled by the OS. If OpenSSL's struct X509 is used to represent
70 # certificates, use_openssl_certs must be set. 70 # certificates, use_openssl_certs must be set.
71 'use_openssl%': 0, 71 'use_openssl%': 0,
72 72
73 # Typedef X509Certificate::OSCertHandle to OpenSSL's struct X509*. 73 # Use OpenSSL for representing certificates. When targeting Android,
74 # the platform certificate library is used for certificate
75 # verification. On other targets, this flag also enables OpenSSL for
76 # certificate verification, but this configuration is unsupported.
74 'use_openssl_certs%': 0, 77 'use_openssl_certs%': 0,
75 78
76 # Disable viewport meta tag by default. 79 # Disable viewport meta tag by default.
77 'enable_viewport%': 0, 80 'enable_viewport%': 0,
78 81
79 # Enable HiDPI support. 82 # Enable HiDPI support.
80 'enable_hidpi%': 0, 83 'enable_hidpi%': 0,
81 84
82 # Override buildtype to select the desired build flavor. 85 # Override buildtype to select the desired build flavor.
83 # Dev - everyday build for development/testing 86 # Dev - everyday build for development/testing
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 'os_posix%': 1, 647 'os_posix%': 1,
645 }], 648 }],
646 649
647 # A flag for BSD platforms 650 # A flag for BSD platforms
648 ['OS=="freebsd" or OS=="openbsd"', { 651 ['OS=="freebsd" or OS=="openbsd"', {
649 'os_bsd%': 1, 652 'os_bsd%': 1,
650 }, { 653 }, {
651 'os_bsd%': 0, 654 'os_bsd%': 0,
652 }], 655 }],
653 656
654 # NSS usage. 657 # NSS usage. This controls whether NSS is used for certificate
655 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u se_openssl==0', { 658 # validation and storage (like use_openssl_certs). For historical
659 # reasons, this flag is named use_nss rather than use_nss_certs. In
haavardm 2015/03/11 14:42:50 Would probably be some work but I mention it anywa
davidben 2015/03/11 23:32:42 Hrm. So we can't easily get rid of USE_NSS the pre
660 # particular, note it is possible to set both use_openssl and use_nss.
661 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris")', {
656 'use_nss%': 1, 662 'use_nss%': 1,
657 }, { 663 }, {
658 'use_nss%': 0, 664 'use_nss%': 0,
659 }], 665 }],
660 666
661 # When OpenSSL is used for SSL and crypto on Unix-like systems, use
662 # OpenSSL's certificate definition.
663 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u se_openssl==1', {
664 'use_openssl_certs%': 1,
665 }, {
666 'use_openssl_certs%': 0,
667 }],
668
669 # libudev usage. This currently only affects the content layer. 667 # libudev usage. This currently only affects the content layer.
670 ['OS=="linux" and embedded==0', { 668 ['OS=="linux" and embedded==0', {
671 'use_udev%': 1, 669 'use_udev%': 1,
672 }, { 670 }, {
673 'use_udev%': 0, 671 'use_udev%': 0,
674 }], 672 }],
675 673
676 # Flags to use X11 on non-Mac POSIX platforms. 674 # Flags to use X11 on non-Mac POSIX platforms.
677 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_ozone==1', { 675 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_ozone==1', {
678 'use_x11%': 0, 676 'use_x11%': 0,
(...skipping 2311 matching lines...) Expand 10 before | Expand all | Expand 10 after
2990 ['>(nacl_untrusted_build)==1', { 2988 ['>(nacl_untrusted_build)==1', {
2991 'defines': [ 2989 'defines': [
2992 'USE_OPENSSL=1', 2990 'USE_OPENSSL=1',
2993 'USE_OPENSSL_CERTS=1', 2991 'USE_OPENSSL_CERTS=1',
2994 ], 2992 ],
2995 }], 2993 }],
2996 ['<(use_glib)==1 and >(nacl_untrusted_build)==0', { 2994 ['<(use_glib)==1 and >(nacl_untrusted_build)==0', {
2997 'defines': ['USE_GLIB=1'], 2995 'defines': ['USE_GLIB=1'],
2998 }], 2996 }],
2999 ['<(use_nss)==1 and >(nacl_untrusted_build)==0', { 2997 ['<(use_nss)==1 and >(nacl_untrusted_build)==0', {
2998 # USE_NSS really means NSS is used for certificate validation and
2999 # storage (like USE_OPENSSL_CERTS). For historical reasons, this flag is
3000 # named USE_NSS rather than USE_NSS_CERTS. In particular, note it is
3001 # possible to set both USE_OPENSSL and USE_NSS.
3000 'defines': ['USE_NSS=1'], 3002 'defines': ['USE_NSS=1'],
3001 }], 3003 }],
3002 ['<(chromeos)==1 and >(nacl_untrusted_build)==0', { 3004 ['<(chromeos)==1 and >(nacl_untrusted_build)==0', {
3003 'defines': ['OS_CHROMEOS=1'], 3005 'defines': ['OS_CHROMEOS=1'],
3004 }], 3006 }],
3005 ['enable_wexit_time_destructors==1 and OS!="win"', { 3007 ['enable_wexit_time_destructors==1 and OS!="win"', {
3006 # TODO: Enable on Windows too, http://crbug.com/404525 3008 # TODO: Enable on Windows too, http://crbug.com/404525
3007 'variables': { 'clang_warning_flags': ['-Wexit-time-destructors']}, 3009 'variables': { 'clang_warning_flags': ['-Wexit-time-destructors']},
3008 }], 3010 }],
3009 ['chromium_code==0', { 3011 ['chromium_code==0', {
(...skipping 2931 matching lines...) Expand 10 before | Expand all | Expand 10 after
5941 # settings in target dicts. SYMROOT is a special case, because many other 5943 # settings in target dicts. SYMROOT is a special case, because many other
5942 # Xcode variables depend on it, including variables such as 5944 # Xcode variables depend on it, including variables such as
5943 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5945 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5944 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5946 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5945 # files to appear (when present) in the UI as actual files and not red 5947 # files to appear (when present) in the UI as actual files and not red
5946 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5948 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5947 # and therefore SYMROOT, needs to be set at the project level. 5949 # and therefore SYMROOT, needs to be set at the project level.
5948 'SYMROOT': '<(DEPTH)/xcodebuild', 5950 'SYMROOT': '<(DEPTH)/xcodebuild',
5949 }, 5951 },
5950 } 5952 }
OLDNEW
« no previous file with comments | « build/build_config.h ('k') | build/config/BUILD.gn » ('j') | net/cert/x509_util_nss_certs.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698