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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 144 | 144 |
| 145 # Use aurax11 for clipboard implementation. This is true on linux_aura. | 145 # Use aurax11 for clipboard implementation. This is true on linux_aura. |
| 146 'use_clipboard_aurax11%': 0, | 146 'use_clipboard_aurax11%': 0, |
| 147 | 147 |
| 148 # goma settings. | 148 # goma settings. |
| 149 # 1 to use goma. | 149 # 1 to use goma. |
| 150 # If no gomadir is set, it uses the default gomadir. | 150 # If no gomadir is set, it uses the default gomadir. |
| 151 'use_goma%': 0, | 151 'use_goma%': 0, |
| 152 'gomadir%': '', | 152 'gomadir%': '', |
| 153 | 153 |
| 154 # The system root for cross-compiles. Default: none. | |
| 155 'sysroot%': '', | |
| 156 'chroot_cmd%': '', | |
| 157 | |
| 154 'conditions': [ | 158 'conditions': [ |
| 155 # Ash needs Aura. | 159 # Ash needs Aura. |
| 156 ['use_aura==0', { | 160 ['use_aura==0', { |
| 157 'use_ash%': 0, | 161 'use_ash%': 0, |
| 158 }], | 162 }], |
| 159 | 163 |
| 160 # Set default value of toolkit_views based on OS. | 164 # Set default value of toolkit_views based on OS. |
| 161 ['OS=="win" or chromeos==1 or use_aura==1', { | 165 ['OS=="win" or chromeos==1 or use_aura==1', { |
| 162 'toolkit_views%': 1, | 166 'toolkit_views%': 1, |
| 163 }, { | 167 }, { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 220 # of skia has been fixed for simulator. http://crbug.com/342377 | 224 # of skia has been fixed for simulator. http://crbug.com/342377 |
| 221 ['OS=="ios"', { | 225 ['OS=="ios"', { |
| 222 'target_subarch%': 'arm32', | 226 'target_subarch%': 'arm32', |
| 223 }], | 227 }], |
| 224 ['OS=="android"', { | 228 ['OS=="android"', { |
| 225 'target_arch%': 'arm', | 229 'target_arch%': 'arm', |
| 226 }, { | 230 }, { |
| 227 # Default architecture we're building for is the architecture we're | 231 # Default architecture we're building for is the architecture we're |
| 228 # building on, and possibly sub-architecture (for iOS builds). | 232 # building on, and possibly sub-architecture (for iOS builds). |
| 229 'target_arch%': '<(host_arch)', | 233 'target_arch%': '<(host_arch)', |
| 230 }], | 234 }], |
|
Nico
2014/03/18 15:48:56
Does this block need to move one level deeper too?
| |
| 231 ], | 235 ], |
| 232 }, | 236 }, |
| 233 | 237 |
| 234 # Copy conditionally-set variables out one scope. | 238 # Copy conditionally-set variables out one scope. |
| 235 'chromeos%': '<(chromeos)', | 239 'chromeos%': '<(chromeos)', |
| 236 'host_arch%': '<(host_arch)', | 240 'host_arch%': '<(host_arch)', |
| 237 'target_arch%': '<(target_arch)', | 241 'target_arch%': '<(target_arch)', |
| 238 'target_subarch%': '<(target_subarch)', | 242 'target_subarch%': '<(target_subarch)', |
| 239 'toolkit_views%': '<(toolkit_views)', | 243 'toolkit_views%': '<(toolkit_views)', |
| 240 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', | 244 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 251 'enable_viewport%': '<(enable_viewport)', | 255 'enable_viewport%': '<(enable_viewport)', |
| 252 'enable_hidpi%': '<(enable_hidpi)', | 256 'enable_hidpi%': '<(enable_hidpi)', |
| 253 'android_webview_build%': '<(android_webview_build)', | 257 'android_webview_build%': '<(android_webview_build)', |
| 254 'use_goma%': '<(use_goma)', | 258 'use_goma%': '<(use_goma)', |
| 255 'gomadir%': '<(gomadir)', | 259 'gomadir%': '<(gomadir)', |
| 256 'enable_app_list%': '<(enable_app_list)', | 260 'enable_app_list%': '<(enable_app_list)', |
| 257 'use_default_render_theme%': '<(use_default_render_theme)', | 261 'use_default_render_theme%': '<(use_default_render_theme)', |
| 258 'buildtype%': '<(buildtype)', | 262 'buildtype%': '<(buildtype)', |
| 259 'branding%': '<(branding)', | 263 'branding%': '<(branding)', |
| 260 'arm_version%': '<(arm_version)', | 264 'arm_version%': '<(arm_version)', |
| 265 'sysroot%': '<(sysroot)', | |
| 266 'chroot_cmd%': '<(chroot_cmd)', | |
| 261 | 267 |
| 262 # Set to 1 to enable fast builds. Set to 2 for even faster builds | 268 # Set to 1 to enable fast builds. Set to 2 for even faster builds |
| 263 # (it disables debug info for fastest compilation - only for use | 269 # (it disables debug info for fastest compilation - only for use |
| 264 # on compile-only bots). | 270 # on compile-only bots). |
| 265 'fastbuild%': 0, | 271 'fastbuild%': 0, |
| 266 | 272 |
| 267 # Set to 1 to enable dcheck in release. | 273 # Set to 1 to enable dcheck in release. |
| 268 'dcheck_always_on%': 0, | 274 'dcheck_always_on%': 0, |
| 269 | 275 |
| 270 # Set to 1 to make a build that disables unshipped tracing events. | 276 # Set to 1 to make a build that disables unshipped tracing events. |
| 271 # Note: this setting is ignored if buildtype=="Official". | 277 # Note: this setting is ignored if buildtype=="Official". |
| 272 'tracing_like_official_build%': 0, | 278 'tracing_like_official_build%': 0, |
| 273 | 279 |
| 274 # Disable image loader component extension by default. | 280 # Disable image loader component extension by default. |
| 275 'image_loader_extension%': 0, | 281 'image_loader_extension%': 0, |
| 276 | 282 |
| 277 # Python version. | 283 # Python version. |
| 278 'python_ver%': '2.6', | 284 'python_ver%': '2.6', |
| 279 | 285 |
| 280 # Set NEON compilation flags. | 286 # Set NEON compilation flags. |
| 281 'arm_neon%': 1, | 287 'arm_neon%': 1, |
| 282 | 288 |
| 283 # Detect NEON support at run-time. | 289 # Detect NEON support at run-time. |
| 284 'arm_neon_optional%': 0, | 290 'arm_neon_optional%': 0, |
| 285 | 291 |
| 286 # The system root for cross-compiles. Default: none. | |
| 287 'sysroot%': '', | |
| 288 'chroot_cmd%': '', | |
| 289 | |
| 290 # The system libdir used for this ABI. | 292 # The system libdir used for this ABI. |
| 291 'system_libdir%': 'lib', | 293 'system_libdir%': 'lib', |
| 292 | 294 |
| 293 # Use libjpeg-turbo as the JPEG codec used by Chromium. | 295 # Use libjpeg-turbo as the JPEG codec used by Chromium. |
| 294 'use_libjpeg_turbo%': 1, | 296 'use_libjpeg_turbo%': 1, |
| 295 | 297 |
| 296 # Use system libjpeg. Note that the system's libjepg will be used even if | 298 # Use system libjpeg. Note that the system's libjepg will be used even if |
| 297 # use_libjpeg_turbo is set. | 299 # use_libjpeg_turbo is set. |
| 298 'use_system_libjpeg%': 0, | 300 'use_system_libjpeg%': 0, |
| 299 | 301 |
| 302 # Use system libharfbuzz-ng. | |
| 303 'use_system_harfbuzz%': 0, | |
| 304 | |
| 300 # By default, component is set to static_library and it can be overriden | 305 # By default, component is set to static_library and it can be overriden |
| 301 # by the GYP command line or by ~/.gyp/include.gypi. | 306 # by the GYP command line or by ~/.gyp/include.gypi. |
| 302 'component%': 'static_library', | 307 'component%': 'static_library', |
| 303 | 308 |
| 304 # Set to select the Title Case versions of strings in GRD files. | 309 # Set to select the Title Case versions of strings in GRD files. |
| 305 'use_titlecase_in_grd_files%': 0, | 310 'use_titlecase_in_grd_files%': 0, |
| 306 | 311 |
| 307 # Use translations provided by volunteers at launchpad.net. This | 312 # Use translations provided by volunteers at launchpad.net. This |
| 308 # currently only works on Linux. | 313 # currently only works on Linux. |
| 309 'use_third_party_translations%': 0, | 314 'use_third_party_translations%': 0, |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 730 # | 735 # |
| 731 # On Aura, this allows per-tile painting to be used in the browser | 736 # On Aura, this allows per-tile painting to be used in the browser |
| 732 # compositor. | 737 # compositor. |
| 733 ['OS!="android"', { | 738 ['OS!="android"', { |
| 734 'use_canvas_skia%': 1, | 739 'use_canvas_skia%': 1, |
| 735 }], | 740 }], |
| 736 | 741 |
| 737 ['chromeos==1', { | 742 ['chromeos==1', { |
| 738 # When building for ChromeOS we dont want Chromium to use libjpeg_turb o. | 743 # When building for ChromeOS we dont want Chromium to use libjpeg_turb o. |
| 739 'use_libjpeg_turbo%': 0, | 744 'use_libjpeg_turbo%': 0, |
| 745 | |
| 746 # On ChromeOS, we use the system libharfbuzz-ng, since we use a | |
| 747 # recent version of libpangoft2 that already includes it. | |
| 748 'use_system_harfbuzz%': 1, | |
| 740 }], | 749 }], |
| 741 | 750 |
| 742 ['OS=="android"', { | 751 ['OS=="android"', { |
| 743 # When building as part of the Android system, use system libraries | 752 # When building as part of the Android system, use system libraries |
| 744 # where possible to reduce ROM size. | 753 # where possible to reduce ROM size. |
| 745 'use_system_libjpeg%': '<(android_webview_build)', | 754 'use_system_libjpeg%': '<(android_webview_build)', |
| 746 }], | 755 }], |
| 747 | 756 |
| 748 # Do not enable the Settings App on ChromeOS. | 757 # Do not enable the Settings App on ChromeOS. |
| 749 ['enable_app_list==1 and chromeos==0', { | 758 ['enable_app_list==1 and chromeos==0', { |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 974 'enable_spellcheck%': '<(enable_spellcheck)', | 983 'enable_spellcheck%': '<(enable_spellcheck)', |
| 975 'enable_google_now%': '<(enable_google_now)', | 984 'enable_google_now%': '<(enable_google_now)', |
| 976 'cld_version%': '<(cld_version)', | 985 'cld_version%': '<(cld_version)', |
| 977 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', | 986 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', |
| 978 'disable_ftp_support%': '<(disable_ftp_support)', | 987 'disable_ftp_support%': '<(disable_ftp_support)', |
| 979 'enable_task_manager%': '<(enable_task_manager)', | 988 'enable_task_manager%': '<(enable_task_manager)', |
| 980 'sas_dll_path%': '<(sas_dll_path)', | 989 'sas_dll_path%': '<(sas_dll_path)', |
| 981 'wix_path%': '<(wix_path)', | 990 'wix_path%': '<(wix_path)', |
| 982 'use_libjpeg_turbo%': '<(use_libjpeg_turbo)', | 991 'use_libjpeg_turbo%': '<(use_libjpeg_turbo)', |
| 983 'use_system_libjpeg%': '<(use_system_libjpeg)', | 992 'use_system_libjpeg%': '<(use_system_libjpeg)', |
| 993 'use_system_harfbuzz%': '<(use_system_harfbuzz)', | |
| 984 'android_webview_build%': '<(android_webview_build)', | 994 'android_webview_build%': '<(android_webview_build)', |
| 985 'icu_use_data_file_flag%': '<(icu_use_data_file_flag)', | 995 'icu_use_data_file_flag%': '<(icu_use_data_file_flag)', |
| 986 'gyp_managed_install%': 0, | 996 'gyp_managed_install%': 0, |
| 987 'create_standalone_apk%': 1, | 997 'create_standalone_apk%': 1, |
| 988 'enable_app_list%': '<(enable_app_list)', | 998 'enable_app_list%': '<(enable_app_list)', |
| 989 'use_default_render_theme%': '<(use_default_render_theme)', | 999 'use_default_render_theme%': '<(use_default_render_theme)', |
| 990 'enable_settings_app%': '<(enable_settings_app)', | 1000 'enable_settings_app%': '<(enable_settings_app)', |
| 991 'google_api_key%': '<(google_api_key)', | 1001 'google_api_key%': '<(google_api_key)', |
| 992 'google_default_client_id%': '<(google_default_client_id)', | 1002 'google_default_client_id%': '<(google_default_client_id)', |
| 993 'google_default_client_secret%': '<(google_default_client_secret)', | 1003 'google_default_client_secret%': '<(google_default_client_secret)', |
| (...skipping 1978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2972 'inherit_from': ['Common_Base', 'x64_Base', 'Debug_Base'], | 2982 'inherit_from': ['Common_Base', 'x64_Base', 'Debug_Base'], |
| 2973 }, | 2983 }, |
| 2974 'Release_x64': { | 2984 'Release_x64': { |
| 2975 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'], | 2985 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'], |
| 2976 }, | 2986 }, |
| 2977 }], | 2987 }], |
| 2978 ], | 2988 ], |
| 2979 }, | 2989 }, |
| 2980 }, | 2990 }, |
| 2981 'conditions': [ | 2991 'conditions': [ |
| 2982 # TODO(jochen): Enable this on chromeos. http://crbug.com/353127 | 2992 ['os_posix==1', { |
| 2983 ['os_posix==1 and chromeos==0', { | |
| 2984 'target_defaults': { | 2993 'target_defaults': { |
| 2985 'ldflags': [ | 2994 'ldflags': [ |
| 2986 '-Wl,--fatal-warnings', | 2995 '-Wl,--fatal-warnings', |
| 2987 '-Wl,-z,now', | 2996 '-Wl,-z,now', |
| 2988 '-Wl,-z,relro', | 2997 '-Wl,-z,relro', |
| 2989 ], | 2998 ], |
| 2990 }, | 2999 }, |
| 2991 }], | 3000 }], |
| 2992 ['os_posix==1 and chromeos==0', { | 3001 ['os_posix==1 and chromeos==0', { |
| 2993 # Chrome OS enables -fstack-protector-strong via its build wrapper, | 3002 # Chrome OS enables -fstack-protector-strong via its build wrapper, |
| (...skipping 2070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5064 # settings in target dicts. SYMROOT is a special case, because many other | 5073 # settings in target dicts. SYMROOT is a special case, because many other |
| 5065 # Xcode variables depend on it, including variables such as | 5074 # Xcode variables depend on it, including variables such as |
| 5066 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5075 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 5067 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5076 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 5068 # files to appear (when present) in the UI as actual files and not red | 5077 # files to appear (when present) in the UI as actual files and not red |
| 5069 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5078 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 5070 # and therefore SYMROOT, needs to be set at the project level. | 5079 # and therefore SYMROOT, needs to be set at the project level. |
| 5071 'SYMROOT': '<(DEPTH)/xcodebuild', | 5080 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 5072 }, | 5081 }, |
| 5073 } | 5082 } |
| OLD | NEW |