| OLD | NEW |
| 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 Loading... |
| 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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 'os_posix%': 1, | 644 'os_posix%': 1, |
| 642 }], | 645 }], |
| 643 | 646 |
| 644 # A flag for BSD platforms | 647 # A flag for BSD platforms |
| 645 ['OS=="freebsd" or OS=="openbsd"', { | 648 ['OS=="freebsd" or OS=="openbsd"', { |
| 646 'os_bsd%': 1, | 649 'os_bsd%': 1, |
| 647 }, { | 650 }, { |
| 648 'os_bsd%': 0, | 651 'os_bsd%': 0, |
| 649 }], | 652 }], |
| 650 | 653 |
| 651 # NSS usage. | 654 # NSS usage. This controls whether NSS is used for certificate |
| 652 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u
se_openssl==0', { | 655 # validation and storage (like use_openssl_certs). For historical |
| 656 # reasons, this flag is named use_nss rather than use_nss_certs. In |
| 657 # particular, note it is possible to set both use_openssl and use_nss. |
| 658 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris")', { |
| 653 'use_nss%': 1, | 659 'use_nss%': 1, |
| 654 }, { | 660 }, { |
| 655 'use_nss%': 0, | 661 'use_nss%': 0, |
| 656 }], | 662 }], |
| 657 | 663 |
| 658 # When OpenSSL is used for SSL and crypto on Unix-like systems, use | |
| 659 # OpenSSL's certificate definition. | |
| 660 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and u
se_openssl==1', { | |
| 661 'use_openssl_certs%': 1, | |
| 662 }, { | |
| 663 'use_openssl_certs%': 0, | |
| 664 }], | |
| 665 | |
| 666 # libudev usage. This currently only affects the content layer. | 664 # libudev usage. This currently only affects the content layer. |
| 667 ['OS=="linux" and embedded==0', { | 665 ['OS=="linux" and embedded==0', { |
| 668 'use_udev%': 1, | 666 'use_udev%': 1, |
| 669 }, { | 667 }, { |
| 670 'use_udev%': 0, | 668 'use_udev%': 0, |
| 671 }], | 669 }], |
| 672 | 670 |
| 673 # Flags to use X11 on non-Mac POSIX platforms. | 671 # Flags to use X11 on non-Mac POSIX platforms. |
| 674 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_ozone==1',
{ | 672 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_ozone==1',
{ |
| 675 'use_x11%': 0, | 673 'use_x11%': 0, |
| (...skipping 2301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2977 ['>(nacl_untrusted_build)==1', { | 2975 ['>(nacl_untrusted_build)==1', { |
| 2978 'defines': [ | 2976 'defines': [ |
| 2979 'USE_OPENSSL=1', | 2977 'USE_OPENSSL=1', |
| 2980 'USE_OPENSSL_CERTS=1', | 2978 'USE_OPENSSL_CERTS=1', |
| 2981 ], | 2979 ], |
| 2982 }], | 2980 }], |
| 2983 ['<(use_glib)==1 and >(nacl_untrusted_build)==0', { | 2981 ['<(use_glib)==1 and >(nacl_untrusted_build)==0', { |
| 2984 'defines': ['USE_GLIB=1'], | 2982 'defines': ['USE_GLIB=1'], |
| 2985 }], | 2983 }], |
| 2986 ['<(use_nss)==1 and >(nacl_untrusted_build)==0', { | 2984 ['<(use_nss)==1 and >(nacl_untrusted_build)==0', { |
| 2985 # USE_NSS really means NSS is used for certificate validation and |
| 2986 # storage (like USE_OPENSSL_CERTS). For historical reasons, this flag is |
| 2987 # named USE_NSS rather than USE_NSS_CERTS. In particular, note it is |
| 2988 # possible to set both USE_OPENSSL and USE_NSS. |
| 2987 'defines': ['USE_NSS=1'], | 2989 'defines': ['USE_NSS=1'], |
| 2988 }], | 2990 }], |
| 2989 ['<(chromeos)==1 and >(nacl_untrusted_build)==0', { | 2991 ['<(chromeos)==1 and >(nacl_untrusted_build)==0', { |
| 2990 'defines': ['OS_CHROMEOS=1'], | 2992 'defines': ['OS_CHROMEOS=1'], |
| 2991 }], | 2993 }], |
| 2992 ['enable_wexit_time_destructors==1 and OS!="win"', { | 2994 ['enable_wexit_time_destructors==1 and OS!="win"', { |
| 2993 # TODO: Enable on Windows too, http://crbug.com/404525 | 2995 # TODO: Enable on Windows too, http://crbug.com/404525 |
| 2994 'variables': { 'clang_warning_flags': ['-Wexit-time-destructors']}, | 2996 'variables': { 'clang_warning_flags': ['-Wexit-time-destructors']}, |
| 2995 }], | 2997 }], |
| 2996 ['chromium_code==0', { | 2998 ['chromium_code==0', { |
| (...skipping 2925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5922 # settings in target dicts. SYMROOT is a special case, because many other | 5924 # settings in target dicts. SYMROOT is a special case, because many other |
| 5923 # Xcode variables depend on it, including variables such as | 5925 # Xcode variables depend on it, including variables such as |
| 5924 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5926 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 5925 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5927 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 5926 # files to appear (when present) in the UI as actual files and not red | 5928 # files to appear (when present) in the UI as actual files and not red |
| 5927 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5929 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 5928 # and therefore SYMROOT, needs to be set at the project level. | 5930 # and therefore SYMROOT, needs to be set at the project level. |
| 5929 'SYMROOT': '<(DEPTH)/xcodebuild', | 5931 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 5930 }, | 5932 }, |
| 5931 } | 5933 } |
| OLD | NEW |