Chromium Code Reviews| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 57 'use_ozone%': '<(use_ozone)', | 57 'use_ozone%': '<(use_ozone)', |
| 58 'embedded%': '<(embedded)', | 58 'embedded%': '<(embedded)', |
| 59 'host_arch%': '<(host_arch)', | 59 'host_arch%': '<(host_arch)', |
| 60 | 60 |
| 61 # Whether we are using Views Toolkit | 61 # Whether we are using Views Toolkit |
| 62 'toolkit_views%': 0, | 62 'toolkit_views%': 0, |
| 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 | |
| 68 # implementation. Certificate verification will in most cases be | |
| 69 # handled by the OS. If OpenSSL's struct X509 is used to represent | |
| 70 # certificates, use_openssl_certs must be set. | |
| 71 'use_openssl%': 1, | |
|
Nico
2016/04/19 14:43:38
(nit: i'd remove this variable from this file in a
svaldez
2016/04/19 15:12:25
Done.
| |
| 72 | |
| 73 # Use OpenSSL for representing certificates. When targeting Android, | 67 # Use OpenSSL for representing certificates. When targeting Android, |
| 74 # the platform certificate library is used for certificate | 68 # the platform certificate library is used for certificate |
| 75 # verification. On other targets, this flag also enables OpenSSL for | 69 # verification. On other targets, this flag also enables OpenSSL for |
| 76 # certificate verification, but this configuration is unsupported. | 70 # certificate verification, but this configuration is unsupported. |
| 77 'use_openssl_certs%': 0, | 71 'use_openssl_certs%': 0, |
| 78 | 72 |
| 79 # Disable viewport meta tag by default. | 73 # Disable viewport meta tag by default. |
| 80 'enable_viewport%': 0, | 74 'enable_viewport%': 0, |
| 81 | 75 |
| 82 # Enable HiDPI support. | 76 # Enable HiDPI support. |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 161 # Copy conditionally-set variables out one scope. | 155 # Copy conditionally-set variables out one scope. |
| 162 'chromeos%': '<(chromeos)', | 156 'chromeos%': '<(chromeos)', |
| 163 'chromecast%': '<(chromecast)', | 157 'chromecast%': '<(chromecast)', |
| 164 'desktop_linux%': '<(desktop_linux)', | 158 'desktop_linux%': '<(desktop_linux)', |
| 165 'use_aura%': '<(use_aura)', | 159 'use_aura%': '<(use_aura)', |
| 166 'use_ash%': '<(use_ash)', | 160 'use_ash%': '<(use_ash)', |
| 167 'use_cras%': '<(use_cras)', | 161 'use_cras%': '<(use_cras)', |
| 168 'use_ozone%': '<(use_ozone)', | 162 'use_ozone%': '<(use_ozone)', |
| 169 'embedded%': '<(embedded)', | 163 'embedded%': '<(embedded)', |
| 170 'use_libpci%': '<(use_libpci)', | 164 'use_libpci%': '<(use_libpci)', |
| 171 'use_openssl%': '<(use_openssl)', | |
| 172 'use_openssl_certs%': '<(use_openssl_certs)', | 165 'use_openssl_certs%': '<(use_openssl_certs)', |
| 173 'enable_viewport%': '<(enable_viewport)', | 166 'enable_viewport%': '<(enable_viewport)', |
| 174 'enable_hidpi%': '<(enable_hidpi)', | 167 'enable_hidpi%': '<(enable_hidpi)', |
| 175 'enable_topchrome_md%': '<(enable_topchrome_md)', | 168 'enable_topchrome_md%': '<(enable_topchrome_md)', |
| 176 'enable_wayland_server%': '<(enable_wayland_server)', | 169 'enable_wayland_server%': '<(enable_wayland_server)', |
| 177 'enable_wifi_display%': '<(enable_wifi_display)', | 170 'enable_wifi_display%': '<(enable_wifi_display)', |
| 178 'buildtype%': '<(buildtype)', | 171 'buildtype%': '<(buildtype)', |
| 179 'branding%': '<(branding)', | 172 'branding%': '<(branding)', |
| 180 'branding_path_component%': '<(branding)', | 173 'branding_path_component%': '<(branding)', |
| 181 'host_arch%': '<(host_arch)', | 174 'host_arch%': '<(host_arch)', |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 348 'toolkit_views%': '<(toolkit_views)', | 341 'toolkit_views%': '<(toolkit_views)', |
| 349 'desktop_linux%': '<(desktop_linux)', | 342 'desktop_linux%': '<(desktop_linux)', |
| 350 'use_aura%': '<(use_aura)', | 343 'use_aura%': '<(use_aura)', |
| 351 'use_ash%': '<(use_ash)', | 344 'use_ash%': '<(use_ash)', |
| 352 'use_cras%': '<(use_cras)', | 345 'use_cras%': '<(use_cras)', |
| 353 'use_libpci%': '<(use_libpci)', | 346 'use_libpci%': '<(use_libpci)', |
| 354 'use_ozone%': '<(use_ozone)', | 347 'use_ozone%': '<(use_ozone)', |
| 355 'use_ozone_evdev%': '<(use_ozone_evdev)', | 348 'use_ozone_evdev%': '<(use_ozone_evdev)', |
| 356 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', | 349 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', |
| 357 'embedded%': '<(embedded)', | 350 'embedded%': '<(embedded)', |
| 358 'use_openssl%': '<(use_openssl)', | |
| 359 'use_openssl_certs%': '<(use_openssl_certs)', | 351 'use_openssl_certs%': '<(use_openssl_certs)', |
| 360 'enable_viewport%': '<(enable_viewport)', | 352 'enable_viewport%': '<(enable_viewport)', |
| 361 'enable_hidpi%': '<(enable_hidpi)', | 353 'enable_hidpi%': '<(enable_hidpi)', |
| 362 'enable_topchrome_md%': '<(enable_topchrome_md)', | 354 'enable_topchrome_md%': '<(enable_topchrome_md)', |
| 363 'enable_wayland_server%': '<(enable_wayland_server)', | 355 'enable_wayland_server%': '<(enable_wayland_server)', |
| 364 'enable_wifi_display%': '<(enable_wifi_display)', | 356 'enable_wifi_display%': '<(enable_wifi_display)', |
| 365 'android_channel%': '<(android_channel)', | 357 'android_channel%': '<(android_channel)', |
| 366 'use_goma%': '<(use_goma)', | 358 'use_goma%': '<(use_goma)', |
| 367 'gomadir%': '<(gomadir)', | 359 'gomadir%': '<(gomadir)', |
| 368 'enable_app_list%': '<(enable_app_list)', | 360 'enable_app_list%': '<(enable_app_list)', |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 731 'os_bsd%': 0, | 723 'os_bsd%': 0, |
| 732 }], | 724 }], |
| 733 | 725 |
| 734 # NSS usage. | 726 # NSS usage. |
| 735 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris")', { | 727 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris")', { |
| 736 'use_nss_certs%': 1, | 728 'use_nss_certs%': 1, |
| 737 }, { | 729 }, { |
| 738 'use_nss_certs%': 0, | 730 'use_nss_certs%': 0, |
| 739 }], | 731 }], |
| 740 | 732 |
| 741 # NSS verifier usage. | |
| 742 # On non-OpenSSL iOS configurations, certificates use the operating | |
| 743 # system library, but the verifier uses the bundled copy of NSS. | |
| 744 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") or (O S=="ios" and use_openssl==0)', { | |
| 745 'use_nss_verifier%': 1, | |
| 746 }, { | |
| 747 'use_nss_verifier%': 0, | |
| 748 }], | |
| 749 | |
| 750 # libudev usage. This currently only affects the content layer. | 733 # libudev usage. This currently only affects the content layer. |
| 751 ['OS=="linux" and embedded==0', { | 734 ['OS=="linux" and embedded==0', { |
| 752 'use_udev%': 1, | 735 'use_udev%': 1, |
| 753 }, { | 736 }, { |
| 754 'use_udev%': 0, | 737 'use_udev%': 0, |
| 755 }], | 738 }], |
| 756 | 739 |
| 757 # Flags to use X11 on non-Mac POSIX platforms. | 740 # Flags to use X11 on non-Mac POSIX platforms. |
| 758 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_ozone==1', { | 741 ['OS=="win" or OS=="mac" or OS=="ios" or OS=="android" or use_ozone==1', { |
| 759 'use_x11%': 0, | 742 'use_x11%': 0, |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1154 'target_subarch%': '<(target_subarch)', | 1137 'target_subarch%': '<(target_subarch)', |
| 1155 'mips_arch_variant%': '<(mips_arch_variant)', | 1138 'mips_arch_variant%': '<(mips_arch_variant)', |
| 1156 'mips_dsp_rev%': '<(mips_dsp_rev)', | 1139 'mips_dsp_rev%': '<(mips_dsp_rev)', |
| 1157 'host_arch%': '<(host_arch)', | 1140 'host_arch%': '<(host_arch)', |
| 1158 'toolkit_views%': '<(toolkit_views)', | 1141 'toolkit_views%': '<(toolkit_views)', |
| 1159 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', | 1142 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', |
| 1160 'use_aura%': '<(use_aura)', | 1143 'use_aura%': '<(use_aura)', |
| 1161 'use_ash%': '<(use_ash)', | 1144 'use_ash%': '<(use_ash)', |
| 1162 'use_cras%': '<(use_cras)', | 1145 'use_cras%': '<(use_cras)', |
| 1163 'use_libpci%': '<(use_libpci)', | 1146 'use_libpci%': '<(use_libpci)', |
| 1164 'use_openssl%': '<(use_openssl)', | |
| 1165 'use_openssl_certs%': '<(use_openssl_certs)', | 1147 'use_openssl_certs%': '<(use_openssl_certs)', |
| 1166 'use_nss_certs%': '<(use_nss_certs)', | 1148 'use_nss_certs%': '<(use_nss_certs)', |
| 1167 'use_nss_verifier%': '<(use_nss_verifier)', | |
| 1168 'use_udev%': '<(use_udev)', | 1149 'use_udev%': '<(use_udev)', |
| 1169 'os_bsd%': '<(os_bsd)', | 1150 'os_bsd%': '<(os_bsd)', |
| 1170 'os_posix%': '<(os_posix)', | 1151 'os_posix%': '<(os_posix)', |
| 1171 'use_dbus%': '<(use_dbus)', | 1152 'use_dbus%': '<(use_dbus)', |
| 1172 'use_glib%': '<(use_glib)', | 1153 'use_glib%': '<(use_glib)', |
| 1173 'use_pango%': '<(use_pango)', | 1154 'use_pango%': '<(use_pango)', |
| 1174 'use_cairo%': '<(use_cairo)', | 1155 'use_cairo%': '<(use_cairo)', |
| 1175 'use_ozone%': '<(use_ozone)', | 1156 'use_ozone%': '<(use_ozone)', |
| 1176 'use_ozone_evdev%': '<(use_ozone_evdev)', | 1157 'use_ozone_evdev%': '<(use_ozone_evdev)', |
| 1177 'use_xkbcommon%': '<(use_xkbcommon)', | 1158 'use_xkbcommon%': '<(use_xkbcommon)', |
| (...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2124 }], | 2105 }], |
| 2125 ['use_aura==1', { | 2106 ['use_aura==1', { |
| 2126 'grit_defines': ['-D', 'use_aura'], | 2107 'grit_defines': ['-D', 'use_aura'], |
| 2127 }], | 2108 }], |
| 2128 ['use_ash==1', { | 2109 ['use_ash==1', { |
| 2129 'grit_defines': ['-D', 'use_ash'], | 2110 'grit_defines': ['-D', 'use_ash'], |
| 2130 }], | 2111 }], |
| 2131 ['use_nss_certs==1', { | 2112 ['use_nss_certs==1', { |
| 2132 'grit_defines': ['-D', 'use_nss_certs'], | 2113 'grit_defines': ['-D', 'use_nss_certs'], |
| 2133 }], | 2114 }], |
| 2134 ['use_nss_verifier==1', { | |
| 2135 'grit_defines': ['-D', 'use_nss_verifier'], | |
| 2136 }], | |
| 2137 ['use_ozone==1', { | 2115 ['use_ozone==1', { |
| 2138 'grit_defines': ['-D', 'use_ozone'], | 2116 'grit_defines': ['-D', 'use_ozone'], |
| 2139 }], | 2117 }], |
| 2140 ['image_loader_extension==1', { | 2118 ['image_loader_extension==1', { |
| 2141 'grit_defines': ['-D', 'image_loader_extension'], | 2119 'grit_defines': ['-D', 'image_loader_extension'], |
| 2142 }], | 2120 }], |
| 2143 ['use_titlecase_in_grd==1', { | 2121 ['use_titlecase_in_grd==1', { |
| 2144 'grit_defines': ['-D', 'use_titlecase'], | 2122 'grit_defines': ['-D', 'use_titlecase'], |
| 2145 }], | 2123 }], |
| 2146 ['OS=="android"', { | 2124 ['OS=="android"', { |
| (...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3053 ['safe_browsing==2 and OS!="ios"', { | 3031 ['safe_browsing==2 and OS!="ios"', { |
| 3054 'defines': [ | 3032 'defines': [ |
| 3055 'SAFE_BROWSING_DB_REMOTE', | 3033 'SAFE_BROWSING_DB_REMOTE', |
| 3056 ], | 3034 ], |
| 3057 }], | 3035 }], |
| 3058 ], # conditions for 'target_defaults' | 3036 ], # conditions for 'target_defaults' |
| 3059 'target_conditions': [ | 3037 'target_conditions': [ |
| 3060 ['<(use_libpci)==1', { | 3038 ['<(use_libpci)==1', { |
| 3061 'defines': ['USE_LIBPCI=1'], | 3039 'defines': ['USE_LIBPCI=1'], |
| 3062 }], | 3040 }], |
| 3063 ['<(use_openssl)==1', { | |
| 3064 'defines': ['USE_OPENSSL=1'], | |
| 3065 }], | |
| 3066 ['<(use_openssl_certs)==1', { | 3041 ['<(use_openssl_certs)==1', { |
| 3067 'defines': ['USE_OPENSSL_CERTS=1'], | 3042 'defines': ['USE_OPENSSL_CERTS=1'], |
| 3068 }], | 3043 }], |
| 3069 ['>(nacl_untrusted_build)==1', { | 3044 ['>(nacl_untrusted_build)==1', { |
| 3070 'defines': [ | 3045 'defines': [ |
| 3071 'USE_OPENSSL=1', | |
| 3072 'USE_OPENSSL_CERTS=1', | 3046 'USE_OPENSSL_CERTS=1', |
| 3073 ], | 3047 ], |
| 3074 }], | 3048 }], |
| 3075 ['<(use_glib)==1 and >(nacl_untrusted_build)==0', { | 3049 ['<(use_glib)==1 and >(nacl_untrusted_build)==0', { |
| 3076 'defines': ['USE_GLIB=1'], | 3050 'defines': ['USE_GLIB=1'], |
| 3077 }], | 3051 }], |
| 3078 ['<(use_nss_certs)==1 and >(nacl_untrusted_build)==0', { | 3052 ['<(use_nss_certs)==1 and >(nacl_untrusted_build)==0', { |
| 3079 'defines': ['USE_NSS_CERTS=1'], | 3053 'defines': ['USE_NSS_CERTS=1'], |
| 3080 }], | 3054 }], |
| 3081 ['<(use_nss_verifier)==1 and >(nacl_untrusted_build)==0', { | |
| 3082 'defines': ['USE_NSS_VERIFIER=1'], | |
| 3083 }], | |
| 3084 ['<(chromeos)==1 and >(nacl_untrusted_build)==0', { | 3055 ['<(chromeos)==1 and >(nacl_untrusted_build)==0', { |
| 3085 'defines': ['OS_CHROMEOS=1'], | 3056 'defines': ['OS_CHROMEOS=1'], |
| 3086 }], | 3057 }], |
| 3087 ['enable_wexit_time_destructors==1 and OS!="win"', { | 3058 ['enable_wexit_time_destructors==1 and OS!="win"', { |
| 3088 # TODO: Enable on Windows too, http://crbug.com/404525 | 3059 # TODO: Enable on Windows too, http://crbug.com/404525 |
| 3089 'variables': { 'clang_warning_flags': ['-Wexit-time-destructors']}, | 3060 'variables': { 'clang_warning_flags': ['-Wexit-time-destructors']}, |
| 3090 }], | 3061 }], |
| 3091 ['chromium_code==0', { | 3062 ['chromium_code==0', { |
| 3092 'variables': { | 3063 'variables': { |
| 3093 'clang_warning_flags': [ | 3064 'clang_warning_flags': [ |
| (...skipping 3235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6329 # settings in target dicts. SYMROOT is a special case, because many other | 6300 # settings in target dicts. SYMROOT is a special case, because many other |
| 6330 # Xcode variables depend on it, including variables such as | 6301 # Xcode variables depend on it, including variables such as |
| 6331 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6302 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 6332 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6303 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 6333 # files to appear (when present) in the UI as actual files and not red | 6304 # files to appear (when present) in the UI as actual files and not red |
| 6334 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6305 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 6335 # and therefore SYMROOT, needs to be set at the project level. | 6306 # and therefore SYMROOT, needs to be set at the project level. |
| 6336 'SYMROOT': '<(DEPTH)/xcodebuild', | 6307 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 6337 }, | 6308 }, |
| 6338 } | 6309 } |
| OLD | NEW |