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

Side by Side Diff: build/common.gypi

Issue 1180693002: Update from https://crrev.com/333737 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 6 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
« no previous file with comments | « build/apk_test.gypi ('k') | build/config/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 # verification. On other targets, this flag also enables OpenSSL for 75 # verification. On other targets, this flag also enables OpenSSL for
76 # certificate verification, but this configuration is unsupported. 76 # certificate verification, but this configuration is unsupported.
77 'use_openssl_certs%': 0, 77 'use_openssl_certs%': 0,
78 78
79 # Disable viewport meta tag by default. 79 # Disable viewport meta tag by default.
80 'enable_viewport%': 0, 80 'enable_viewport%': 0,
81 81
82 # Enable HiDPI support. 82 # Enable HiDPI support.
83 'enable_hidpi%': 0, 83 'enable_hidpi%': 0,
84 84
85 # Enable top chrome material design.
86 'enable_topchrome_md%' : 0,
87
88 # Force building against pre-built sysroot image on linux. By default
89 # the sysroot image is only used for Official builds or when cross
90 # compiling to arm or mips.
91 'use_sysroot%': 0,
92
85 # Override buildtype to select the desired build flavor. 93 # Override buildtype to select the desired build flavor.
86 # Dev - everyday build for development/testing 94 # Dev - everyday build for development/testing
87 # Official - release build (generally implies additional processing) 95 # Official - release build (generally implies additional processing)
88 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp 96 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp
89 # conversion is done), some of the things which are now controlled by 97 # conversion is done), some of the things which are now controlled by
90 # 'branding', such as symbol generation, will need to be refactored 98 # 'branding', such as symbol generation, will need to be refactored
91 # based on 'buildtype' (i.e. we don't care about saving symbols for 99 # based on 'buildtype' (i.e. we don't care about saving symbols for
92 # non-Official # builds). 100 # non-Official # builds).
93 'buildtype%': 'Dev', 101 'buildtype%': 'Dev',
94 102
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 'use_aura%': '<(use_aura)', 148 'use_aura%': '<(use_aura)',
141 'use_ash%': '<(use_ash)', 149 'use_ash%': '<(use_ash)',
142 'use_cras%': '<(use_cras)', 150 'use_cras%': '<(use_cras)',
143 'use_ozone%': '<(use_ozone)', 151 'use_ozone%': '<(use_ozone)',
144 'embedded%': '<(embedded)', 152 'embedded%': '<(embedded)',
145 'use_libpci%': '<(use_libpci)', 153 'use_libpci%': '<(use_libpci)',
146 'use_openssl%': '<(use_openssl)', 154 'use_openssl%': '<(use_openssl)',
147 'use_openssl_certs%': '<(use_openssl_certs)', 155 'use_openssl_certs%': '<(use_openssl_certs)',
148 'enable_viewport%': '<(enable_viewport)', 156 'enable_viewport%': '<(enable_viewport)',
149 'enable_hidpi%': '<(enable_hidpi)', 157 'enable_hidpi%': '<(enable_hidpi)',
158 'enable_topchrome_md%': '<(enable_topchrome_md)',
150 'buildtype%': '<(buildtype)', 159 'buildtype%': '<(buildtype)',
151 'branding%': '<(branding)', 160 'branding%': '<(branding)',
152 'branding_path_component%': '<(branding)', 161 'branding_path_component%': '<(branding)',
153 'host_arch%': '<(host_arch)', 162 'host_arch%': '<(host_arch)',
154 'target_arch%': '<(target_arch)', 163 'target_arch%': '<(target_arch)',
155 164
156 'target_subarch%': '', 165 'target_subarch%': '',
157 166
158 # The channel to build on Android: stable, beta, dev, canary, or 167 # The channel to build on Android: stable, beta, dev, canary, or
159 # default. "default" should be used on non-official builds. 168 # default. "default" should be used on non-official builds.
160 'android_channel%': 'default', 169 'android_channel%': 'default',
161 170
162 # Set ARM architecture version. 171 # Set ARM architecture version.
163 'arm_version%': 7, 172 'arm_version%': 7,
164 173
165 # Use aurax11 for clipboard implementation. This is true on linux_aura. 174 # Use aurax11 for clipboard implementation. This is true on linux_aura.
166 'use_clipboard_aurax11%': 0, 175 'use_clipboard_aurax11%': 0,
167 176
168 # goma settings. 177 # goma settings.
169 # 1 to use goma. 178 # 1 to use goma.
170 # If no gomadir is set, it uses the default gomadir. 179 # If no gomadir is set, it uses the default gomadir.
171 'use_goma%': 0, 180 'use_goma%': 0,
172 'gomadir%': '', 181 'gomadir%': '',
173 182
174 # The system root for cross-compiles. Default: none. 183 # The system root for cross-compiles. Default: none.
175 'sysroot%': '', 184 'sysroot%': '',
176 'use_sysroot%': 0,
177 'chroot_cmd%': '', 185 'chroot_cmd%': '',
178 186
179 # The system libdir used for this ABI. 187 # The system libdir used for this ABI.
180 'system_libdir%': 'lib', 188 'system_libdir%': 'lib',
181 189
182 # Default MIPS arch variant. This is set in the conditions block 190 # Default MIPS arch variant. This is set in the conditions block
183 # below for MIPS targets. 191 # below for MIPS targets.
184 'mips_arch_variant%': '', 192 'mips_arch_variant%': '',
185 193
186 # MIPS DSP ASE revision. Possible values are: 194 # MIPS DSP ASE revision. Possible values are:
(...skipping 28 matching lines...) Expand all
215 'use_aura%': 1, 223 'use_aura%': 1,
216 'use_ash%': 0, 224 'use_ash%': 0,
217 'toolkit_views%': 0, 225 'toolkit_views%': 0,
218 }], 226 }],
219 227
220 # Enable HiDPI on Mac OS, Chrome OS, Windows and Linux. 228 # Enable HiDPI on Mac OS, Chrome OS, Windows and Linux.
221 ['OS=="mac" or chromeos==1 or OS=="win" or OS=="linux"', { 229 ['OS=="mac" or chromeos==1 or OS=="win" or OS=="linux"', {
222 'enable_hidpi%': 1, 230 'enable_hidpi%': 1,
223 }], 231 }],
224 232
233 # Enable Top Chrome Material Design on Chrome OS, and Windows.
234 ['chromeos==1 or OS=="win"', {
235 'enable_topchrome_md%': 1,
236 }],
237
225 # Enable the OpenSSL backend on Mac OS and Windows. 238 # Enable the OpenSSL backend on Mac OS and Windows.
226 ['OS=="mac" or OS=="win"', { 239 ['OS=="mac" or OS=="win"', {
227 'use_openssl%': 1, 240 'use_openssl%': 1,
228 }], 241 }],
229 242
230 # Enable App Launcher everywhere but mobile. 243 # Enable App Launcher everywhere but mobile.
231 ['OS!="ios" and OS!="android"', { 244 ['OS!="ios" and OS!="android"', {
232 'enable_app_list%': 1, 245 'enable_app_list%': 1,
233 }, { 246 }, {
234 'enable_app_list%': 0, 247 'enable_app_list%': 0,
235 }], 248 }],
236 249
237 ['use_aura==1 or (OS!="win" and OS!="mac" and OS!="ios" and OS!="andro id")', { 250 ['use_aura==1 and OS!="android"', {
238 'use_default_render_theme%': 1, 251 'use_default_render_theme%': 1,
239 }, { 252 }, {
240 'use_default_render_theme%': 0, 253 'use_default_render_theme%': 0,
241 }], 254 }],
242 255
243 ['use_ozone==1', { 256 ['use_ozone==1', {
244 'use_ozone_evdev%': 1, 257 'use_ozone_evdev%': 1,
245 }, { 258 }, {
246 'use_ozone_evdev%': 0, 259 'use_ozone_evdev%': 0,
247 }], 260 }],
(...skipping 18 matching lines...) Expand all
266 'mips_arch_variant%': 'r6', 279 'mips_arch_variant%': 'r6',
267 }, { 280 }, {
268 'mips_arch_variant%': 'r2', 281 'mips_arch_variant%': 'r2',
269 }], 282 }],
270 ], 283 ],
271 }], 284 }],
272 285
273 ['target_arch=="mipsel"', { 286 ['target_arch=="mipsel"', {
274 'mips_arch_variant%': 'r1', 287 'mips_arch_variant%': 'r1',
275 }], 288 }],
289
290 ['OS=="linux" and target_arch=="arm" and chromeos==0', {
291 # sysroot needs to be an absolute path otherwise it generates
292 # incorrect results when passed to pkg-config
293 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debian _wheezy_arm-sysroot',
294 }], # OS=="linux" and target_arch=="arm" and chromeos==0
295
296 ['OS=="linux" and ((branding=="Chrome" and buildtype=="Official" and c hromeos==0) or use_sysroot==1)' , {
297 'conditions': [
298 ['target_arch=="x64"', {
299 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/de bian_wheezy_amd64-sysroot',
300 }],
301 ['target_arch=="ia32"', {
302 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/de bian_wheezy_i386-sysroot',
303 }],
304 ],
305 }], # OS=="linux" and branding=="Chrome" and buildtype=="Official" and chromeos==0
306
307 ['OS=="linux" and target_arch=="mipsel"', {
308 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/sysroot',
309 }],
276 ], 310 ],
277 }, 311 },
278 312
279 # Copy conditionally-set variables out one scope. 313 # Copy conditionally-set variables out one scope.
280 'chromeos%': '<(chromeos)', 314 'chromeos%': '<(chromeos)',
281 'chromecast%': '<(chromecast)', 315 'chromecast%': '<(chromecast)',
282 'host_arch%': '<(host_arch)', 316 'host_arch%': '<(host_arch)',
283 'target_arch%': '<(target_arch)', 317 'target_arch%': '<(target_arch)',
284 'target_subarch%': '<(target_subarch)', 318 'target_subarch%': '<(target_subarch)',
285 'mips_arch_variant%': '<(mips_arch_variant)', 319 'mips_arch_variant%': '<(mips_arch_variant)',
286 'mips_dsp_rev%': '<(mips_dsp_rev)', 320 'mips_dsp_rev%': '<(mips_dsp_rev)',
287 'toolkit_views%': '<(toolkit_views)', 321 'toolkit_views%': '<(toolkit_views)',
288 'desktop_linux%': '<(desktop_linux)', 322 'desktop_linux%': '<(desktop_linux)',
289 'use_aura%': '<(use_aura)', 323 'use_aura%': '<(use_aura)',
290 'use_ash%': '<(use_ash)', 324 'use_ash%': '<(use_ash)',
291 'use_cras%': '<(use_cras)', 325 'use_cras%': '<(use_cras)',
292 'use_libpci%': '<(use_libpci)', 326 'use_libpci%': '<(use_libpci)',
293 'use_ozone%': '<(use_ozone)', 327 'use_ozone%': '<(use_ozone)',
294 'use_ozone_evdev%': '<(use_ozone_evdev)', 328 'use_ozone_evdev%': '<(use_ozone_evdev)',
295 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', 329 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)',
296 'embedded%': '<(embedded)', 330 'embedded%': '<(embedded)',
297 'use_openssl%': '<(use_openssl)', 331 'use_openssl%': '<(use_openssl)',
298 'use_openssl_certs%': '<(use_openssl_certs)', 332 'use_openssl_certs%': '<(use_openssl_certs)',
299 'enable_viewport%': '<(enable_viewport)', 333 'enable_viewport%': '<(enable_viewport)',
300 'enable_hidpi%': '<(enable_hidpi)', 334 'enable_hidpi%': '<(enable_hidpi)',
335 'enable_topchrome_md%': '<(enable_topchrome_md)',
301 'android_channel%': '<(android_channel)', 336 'android_channel%': '<(android_channel)',
302 'use_goma%': '<(use_goma)', 337 'use_goma%': '<(use_goma)',
303 'gomadir%': '<(gomadir)', 338 'gomadir%': '<(gomadir)',
304 'enable_app_list%': '<(enable_app_list)', 339 'enable_app_list%': '<(enable_app_list)',
305 'use_default_render_theme%': '<(use_default_render_theme)', 340 'use_default_render_theme%': '<(use_default_render_theme)',
306 'buildtype%': '<(buildtype)', 341 'buildtype%': '<(buildtype)',
307 'branding%': '<(branding)', 342 'branding%': '<(branding)',
308 'branding_path_component%': '<(branding_path_component)', 343 'branding_path_component%': '<(branding_path_component)',
309 'arm_version%': '<(arm_version)', 344 'arm_version%': '<(arm_version)',
310 'sysroot%': '<(sysroot)', 345 'sysroot%': '<(sysroot)',
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 # for safe browsing feature. Safe browsing can be compiled in 4 different 409 # for safe browsing feature. Safe browsing can be compiled in 4 different
375 # levels: 0 disables it, 1 enables it fully, and 2 enables only UI and 410 # levels: 0 disables it, 1 enables it fully, and 2 enables only UI and
376 # reporting features for use with Data Saver on Mobile, and 3 enables 411 # reporting features for use with Data Saver on Mobile, and 3 enables
377 # extended mobile protection via an external API. When 3 is fully 412 # extended mobile protection via an external API. When 3 is fully
378 # deployed, it will replace 2. 413 # deployed, it will replace 2.
379 'safe_browsing%': 1, 414 'safe_browsing%': 1,
380 415
381 # Web speech is enabled by default. Set to 0 to disable. 416 # Web speech is enabled by default. Set to 0 to disable.
382 'enable_web_speech%': 1, 417 'enable_web_speech%': 1,
383 418
419 # 'Ok Google' hotwording is enabled by default. Set to 0 to disable.
420 'enable_hotwording%': 1,
421
384 # Notifications are compiled in by default. Set to 0 to disable. 422 # Notifications are compiled in by default. Set to 0 to disable.
385 'notifications%' : 1, 423 'notifications%' : 1,
386 424
387 # Use dsymutil to generate real .dSYM files on Mac. The default is 0 for 425 # Use dsymutil to generate real .dSYM files on Mac. The default is 0 for
388 # regular builds and 1 for ASan builds. 426 # regular builds and 1 for ASan builds.
389 'mac_want_real_dsym%': 'default', 427 'mac_want_real_dsym%': 'default',
390 428
391 # If this is set, the clang plugins used on the buildbot will be used. 429 # If this is set, the clang plugins used on the buildbot will be used.
392 # Run tools/clang/scripts/update.sh to make sure they are compiled. 430 # Run tools/clang/scripts/update.sh to make sure they are compiled.
393 # This causes 'clang_chrome_plugins_flags' to be set. 431 # This causes 'clang_chrome_plugins_flags' to be set.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 # Track where uninitialized memory originates from. From fastest to 477 # Track where uninitialized memory originates from. From fastest to
440 # slowest: 0 - no tracking, 1 - track only the initial allocation site, 2 478 # slowest: 0 - no tracking, 1 - track only the initial allocation site, 2
441 # - track the chain of stores leading from allocation site to use site. 479 # - track the chain of stores leading from allocation site to use site.
442 'msan_track_origins%': 2, 480 'msan_track_origins%': 2,
443 481
444 # Enable building with UBSan (Clang's -fsanitize=undefined option). 482 # Enable building with UBSan (Clang's -fsanitize=undefined option).
445 # -fsanitize=undefined only works with clang, but ubsan=1 implies clang=1 483 # -fsanitize=undefined only works with clang, but ubsan=1 implies clang=1
446 # See http://clang.llvm.org/docs/UsersManual.html 484 # See http://clang.llvm.org/docs/UsersManual.html
447 'ubsan%': 0, 485 'ubsan%': 0,
448 'ubsan_blacklist%': '<(PRODUCT_DIR)/../../tools/ubsan/blacklist.txt', 486 'ubsan_blacklist%': '<(PRODUCT_DIR)/../../tools/ubsan/blacklist.txt',
487 'ubsan_vptr_blacklist%': '<(PRODUCT_DIR)/../../tools/ubsan/vptr_blacklist. txt',
449 488
450 # Enable building with UBsan's vptr (Clang's -fsanitize=vptr option). 489 # Enable building with UBsan's vptr (Clang's -fsanitize=vptr option).
451 # -fsanitize=vptr only works with clang, but ubsan_vptr=1 implies clang=1 490 # -fsanitize=vptr only works with clang, but ubsan_vptr=1 implies clang=1
452 'ubsan_vptr%': 0, 491 'ubsan_vptr%': 0,
453 492
454 # Use dynamic libraries instrumented by one of the sanitizers 493 # Use dynamic libraries instrumented by one of the sanitizers
455 # instead of the standard system libraries. Set this flag to build the 494 # instead of the standard system libraries. Set this flag to build the
456 # libraries from source. 495 # libraries from source.
457 'use_instrumented_libraries%': 0, 496 'use_instrumented_libraries%': 0,
458 497
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 # specific implementations of gfx::Canvas. Affects text drawing in the 634 # specific implementations of gfx::Canvas. Affects text drawing in the
596 # Chrome UI. 635 # Chrome UI.
597 # TODO(asvitkine): Enable this on all platforms and delete this flag. 636 # TODO(asvitkine): Enable this on all platforms and delete this flag.
598 # http://crbug.com/105550 637 # http://crbug.com/105550
599 'use_canvas_skia%': 0, 638 'use_canvas_skia%': 0,
600 639
601 # Set to "tsan", "memcheck", or "drmemory" to configure the build to work 640 # Set to "tsan", "memcheck", or "drmemory" to configure the build to work
602 # with one of those tools. 641 # with one of those tools.
603 'build_for_tool%': '', 642 'build_for_tool%': '',
604 643
605 # If no directory is specified then a temporary directory will be used.
606 'test_isolation_outdir%': '',
607
608 'wix_path%': '<(DEPTH)/third_party/wix', 644 'wix_path%': '<(DEPTH)/third_party/wix',
609 645
610 # Supervised users are enabled by default. 646 # Supervised users are enabled by default.
611 'enable_supervised_users%': 1, 647 'enable_supervised_users%': 1,
612 648
613 # Platform sends memory pressure signals natively. 649 # Platform sends memory pressure signals natively.
614 'native_memory_pressure_signals%': 0, 650 'native_memory_pressure_signals%': 0,
615 651
616 'spdy_proxy_auth_property%' : '',
617 'spdy_proxy_auth_value%' : '',
618 'enable_mdns%' : 0, 652 'enable_mdns%' : 0,
619 'enable_service_discovery%': 0, 653 'enable_service_discovery%': 0,
620 'enable_wifi_bootstrapping%': 0, 654 'enable_wifi_bootstrapping%': 0,
621 'enable_hangout_services_extension%': 0, 655 'enable_hangout_services_extension%': 0,
622 656
623 # Enable the Syzygy optimization step. 657 # Enable the Syzygy optimization step.
624 'syzygy_optimize%': 0, 658 'syzygy_optimize%': 0,
625 659
626 # Enable hole punching for the protected video. 660 # Enable hole punching for the protected video.
627 'video_hole%': 0, 661 'video_hole%': 0,
(...skipping 18 matching lines...) Expand all
646 # tools/clang/scripts/update.py and the absolute path to 680 # tools/clang/scripts/update.py and the absolute path to
647 # third_party/llvm-build/Release+Asserts/lib must be added to 681 # third_party/llvm-build/Release+Asserts/lib must be added to
648 # $DYLD_LIBRARY_PATH to pick up the right version of the linker plugin. 682 # $DYLD_LIBRARY_PATH to pick up the right version of the linker plugin.
649 # 683 #
650 # On Android, the variables must *not* be enabled at the same time. 684 # On Android, the variables must *not* be enabled at the same time.
651 # In this case LTO would 'merge' the optimization flags at link-time 685 # In this case LTO would 'merge' the optimization flags at link-time
652 # which would lead to all code be optimized with -O2. See crbug.com/407544 686 # which would lead to all code be optimized with -O2. See crbug.com/407544
653 'use_lto%': 0, 687 'use_lto%': 0,
654 'use_lto_o2%': 0, 688 'use_lto_o2%': 0,
655 689
656 # Allowed level of identical code folding in the gold linker.
657 'gold_icf_level%': 'safe',
658
659 # Libxkbcommon usage. 690 # Libxkbcommon usage.
660 'use_xkbcommon%': 0, 691 'use_xkbcommon%': 0,
661 692
662 # Control Flow Integrity for virtual calls. 693 # Control Flow Integrity for virtual calls and casts.
663 # See http://clang.llvm.org/docs/ControlFlowIntegrity.html 694 # See http://clang.llvm.org/docs/ControlFlowIntegrity.html
664 'cfi_vptr%': 0, 695 'cfi_vptr%': 0,
665 696
666 # Control Flow Integrity for casts.
667 # See http://clang.llvm.org/docs/ControlFlowIntegrity.html
668 'cfi_derived_cast%': 0,
669 'cfi_unrelated_cast%': 0,
670
671 'cfi_blacklist%': '<(PRODUCT_DIR)/../../tools/cfi/blacklist.txt', 697 'cfi_blacklist%': '<(PRODUCT_DIR)/../../tools/cfi/blacklist.txt',
672 698
673 # Whether the entire browser uses toolkit-views on Mac instead of Cocoa. 699 # Whether the entire browser uses toolkit-views on Mac instead of Cocoa.
674 'mac_views_browser%': 0, 700 'mac_views_browser%': 0,
675 701
676 # By default, use ICU data file (icudtl.dat). 702 # By default, use ICU data file (icudtl.dat).
677 'icu_use_data_file_flag%': 1, 703 'icu_use_data_file_flag%': 1,
678 704
679 # Turn on JNI generation optimizations by default. 705 # Turn on JNI generation optimizations by default.
680 'optimize_jni_generation%': 1, 706 'optimize_jni_generation%': 1,
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 'proprietary_codecs%': 0, 823 'proprietary_codecs%': 0,
798 }], 824 }],
799 825
800 ['OS=="mac" or OS=="ios"', { 826 ['OS=="mac" or OS=="ios"', {
801 'native_memory_pressure_signals%': 1, 827 'native_memory_pressure_signals%': 1,
802 }], 828 }],
803 829
804 # Enable autofill dialog when not on iOS. 830 # Enable autofill dialog when not on iOS.
805 ['OS!="ios"', { 831 ['OS!="ios"', {
806 'enable_autofill_dialog%': 1, 832 'enable_autofill_dialog%': 1,
833 }],
807 834
808 'conditions': [ 835 ['buildtype=="Official"', {
809 ['buildtype=="Official"', { 836 'enable_prod_wallet_service%': 1,
810 'enable_prod_wallet_service%': 1,
811 }],
812 ]
813 }], 837 }],
814 838
815 ['OS=="android"', { 839 ['OS=="android"', {
816 'enable_webrtc%': 1, 840 'enable_webrtc%': 1,
817 }], 841 }],
818 842
819 ['OS=="ios"', { 843 ['OS=="ios"', {
820 'disable_ftp_support%': 1, 844 'disable_ftp_support%': 1,
821 'enable_extensions%': 0, 845 'enable_extensions%': 0,
822 'enable_google_now%': 0, 846 'enable_google_now%': 0,
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 'enable_print_preview%': 1, 949 'enable_print_preview%': 1,
926 }], 950 }],
927 951
928 # Do not enable the Settings App on ChromeOS. 952 # Do not enable the Settings App on ChromeOS.
929 ['enable_app_list==1 and chromeos==0', { 953 ['enable_app_list==1 and chromeos==0', {
930 'enable_settings_app%': 1, 954 'enable_settings_app%': 1,
931 }, { 955 }, {
932 'enable_settings_app%': 0, 956 'enable_settings_app%': 0,
933 }], 957 }],
934 958
935 ['OS=="linux" and target_arch=="arm" and chromeos==0', {
936 # Set some defaults for arm/linux chrome builds
937 'use_allocator%': 'none',
938 # sysroot needs to be an absolute path otherwise it generates
939 # incorrect results when passed to pkg-config
940 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debian_w heezy_arm-sysroot',
941 }], # OS=="linux" and target_arch=="arm" and chromeos==0
942
943 ['OS=="linux" and ((branding=="Chrome" and buildtype=="Official" and chr omeos==0) or use_sysroot==1)' , {
944 'conditions': [
945 ['target_arch=="x64"', {
946 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debi an_wheezy_amd64-sysroot',
947 }],
948 ['target_arch=="ia32"', {
949 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debi an_wheezy_i386-sysroot',
950 }],
951 ],
952 }], # OS=="linux" and branding=="Chrome" and buildtype=="Official" and c hromeos==0
953
954 ['OS=="linux" and target_arch=="mipsel"', {
955 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/sysroot',
956 'CXX%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/bin/mipsel-linux-gnu -gcc',
957 }],
958
959 # Whether tests targets should be run, archived or just have the 959 # Whether tests targets should be run, archived or just have the
960 # dependencies verified. All the tests targets have the '_run' suffix, 960 # dependencies verified. All the tests targets have the '_run' suffix,
961 # e.g. base_unittests_run runs the target base_unittests. The test 961 # e.g. base_unittests_run runs the target base_unittests. The test
962 # target always calls tools/swarming_client/isolate.py. See the script's 962 # target always calls tools/swarming_client/isolate.py. See the script's
963 # --help for more information. Meant to be overriden with GYP_DEFINES. 963 # --help for more information. Meant to be overriden with GYP_DEFINES.
964 # TODO(maruel): Remove the conditions as more configurations are 964 # TODO(maruel): Remove the conditions as more configurations are
965 # supported. 965 # supported.
966 ['OS!="ios" and OS!="android" and chromeos==0', { 966 ['OS!="ios" and OS!="android" and chromeos==0', {
967 'test_isolation_mode%': 'check', 967 'test_isolation_mode%': 'check',
968 }, { 968 }, {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 'enable_wifi_bootstrapping%' : 1, 1003 'enable_wifi_bootstrapping%' : 1,
1004 }], 1004 }],
1005 1005
1006 # Path to sas.dll, which provides the SendSAS function. 1006 # Path to sas.dll, which provides the SendSAS function.
1007 # http://msdn.microsoft.com/en-us/library/windows/desktop/dd979761(v=vs. 85).aspx 1007 # http://msdn.microsoft.com/en-us/library/windows/desktop/dd979761(v=vs. 85).aspx
1008 ['target_arch=="x64"', { 1008 ['target_arch=="x64"', {
1009 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/a md64', 1009 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/a md64',
1010 }, { 1010 }, {
1011 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/x 86', 1011 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/x 86',
1012 }], 1012 }],
1013
1014 ['sysroot!=""', {
1015 'pkg-config': '<(DEPTH)/build/linux/pkg-config-wrapper "<(sysroot)" "< (target_arch)" "<(system_libdir)"',
1016 }, {
1017 'pkg-config': 'pkg-config'
1018 }],
1013 ], 1019 ],
1014 1020
1015 # Setting this to '0' will cause V8's startup snapshot to be 1021 # Setting this to '0' will cause V8's startup snapshot to be
1016 # embedded in the binary instead of being a external files. 1022 # embedded in the binary instead of being a external files.
1017 'v8_use_external_startup_data%': 1, 1023 'v8_use_external_startup_data%': 1,
1018 1024
1019 # Set this to 1 to enable use of concatenated impulse responses 1025 # Set this to 1 to enable use of concatenated impulse responses
1020 # for the HRTF panner in WebAudio. 1026 # for the HRTF panner in WebAudio.
1021 'use_concatenated_impulse_responses': 1, 1027 'use_concatenated_impulse_responses': 1,
1022 1028
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
1103 'use_xkbcommon%': '<(use_xkbcommon)', 1109 'use_xkbcommon%': '<(use_xkbcommon)',
1104 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', 1110 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)',
1105 'desktop_linux%': '<(desktop_linux)', 1111 'desktop_linux%': '<(desktop_linux)',
1106 'use_x11%': '<(use_x11)', 1112 'use_x11%': '<(use_x11)',
1107 'use_gnome_keyring%': '<(use_gnome_keyring)', 1113 'use_gnome_keyring%': '<(use_gnome_keyring)',
1108 'linux_fpic%': '<(linux_fpic)', 1114 'linux_fpic%': '<(linux_fpic)',
1109 'chromeos%': '<(chromeos)', 1115 'chromeos%': '<(chromeos)',
1110 'chromecast%': '<(chromecast)', 1116 'chromecast%': '<(chromecast)',
1111 'enable_viewport%': '<(enable_viewport)', 1117 'enable_viewport%': '<(enable_viewport)',
1112 'enable_hidpi%': '<(enable_hidpi)', 1118 'enable_hidpi%': '<(enable_hidpi)',
1119 'enable_topchrome_md%': '<(enable_topchrome_md)',
1113 'image_loader_extension%': '<(image_loader_extension)', 1120 'image_loader_extension%': '<(image_loader_extension)',
1114 'fastbuild%': '<(fastbuild)', 1121 'fastbuild%': '<(fastbuild)',
1115 'dont_embed_build_metadata%': '<(dont_embed_build_metadata)', 1122 'dont_embed_build_metadata%': '<(dont_embed_build_metadata)',
1116 'win_z7%': '<(win_z7)', 1123 'win_z7%': '<(win_z7)',
1117 'dcheck_always_on%': '<(dcheck_always_on)', 1124 'dcheck_always_on%': '<(dcheck_always_on)',
1118 'tracing_like_official_build%': '<(tracing_like_official_build)', 1125 'tracing_like_official_build%': '<(tracing_like_official_build)',
1119 'arm_version%': '<(arm_version)', 1126 'arm_version%': '<(arm_version)',
1120 'arm_neon%': '<(arm_neon)', 1127 'arm_neon%': '<(arm_neon)',
1121 'arm_neon_optional%': '<(arm_neon_optional)', 1128 'arm_neon_optional%': '<(arm_neon_optional)',
1122 'sysroot%': '<(sysroot)', 1129 'sysroot%': '<(sysroot)',
1130 'pkg-config%': '<(pkg-config)',
1123 'chroot_cmd%': '<(chroot_cmd)', 1131 'chroot_cmd%': '<(chroot_cmd)',
1124 'system_libdir%': '<(system_libdir)', 1132 'system_libdir%': '<(system_libdir)',
1125 'component%': '<(component)', 1133 'component%': '<(component)',
1126 'win_analyze%': '<(win_analyze)', 1134 'win_analyze%': '<(win_analyze)',
1127 'enable_resource_whitelist_generation%': '<(enable_resource_whitelist_genera tion)', 1135 'enable_resource_whitelist_generation%': '<(enable_resource_whitelist_genera tion)',
1128 'use_titlecase_in_grd%': '<(use_titlecase_in_grd)', 1136 'use_titlecase_in_grd%': '<(use_titlecase_in_grd)',
1129 'use_third_party_translations%': '<(use_third_party_translations)', 1137 'use_third_party_translations%': '<(use_third_party_translations)',
1130 'remoting%': '<(remoting)', 1138 'remoting%': '<(remoting)',
1131 'enable_one_click_signin%': '<(enable_one_click_signin)', 1139 'enable_one_click_signin%': '<(enable_one_click_signin)',
1132 'enable_pre_sync_backup%': '<(enable_pre_sync_backup)', 1140 'enable_pre_sync_backup%': '<(enable_pre_sync_backup)',
1133 'enable_media_router%': '<(enable_media_router)', 1141 'enable_media_router%': '<(enable_media_router)',
1134 'enable_webrtc%': '<(enable_webrtc)', 1142 'enable_webrtc%': '<(enable_webrtc)',
1135 'chromium_win_pch%': '<(chromium_win_pch)', 1143 'chromium_win_pch%': '<(chromium_win_pch)',
1136 'configuration_policy%': '<(configuration_policy)', 1144 'configuration_policy%': '<(configuration_policy)',
1137 'safe_browsing%': '<(safe_browsing)', 1145 'safe_browsing%': '<(safe_browsing)',
1138 'enable_web_speech%': '<(enable_web_speech)', 1146 'enable_web_speech%': '<(enable_web_speech)',
1147 'enable_hotwording%': '<(enable_hotwording)',
1139 'notifications%': '<(notifications)', 1148 'notifications%': '<(notifications)',
1140 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', 1149 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)',
1141 'mac_want_real_dsym%': '<(mac_want_real_dsym)', 1150 'mac_want_real_dsym%': '<(mac_want_real_dsym)',
1142 'asan%': '<(asan)', 1151 'asan%': '<(asan)',
1143 'asan_blacklist%': '<(asan_blacklist)', 1152 'asan_blacklist%': '<(asan_blacklist)',
1144 'asan_coverage%': '<(asan_coverage)', 1153 'asan_coverage%': '<(asan_coverage)',
1145 'sanitizer_coverage%': '<(sanitizer_coverage)', 1154 'sanitizer_coverage%': '<(sanitizer_coverage)',
1146 'asan_field_padding%': '<(asan_field_padding)', 1155 'asan_field_padding%': '<(asan_field_padding)',
1147 'use_sanitizer_options%': '<(use_sanitizer_options)', 1156 'use_sanitizer_options%': '<(use_sanitizer_options)',
1148 'syzyasan%': '<(syzyasan)', 1157 'syzyasan%': '<(syzyasan)',
1149 'kasko%': '<(kasko)', 1158 'kasko%': '<(kasko)',
1150 'syzygy_optimize%': '<(syzygy_optimize)', 1159 'syzygy_optimize%': '<(syzygy_optimize)',
1151 'lsan%': '<(lsan)', 1160 'lsan%': '<(lsan)',
1152 'msan%': '<(msan)', 1161 'msan%': '<(msan)',
1153 'msan_blacklist%': '<(msan_blacklist)', 1162 'msan_blacklist%': '<(msan_blacklist)',
1154 'msan_track_origins%': '<(msan_track_origins)', 1163 'msan_track_origins%': '<(msan_track_origins)',
1155 'tsan%': '<(tsan)', 1164 'tsan%': '<(tsan)',
1156 'tsan_blacklist%': '<(tsan_blacklist)', 1165 'tsan_blacklist%': '<(tsan_blacklist)',
1157 'ubsan%': '<(ubsan)', 1166 'ubsan%': '<(ubsan)',
1158 'ubsan_blacklist%': '<(ubsan_blacklist)', 1167 'ubsan_blacklist%': '<(ubsan_blacklist)',
1168 'ubsan_vptr_blacklist%': '<(ubsan_vptr_blacklist)',
1159 'ubsan_vptr%': '<(ubsan_vptr)', 1169 'ubsan_vptr%': '<(ubsan_vptr)',
1160 'use_instrumented_libraries%': '<(use_instrumented_libraries)', 1170 'use_instrumented_libraries%': '<(use_instrumented_libraries)',
1161 'use_prebuilt_instrumented_libraries%': '<(use_prebuilt_instrumented_librari es)', 1171 'use_prebuilt_instrumented_libraries%': '<(use_prebuilt_instrumented_librari es)',
1162 'use_custom_libcxx%': '<(use_custom_libcxx)', 1172 'use_custom_libcxx%': '<(use_custom_libcxx)',
1163 'use_system_libcxx%': '<(use_system_libcxx)', 1173 'use_system_libcxx%': '<(use_system_libcxx)',
1164 'clang_type_profiler%': '<(clang_type_profiler)', 1174 'clang_type_profiler%': '<(clang_type_profiler)',
1165 'order_profiling%': '<(order_profiling)', 1175 'order_profiling%': '<(order_profiling)',
1166 'order_text_section%': '<(order_text_section)', 1176 'order_text_section%': '<(order_text_section)',
1167 'enable_extensions%': '<(enable_extensions)', 1177 'enable_extensions%': '<(enable_extensions)',
1168 'enable_plugin_installation%': '<(enable_plugin_installation)', 1178 'enable_plugin_installation%': '<(enable_plugin_installation)',
1169 'enable_plugins%': '<(enable_plugins)', 1179 'enable_plugins%': '<(enable_plugins)',
1170 'enable_session_service%': '<(enable_session_service)', 1180 'enable_session_service%': '<(enable_session_service)',
1171 'enable_themes%': '<(enable_themes)', 1181 'enable_themes%': '<(enable_themes)',
1172 'enable_autofill_dialog%': '<(enable_autofill_dialog)', 1182 'enable_autofill_dialog%': '<(enable_autofill_dialog)',
1173 'enable_prod_wallet_service%': '<(enable_prod_wallet_service)', 1183 'enable_prod_wallet_service%': '<(enable_prod_wallet_service)',
1174 'enable_background%': '<(enable_background)', 1184 'enable_background%': '<(enable_background)',
1175 'linux_use_bundled_gold%': '<(linux_use_bundled_gold)', 1185 'linux_use_bundled_gold%': '<(linux_use_bundled_gold)',
1176 'linux_use_bundled_binutils%': '<(linux_use_bundled_binutils)', 1186 'linux_use_bundled_binutils%': '<(linux_use_bundled_binutils)',
1177 'linux_use_gold_flags%': '<(linux_use_gold_flags)', 1187 'linux_use_gold_flags%': '<(linux_use_gold_flags)',
1178 'linux_use_debug_fission%': '<(linux_use_debug_fission)', 1188 'linux_use_debug_fission%': '<(linux_use_debug_fission)',
1179 'use_canvas_skia%': '<(use_canvas_skia)', 1189 'use_canvas_skia%': '<(use_canvas_skia)',
1180 'test_isolation_mode%': '<(test_isolation_mode)', 1190 'test_isolation_mode%': '<(test_isolation_mode)',
1181 'test_isolation_outdir%': '<(test_isolation_outdir)',
1182 'enable_basic_printing%': '<(enable_basic_printing)', 1191 'enable_basic_printing%': '<(enable_basic_printing)',
1183 'enable_print_preview%': '<(enable_print_preview)', 1192 'enable_print_preview%': '<(enable_print_preview)',
1184 'enable_spellcheck%': '<(enable_spellcheck)', 1193 'enable_spellcheck%': '<(enable_spellcheck)',
1185 'enable_google_now%': '<(enable_google_now)', 1194 'enable_google_now%': '<(enable_google_now)',
1186 'cld_version%': '<(cld_version)', 1195 'cld_version%': '<(cld_version)',
1187 'cld2_table_size%': '<(cld2_table_size)', 1196 'cld2_table_size%': '<(cld2_table_size)',
1188 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', 1197 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)',
1189 'disable_file_support%': '<(disable_file_support)', 1198 'disable_file_support%': '<(disable_file_support)',
1190 'disable_ftp_support%': '<(disable_ftp_support)', 1199 'disable_ftp_support%': '<(disable_ftp_support)',
1191 'use_icu_alternatives_on_android%': '<(use_icu_alternatives_on_android)', 1200 'use_icu_alternatives_on_android%': '<(use_icu_alternatives_on_android)',
1192 'enable_task_manager%': '<(enable_task_manager)', 1201 'enable_task_manager%': '<(enable_task_manager)',
1193 'sas_dll_path%': '<(sas_dll_path)', 1202 'sas_dll_path%': '<(sas_dll_path)',
1194 'wix_path%': '<(wix_path)', 1203 'wix_path%': '<(wix_path)',
1195 'use_libjpeg_turbo%': '<(use_libjpeg_turbo)', 1204 'use_libjpeg_turbo%': '<(use_libjpeg_turbo)',
1196 'use_system_libjpeg%': '<(use_system_libjpeg)', 1205 'use_system_libjpeg%': '<(use_system_libjpeg)',
1197 'android_channel%': '<(android_channel)', 1206 'android_channel%': '<(android_channel)',
1198 'icu_use_data_file_flag%': '<(icu_use_data_file_flag)', 1207 'icu_use_data_file_flag%': '<(icu_use_data_file_flag)',
1199 'gyp_managed_install%': 0, 1208 'gyp_managed_install%': 0,
1200 'create_standalone_apk%': 1, 1209 'create_standalone_apk%': 1,
1201 'enable_app_list%': '<(enable_app_list)', 1210 'enable_app_list%': '<(enable_app_list)',
1202 'use_default_render_theme%': '<(use_default_render_theme)', 1211 'use_default_render_theme%': '<(use_default_render_theme)',
1203 'enable_settings_app%': '<(enable_settings_app)', 1212 'enable_settings_app%': '<(enable_settings_app)',
1204 'google_api_key%': '<(google_api_key)', 1213 'google_api_key%': '<(google_api_key)',
1205 'google_default_client_id%': '<(google_default_client_id)', 1214 'google_default_client_id%': '<(google_default_client_id)',
1206 'google_default_client_secret%': '<(google_default_client_secret)', 1215 'google_default_client_secret%': '<(google_default_client_secret)',
1207 'enable_supervised_users%': '<(enable_supervised_users)', 1216 'enable_supervised_users%': '<(enable_supervised_users)',
1208 'native_memory_pressure_signals%': '<(native_memory_pressure_signals)', 1217 'native_memory_pressure_signals%': '<(native_memory_pressure_signals)',
1209 'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)',
1210 'spdy_proxy_auth_value%': '<(spdy_proxy_auth_value)',
1211 'enable_mdns%' : '<(enable_mdns)', 1218 'enable_mdns%' : '<(enable_mdns)',
1212 'enable_service_discovery%' : '<(enable_service_discovery)', 1219 'enable_service_discovery%' : '<(enable_service_discovery)',
1213 'enable_wifi_bootstrapping%': '<(enable_wifi_bootstrapping)', 1220 'enable_wifi_bootstrapping%': '<(enable_wifi_bootstrapping)',
1214 'enable_hangout_services_extension%' : '<(enable_hangout_services_extension) ', 1221 'enable_hangout_services_extension%' : '<(enable_hangout_services_extension) ',
1215 'v8_optimized_debug%': '<(v8_optimized_debug)', 1222 'v8_optimized_debug%': '<(v8_optimized_debug)',
1216 'proprietary_codecs%': '<(proprietary_codecs)', 1223 'proprietary_codecs%': '<(proprietary_codecs)',
1217 'use_goma%': '<(use_goma)', 1224 'use_goma%': '<(use_goma)',
1218 'gomadir%': '<(gomadir)', 1225 'gomadir%': '<(gomadir)',
1219 'use_lto%': '<(use_lto)', 1226 'use_lto%': '<(use_lto)',
1220 'use_lto_o2%': '<(use_lto_o2)', 1227 'use_lto_o2%': '<(use_lto_o2)',
1221 'gold_icf_level%': '<(gold_icf_level)',
1222 'video_hole%': '<(video_hole)', 1228 'video_hole%': '<(video_hole)',
1223 'v8_use_external_startup_data%': '<(v8_use_external_startup_data)', 1229 'v8_use_external_startup_data%': '<(v8_use_external_startup_data)',
1224 'cfi_vptr%': '<(cfi_vptr)', 1230 'cfi_vptr%': '<(cfi_vptr)',
1225 'cfi_derived_cast%': '<(cfi_derived_cast)',
1226 'cfi_unrelated_cast%': '<(cfi_unrelated_cast)',
1227 'cfi_blacklist%': '<(cfi_blacklist)', 1231 'cfi_blacklist%': '<(cfi_blacklist)',
1228 'mac_views_browser%': '<(mac_views_browser)', 1232 'mac_views_browser%': '<(mac_views_browser)',
1229 'android_app_version_name%': '<(android_app_version_name)', 1233 'android_app_version_name%': '<(android_app_version_name)',
1230 'android_app_version_code%': '<(android_app_version_code)', 1234 'android_app_version_code%': '<(android_app_version_code)',
1231 1235
1232 # Use system protobuf instead of bundled one. 1236 # Use system protobuf instead of bundled one.
1233 'use_system_protobuf%': 0, 1237 'use_system_protobuf%': 0,
1234 1238
1235 # Use system yasm instead of bundled one. 1239 # Use system yasm instead of bundled one.
1236 'use_system_yasm%': 0, 1240 'use_system_yasm%': 0,
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
1437 'java_bridge%': 0, 1441 'java_bridge%': 0,
1438 1442
1439 # Code signing for iOS binaries. The bots need to be able to disable this. 1443 # Code signing for iOS binaries. The bots need to be able to disable this.
1440 'chromium_ios_signing%': 1, 1444 'chromium_ios_signing%': 1,
1441 1445
1442 # This flag is only used when disable_nacl==0 and disables all those 1446 # This flag is only used when disable_nacl==0 and disables all those
1443 # subcomponents which would require the installation of a native_client 1447 # subcomponents which would require the installation of a native_client
1444 # untrusted toolchain. 1448 # untrusted toolchain.
1445 'disable_nacl_untrusted%': 0, 1449 'disable_nacl_untrusted%': 0,
1446 1450
1451 # PNaCl toolchain does not support sanitizers. Disable by default.
1452 'enable_nacl_nonsfi_test%': 0,
1453
1447 # Disable Dart by default. 1454 # Disable Dart by default.
1448 'enable_dart%': 0, 1455 'enable_dart%': 0,
1449 1456
1450 # Copy out the setting of disable_nacl. 1457 # Copy out the setting of disable_nacl.
1451 'disable_nacl%': '<(disable_nacl)', 1458 'disable_nacl%': '<(disable_nacl)',
1452 1459
1453 # Portable Native Client is enabled by default. 1460 # Portable Native Client is enabled by default.
1454 'disable_pnacl%': 0, 1461 'disable_pnacl%': 0,
1455 1462
1456 # Whether to build full debug version for Debug configuration on Android. 1463 # Whether to build full debug version for Debug configuration on Android.
1457 # Compared to full debug version, the default Debug configuration on Android 1464 # Compared to full debug version, the default Debug configuration on Android
1458 # has no full v8 debug, has size optimization and linker gc section, so that 1465 # has no full v8 debug, has size optimization and linker gc section, so that
1459 # we can build a debug version with acceptable size and performance. 1466 # we can build a debug version with acceptable size and performance.
1460 'android_full_debug%': 0, 1467 'android_full_debug%': 0,
1461 1468
1462 # Contains data about the attached devices for gyp_managed_install. 1469 # Contains data about the attached devices for gyp_managed_install.
1463 'build_device_config_path': '<(PRODUCT_DIR)/build_devices.cfg', 1470 'build_device_config_path': '<(PRODUCT_DIR)/build_devices.cfg',
1464 1471
1465 'sas_dll_exists': '<!pymod_do_main(dir_exists "<(sas_dll_path)")', 1472 'sas_dll_exists': '<!pymod_do_main(dir_exists "<(sas_dll_path)")',
1466 'wix_exists': '<!pymod_do_main(dir_exists "<(wix_path)")', 1473 'wix_exists': '<!pymod_do_main(dir_exists "<(wix_path)")',
1467 1474
1468 'windows_sdk_default_path': '<(DEPTH)/third_party/platformsdk_win8/files', 1475 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.1',
1469 'directx_sdk_default_path': '<(DEPTH)/third_party/directxsdk/files', 1476 'directx_sdk_default_path': '<(DEPTH)/third_party/directxsdk/files',
1470 1477
1471 # Whether we are using the rlz library or not. Platforms like Android send 1478 # Whether we are using the rlz library or not. Platforms like Android send
1472 # rlz codes for searches but do not use the library. 1479 # rlz codes for searches but do not use the library.
1473 'enable_rlz%': 0, 1480 'enable_rlz%': 0,
1474 1481
1475 # Turns on the i18n support in V8. 1482 # Turns on the i18n support in V8.
1476 'v8_enable_i18n_support': 1, 1483 'v8_enable_i18n_support': 1,
1477 1484
1478 # Compile d8 for the host toolset. 1485 # Compile d8 for the host toolset.
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
1574 'gcc_version%': 49, 1581 'gcc_version%': 49,
1575 }, { 1582 }, {
1576 'host_gcc_version%': '<!pymod_do_main(compiler_version host compiler )', 1583 'host_gcc_version%': '<!pymod_do_main(compiler_version host compiler )',
1577 'gcc_version%': '<!pymod_do_main(compiler_version target compiler)', 1584 'gcc_version%': '<!pymod_do_main(compiler_version target compiler)',
1578 }], 1585 }],
1579 ], 1586 ],
1580 }, { 1587 }, {
1581 'host_gcc_version%': 0, 1588 'host_gcc_version%': 0,
1582 'gcc_version%': 0, 1589 'gcc_version%': 0,
1583 }], 1590 }],
1584 ['OS=="win" and "<!pymod_do_main(dir_exists <(windows_sdk_default_path))"= ="True"', {
1585 'windows_sdk_path%': '<(windows_sdk_default_path)',
1586 }, {
1587 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.1',
1588 }],
1589 ['OS=="win" and "<!pymod_do_main(dir_exists <(directx_sdk_default_path))"= ="True"', { 1591 ['OS=="win" and "<!pymod_do_main(dir_exists <(directx_sdk_default_path))"= ="True"', {
1590 'directx_sdk_path%': '<(directx_sdk_default_path)', 1592 'directx_sdk_path%': '<(directx_sdk_default_path)',
1591 }, { 1593 }, {
1592 'directx_sdk_path%': '$(DXSDK_DIR)', 1594 'directx_sdk_path%': '$(DXSDK_DIR)',
1593 }], 1595 }],
1594 ['OS=="win"', { 1596 ['OS=="win"', {
1595 'windows_driver_kit_path%': '$(WDK_DIR)', 1597 'windows_driver_kit_path%': '$(WDK_DIR)',
1596 }], 1598 }],
1597 ['os_posix==1 and OS!="mac" and OS!="ios"', { 1599 ['os_posix==1 and OS!="mac" and OS!="ios"', {
1598 'conditions': [ 1600 'conditions': [
1599 ['target_arch=="mipsel" or target_arch=="mips64el"', { 1601 ['target_arch=="mipsel" or target_arch=="mips64el"', {
1600 'werror%': '', 1602 'werror%': '',
1601 'disable_nacl%': 1, 1603 'disable_nacl%': 1,
1602 'nacl_untrusted_build%': 0, 1604 'nacl_untrusted_build%': 0,
1603 'use_allocator%': 'none', 1605 'use_allocator%': 'none',
1604 }], 1606 }],
1605 ['OS=="linux" and target_arch=="mipsel"', {
1606 'sysroot%': '<(sysroot)',
1607 'CXX%': '<(CXX)',
1608 }],
1609 # Use a 64-bit linker to avoid running out of address space. The 1607 # Use a 64-bit linker to avoid running out of address space. The
1610 # buildbots should have a 64-bit kernel and a 64-bit libc installed. 1608 # buildbots should have a 64-bit kernel and a 64-bit libc installed.
1611 ['host_arch=="ia32" and target_arch=="ia32"', { 1609 ['host_arch=="ia32" and target_arch=="ia32"', {
1612 # TODO(thestig) This is a horrible way to force the desired 1610 # TODO(thestig) This is a horrible way to force the desired
1613 # configuration. Our gyp variable scoping is likely wrong and 1611 # configuration. Our gyp variable scoping is likely wrong and
1614 # needs to be cleaned up. The GN configuration should be changed 1612 # needs to be cleaned up. The GN configuration should be changed
1615 # to match. 1613 # to match.
1616 'binutils_version%': 224, 1614 'binutils_version%': 224,
1617 'linux_use_bundled_binutils%': '1', 1615 'linux_use_bundled_binutils%': '1',
1618 'linux_use_bundled_gold%': '1', 1616 'linux_use_bundled_gold%': '1',
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1689 }, 1687 },
1690 # Copy conditionally-set variables out one scope. 1688 # Copy conditionally-set variables out one scope.
1691 'android_ndk_root%': '<(android_ndk_root)', 1689 'android_ndk_root%': '<(android_ndk_root)',
1692 'android_ndk_absolute_root%': '<(android_ndk_absolute_root)', 1690 'android_ndk_absolute_root%': '<(android_ndk_absolute_root)',
1693 'android_sdk_root%': '<(android_sdk_root)', 1691 'android_sdk_root%': '<(android_sdk_root)',
1694 'android_sdk_version%': '<(android_sdk_version)', 1692 'android_sdk_version%': '<(android_sdk_version)',
1695 'android_libcpp_root': '<(android_ndk_root)/sources/cxx-stl/llvm-libc+ +', 1693 'android_libcpp_root': '<(android_ndk_root)/sources/cxx-stl/llvm-libc+ +',
1696 'host_os%': '<(host_os)', 1694 'host_os%': '<(host_os)',
1697 1695
1698 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v ersion)', 1696 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v ersion)',
1699 # Android SDK build tools (e.g. dx, aapt, aidl) 1697 # Android SDK build tools (e.g. dx, aidl)
1700 'android_sdk_tools%': '<(android_sdk_root)/build-tools/<(android_sdk_b uild_tools_version)', 1698 'android_sdk_tools%': '<(android_sdk_root)/build-tools/<(android_sdk_b uild_tools_version)',
1701 1699
1702 # Android API level 14 is ICS (Android 4.0) which is the minimum 1700 # Android API level 16 is JB (Android 4.1) which is the minimum
1703 # platform requirement for Chrome on Android, we use it for native 1701 # platform requirement for Chrome on Android, we use it for native
1704 # code compilation. 1702 # code compilation.
1705 'conditions': [ 1703 'conditions': [
1706 ['target_arch == "ia32"', { 1704 ['target_arch == "ia32"', {
1707 'android_app_abi%': 'x86', 1705 'android_app_abi%': 'x86',
1708 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-x86/gdbserver/gdbserver', 1706 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-x86/gdbserver/gdbserver',
1709 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-x86', 1707 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-16/ arch-x86',
1710 'android_ndk_lib_dir%': 'usr/lib', 1708 'android_ndk_lib_dir%': 'usr/lib',
1711 'android_toolchain%': '<(android_ndk_absolute_root)/toolchains/x86 -4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', 1709 'android_toolchain%': '<(android_ndk_absolute_root)/toolchains/x86 -4.9/prebuilt/<(host_os)-<(android_host_arch)/bin',
1712 }], 1710 }],
1713 ['target_arch == "x64"', { 1711 ['target_arch == "x64"', {
1714 'android_app_abi%': 'x86_64', 1712 'android_app_abi%': 'x86_64',
1715 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-x86_64/gdbserver/gdbserver', 1713 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-x86_64/gdbserver/gdbserver',
1716 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-21/ arch-x86_64', 1714 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-21/ arch-x86_64',
1717 'android_ndk_lib_dir%': 'usr/lib64', 1715 'android_ndk_lib_dir%': 'usr/lib64',
1718 'android_toolchain%': '<(android_ndk_absolute_root)/toolchains/x86 _64-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', 1716 'android_toolchain%': '<(android_ndk_absolute_root)/toolchains/x86 _64-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin',
1719 }], 1717 }],
1720 ['target_arch=="arm"', { 1718 ['target_arch=="arm"', {
1721 'conditions': [ 1719 'conditions': [
1722 ['arm_version<7', { 1720 ['arm_version<7', {
1723 'android_app_abi%': 'armeabi', 1721 'android_app_abi%': 'armeabi',
1724 }, { 1722 }, {
1725 'android_app_abi%': 'armeabi-v7a', 1723 'android_app_abi%': 'armeabi-v7a',
1726 }], 1724 }],
1727 ], 1725 ],
1728 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-arm/gdbserver/gdbserver', 1726 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-arm/gdbserver/gdbserver',
1729 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-arm', 1727 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-16/ arch-arm',
1730 'android_ndk_lib_dir%': 'usr/lib', 1728 'android_ndk_lib_dir%': 'usr/lib',
1731 'android_toolchain%': '<(android_ndk_absolute_root)/toolchains/arm -linux-androideabi-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', 1729 'android_toolchain%': '<(android_ndk_absolute_root)/toolchains/arm -linux-androideabi-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin',
1732 }], 1730 }],
1733 ['target_arch == "arm64"', { 1731 ['target_arch == "arm64"', {
1734 'android_app_abi%': 'arm64-v8a', 1732 'android_app_abi%': 'arm64-v8a',
1735 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-arm64/gdbserver/gdbserver', 1733 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-arm64/gdbserver/gdbserver',
1736 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-21/ arch-arm64', 1734 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-21/ arch-arm64',
1737 'android_ndk_lib_dir%': 'usr/lib', 1735 'android_ndk_lib_dir%': 'usr/lib',
1738 'android_toolchain%': '<(android_ndk_absolute_root)/toolchains/aar ch64-linux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', 1736 'android_toolchain%': '<(android_ndk_absolute_root)/toolchains/aar ch64-linux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin',
1739 }], 1737 }],
1740 ['target_arch == "mipsel"', { 1738 ['target_arch == "mipsel"', {
1741 'android_app_abi%': 'mips', 1739 'android_app_abi%': 'mips',
1742 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-mips/gdbserver/gdbserver', 1740 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-mips/gdbserver/gdbserver',
1743 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-mips', 1741 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-16/ arch-mips',
1744 'android_ndk_lib_dir%': 'usr/lib', 1742 'android_ndk_lib_dir%': 'usr/lib',
1745 'android_toolchain%': '<(android_ndk_absolute_root)/toolchains/mip sel-linux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', 1743 'android_toolchain%': '<(android_ndk_absolute_root)/toolchains/mip sel-linux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin',
1746 }], 1744 }],
1747 ['target_arch == "mips64el"', { 1745 ['target_arch == "mips64el"', {
1748 'android_app_abi%': 'mips64', 1746 'android_app_abi%': 'mips64',
1749 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-mips64/gdbserver/gdbserver', 1747 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-mips64/gdbserver/gdbserver',
1750 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-21/ arch-mips64', 1748 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-21/ arch-mips64',
1751 'android_ndk_lib_dir%': 'usr/lib64', 1749 'android_ndk_lib_dir%': 'usr/lib64',
1752 'android_toolchain%': '<(android_ndk_absolute_root)/toolchains/mip s64el-linux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', 1750 'android_toolchain%': '<(android_ndk_absolute_root)/toolchains/mip s64el-linux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin',
1753 }], 1751 }],
1754 ], 1752 ],
1755 }, 1753 },
1756 # Copy conditionally-set variables out one scope. 1754 # Copy conditionally-set variables out one scope.
1757 'android_app_abi%': '<(android_app_abi)', 1755 'android_app_abi%': '<(android_app_abi)',
1758 'android_gdbserver%': '<(android_gdbserver)', 1756 'android_gdbserver%': '<(android_gdbserver)',
1759 'android_ndk_root%': '<(android_ndk_root)', 1757 'android_ndk_root%': '<(android_ndk_root)',
1760 'android_ndk_sysroot%': '<(android_ndk_sysroot)', 1758 'android_ndk_sysroot%': '<(android_ndk_sysroot)',
1761 'android_sdk_root%': '<(android_sdk_root)', 1759 'android_sdk_root%': '<(android_sdk_root)',
1762 'android_sdk_version%': '<(android_sdk_version)', 1760 'android_sdk_version%': '<(android_sdk_version)',
1763 'android_toolchain%': '<(android_toolchain)', 1761 'android_toolchain%': '<(android_toolchain)',
1764 1762
1765 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', 1763 'android_ndk_include': '<(android_ndk_sysroot)/usr/include',
1766 'android_ndk_lib': '<(android_ndk_sysroot)/<(android_ndk_lib_dir)', 1764 'android_ndk_lib': '<(android_ndk_sysroot)/<(android_ndk_lib_dir)',
1767 'android_sdk_tools%': '<(android_sdk_tools)', 1765 'android_sdk_tools%': '<(android_sdk_tools)',
1766 'android_aapt_path%': '<(android_sdk_tools)/aapt',
1768 'android_sdk%': '<(android_sdk)', 1767 'android_sdk%': '<(android_sdk)',
1769 'android_sdk_jar%': '<(android_sdk)/android.jar', 1768 'android_sdk_jar%': '<(android_sdk)/android.jar',
1770 1769
1771 'android_libcpp_root': '<(android_libcpp_root)', 1770 'android_libcpp_root': '<(android_libcpp_root)',
1772 'android_libcpp_include': '<(android_libcpp_root)/libcxx/include', 1771 'android_libcpp_include': '<(android_libcpp_root)/libcxx/include',
1773 'android_libcpp_libs_dir': '<(android_libcpp_root)/libs/<(android_app_ab i)', 1772 'android_libcpp_libs_dir': '<(android_libcpp_root)/libs/<(android_app_ab i)',
1774 'host_os%': '<(host_os)', 1773 'host_os%': '<(host_os)',
1775 1774
1776 # Location of the "objcopy" binary, used by both gyp and scripts. 1775 # Location of the "objcopy" binary, used by both gyp and scripts.
1777 'android_objcopy%' : '<!(/bin/echo -n <(android_toolchain)/*-objcopy)', 1776 'android_objcopy%' : '<!(/bin/echo -n <(android_toolchain)/*-objcopy)',
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1971 # Need to include allocator target, but exclude tcmalloc files. 1970 # Need to include allocator target, but exclude tcmalloc files.
1972 'use_allocator%': 'winheap', 1971 'use_allocator%': 'winheap',
1973 }], 1972 }],
1974 1973
1975 ['os_posix==1 and chromeos==0 and OS!="android" and OS!="ios" and embedded ==0', { 1974 ['os_posix==1 and chromeos==0 and OS!="android" and OS!="ios" and embedded ==0', {
1976 'use_cups%': 1, 1975 'use_cups%': 1,
1977 }, { 1976 }, {
1978 'use_cups%': 0, 1977 'use_cups%': 0,
1979 }], 1978 }],
1980 1979
1981 ['enable_plugins==1 and (OS=="linux" or OS=="mac" or OS=="win")', { 1980 ['enable_plugins==1 and (OS=="linux" or OS=="mac" or OS=="win") and chrome cast==0', {
1982 'enable_pepper_cdms%': 1, 1981 'enable_pepper_cdms%': 1,
1983 }, { 1982 }, {
1984 'enable_pepper_cdms%': 0, 1983 'enable_pepper_cdms%': 0,
1985 }], 1984 }],
1986 1985
1987 ['OS=="android" or chromecast==1', { 1986 ['OS=="android" or chromecast==1', {
1988 'enable_browser_cdms%': 1, 1987 'enable_browser_cdms%': 1,
1989 }, { 1988 }, {
1990 'enable_browser_cdms%': 0, 1989 'enable_browser_cdms%': 0,
1991 }], 1990 }],
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
2171 }, { # OS != "mac" or OS != "ios" 2170 }, { # OS != "mac" or OS != "ios"
2172 'clang_lib_path%': '<!(cd <(DEPTH) && pwd -P)/third_party/ll vm-build/Release+Asserts/lib/libFindBadConstructs.so', 2171 'clang_lib_path%': '<!(cd <(DEPTH) && pwd -P)/third_party/ll vm-build/Release+Asserts/lib/libFindBadConstructs.so',
2173 }], 2172 }],
2174 ], 2173 ],
2175 }, 2174 },
2176 'clang_dynlib_flags%': '-Xclang -load -Xclang <(clang_lib_path) ', 2175 'clang_dynlib_flags%': '-Xclang -load -Xclang <(clang_lib_path) ',
2177 }, { # OS == "win" 2176 }, { # OS == "win"
2178 # On Windows, the plugin is built directly into clang, so there's 2177 # On Windows, the plugin is built directly into clang, so there's
2179 # no need to load it dynamically. 2178 # no need to load it dynamically.
2180 'clang_dynlib_flags%': '', 2179 'clang_dynlib_flags%': '',
2181 }] 2180 }],
2181 # https://crbug.com/441916
2182 ['OS=="android" or OS=="linux" or OS=="mac"', {
2183 'clang_plugin_args%': '-Xclang -plugin-arg-find-bad-constructs -Xc lang check-templates ',
2184 }, { # OS != "linux"
2185 'clang_plugin_args%': ''
2186 }],
2182 ], 2187 ],
2183 }, 2188 },
2184 # If you change these, also change build/config/clang/BUILD.gn. 2189 # If you change these, also change build/config/clang/BUILD.gn.
2185 'clang_chrome_plugins_flags%': 2190 'clang_chrome_plugins_flags%':
2186 '<(clang_dynlib_flags)' 2191 '<(clang_dynlib_flags)'
2187 '-Xclang -add-plugin -Xclang find-bad-constructs ', 2192 '-Xclang -add-plugin -Xclang find-bad-constructs <(clang_plugin_args)' ,
2188 }], 2193 }],
2189 ['asan==1 or msan==1 or lsan==1 or tsan==1', { 2194 ['asan==1 or msan==1 or lsan==1 or tsan==1', {
2190 'clang%': 1, 2195 'clang%': 1,
2191 'use_allocator%': 'none', 2196 'use_allocator%': 'none',
2192 'use_sanitizer_options%': 1, 2197 'use_sanitizer_options%': 1,
2193 # Disable ICF in the linker to avoid debug info loss. 2198 }],
2194 'gold_icf_level%': 'none', 2199
2200 # Allowed level of identical code folding in the gold linker.
2201 ['OS=="linux" and target_arch=="x64"', {
2202 # --icf=safe disables much more folding on x86_64 than elsewhere, see
2203 # http://crbug.com/492177. Turning it on saves over 12 MB of binary
2204 # size, but it seems to regress cold startup time by over a second
2205 # (see http://crbug.com/492809).
2206 # TODO(thakis): Check if disabling ICF would inmprove android cold start
2207 # times by several seconds too.
2208 'gold_icf_level%': 'safe',
2209 }, {
2210 'gold_icf_level%': 'all',
2211 }],
2212
2213 ['OS=="linux" and asan==0 and msan==0 and lsan==0 and tsan==0', {
2214 # PNaCl toolchain Non-SFI build only supports linux OS build.
2215 # Also, it does not support sanitizers.
2216 'enable_nacl_nonsfi_test%': 1,
2195 }], 2217 }],
2196 ['asan==1 and OS=="linux" and chromeos==0', { 2218 ['asan==1 and OS=="linux" and chromeos==0', {
2197 'use_custom_libcxx%': 1, 2219 'use_custom_libcxx%': 1,
2198 }], 2220 }],
2199 ['ubsan==1', { 2221 ['ubsan==1', {
2200 'clang%': 1, 2222 'clang%': 1,
2201 }], 2223 }],
2202 ['ubsan_vptr==1', { 2224 ['ubsan_vptr==1', {
2203 'clang%': 1, 2225 'clang%': 1,
2204 }], 2226 }],
(...skipping 24 matching lines...) Expand all
2229 ['host_arch=="ia32"', { 2251 ['host_arch=="ia32"', {
2230 # 32-bit Clang is unsupported. It may not build. Put your 32-bit 2252 # 32-bit Clang is unsupported. It may not build. Put your 32-bit
2231 # Clang in this directory at your own risk if needed for some 2253 # Clang in this directory at your own risk if needed for some
2232 # purpose (e.g. to compare 32-bit and 64-bit behavior like memory 2254 # purpose (e.g. to compare 32-bit and 64-bit behavior like memory
2233 # usage). Any failure by this compiler should not close the tree. 2255 # usage). Any failure by this compiler should not close the tree.
2234 'make_clang_dir%': 'third_party/llvm-allocated-type/Linux_ia32', 2256 'make_clang_dir%': 'third_party/llvm-allocated-type/Linux_ia32',
2235 }], 2257 }],
2236 ], 2258 ],
2237 }], 2259 }],
2238 2260
2239 ['OS=="win" and target_arch=="x64"', {
2240 # TODO(thakis): Enable on x64 once all warnings are fixed.
2241 # http://crbug.com/486571
2242 'blink_gc_plugin%': 0,
2243 }],
2244
2245 # On valgrind bots, override the optimizer settings so we don't inline too 2261 # On valgrind bots, override the optimizer settings so we don't inline too
2246 # much and make the stacks harder to figure out. 2262 # much and make the stacks harder to figure out.
2247 # 2263 #
2248 # TODO(rnk): Kill off variables that no one else uses and just implement 2264 # TODO(rnk): Kill off variables that no one else uses and just implement
2249 # them under a build_for_tool== condition. 2265 # them under a build_for_tool== condition.
2250 ['build_for_tool=="memcheck" or build_for_tool=="tsan"', { 2266 ['build_for_tool=="memcheck" or build_for_tool=="tsan"', {
2251 # gcc flags 2267 # gcc flags
2252 'mac_debug_optimization': '1', 2268 'mac_debug_optimization': '1',
2253 'mac_release_optimization': '1', 2269 'mac_release_optimization': '1',
2254 'release_optimize': '1', 2270 'release_optimize': '1',
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
2310 }], 2326 }],
2311 ['arm_version==7', { 2327 ['arm_version==7', {
2312 'arm_arch%': 'armv7-a', 2328 'arm_arch%': 'armv7-a',
2313 'arm_tune%': 'generic-armv7-a', 2329 'arm_tune%': 'generic-armv7-a',
2314 'conditions': [ 2330 'conditions': [
2315 ['arm_neon==1', { 2331 ['arm_neon==1', {
2316 'arm_fpu%': 'neon', 2332 'arm_fpu%': 'neon',
2317 }, { 2333 }, {
2318 'arm_fpu%': 'vfpv3-d16', 2334 'arm_fpu%': 'vfpv3-d16',
2319 }], 2335 }],
2336 ['OS=="android"', {
2337 'arm_float_abi%': 'softfp',
2338 }, {
2339 'arm_float_abi%': 'hard',
2340 }],
2320 ], 2341 ],
2321 # Change the default to hard once the armhf transition is complete.
2322 'arm_float_abi%': 'softfp',
2323 'arm_thumb%': 1, 2342 'arm_thumb%': 1,
2324 }], 2343 }],
2325 2344
2326 # Set default compiler flags for MIPS floating-point support. 2345 # Set default compiler flags for MIPS floating-point support.
2327 ['target_arch=="mipsel"', { 2346 ['target_arch=="mipsel"', {
2328 'mips_float_abi%': 'hard', 2347 'mips_float_abi%': 'hard',
2329 }], 2348 }],
2330 ['target_arch=="mipsel" and mips_arch_variant=="r2"', { 2349 ['target_arch=="mipsel" and mips_arch_variant=="r2"', {
2331 'mips_fpu_mode%': 'fp32', 2350 'mips_fpu_mode%': 'fp32',
2332 }], 2351 }],
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
2381 # security@chromium.org! 2400 # security@chromium.org!
2382 ['((OS=="linux" or OS=="android") and ' 2401 ['((OS=="linux" or OS=="android") and '
2383 '(target_arch=="ia32" or target_arch=="x64" or ' 2402 '(target_arch=="ia32" or target_arch=="x64" or '
2384 'target_arch=="arm" or target_arch=="mipsel" or ' 2403 'target_arch=="arm" or target_arch=="mipsel" or '
2385 'target_arch=="arm64"))', { 2404 'target_arch=="arm64"))', {
2386 'use_seccomp_bpf%': 1, 2405 'use_seccomp_bpf%': 1,
2387 }, { 2406 }, {
2388 'use_seccomp_bpf%': 0, 2407 'use_seccomp_bpf%': 0,
2389 }], 2408 }],
2390 2409
2391 ['cfi_vptr==1 or cfi_derived_cast==1 or cfi_unrelated_cast==1', { 2410 ['cfi_vptr==1', {
2392 'use_lto%': 1, 2411 'use_lto%': 1,
2393 }], 2412 }],
2413
2414 ['branding=="Chrome" and buildtype=="Official"', {
2415 'enable_hangout_services_extension%': 1,
2416 }, {
2417 'enable_hangout_services_extension%': 0,
2418 }],
2394 ], 2419 ],
2395 2420
2396 # The path to the ANGLE library. 2421 # The path to the ANGLE library.
2397 'angle_path': '<(DEPTH)/third_party/angle', 2422 'angle_path': '<(DEPTH)/third_party/angle',
2398 2423
2399 # List of default apps to install in new profiles. The first list contains 2424 # List of default apps to install in new profiles. The first list contains
2400 # the source files as found in svn. The second list, used only for linux, 2425 # the source files as found in svn. The second list, used only for linux,
2401 # contains the destination location for each of the files. When a crx 2426 # contains the destination location for each of the files. When a crx
2402 # is added or removed from the list, the chrome/browser/resources/ 2427 # is added or removed from the list, the chrome/browser/resources/
2403 # default_apps/external_extensions.json file must also be updated. 2428 # default_apps/external_extensions.json file must also be updated.
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
2574 }, 2599 },
2575 'includes': [ 'set_clang_warning_flags.gypi', ], 2600 'includes': [ 'set_clang_warning_flags.gypi', ],
2576 'defines': [ 2601 'defines': [
2577 # Don't use deprecated V8 APIs anywhere. 2602 # Don't use deprecated V8 APIs anywhere.
2578 'V8_DEPRECATION_WARNINGS', 2603 'V8_DEPRECATION_WARNINGS',
2579 ], 2604 ],
2580 'include_dirs': [ 2605 'include_dirs': [
2581 '<(SHARED_INTERMEDIATE_DIR)', 2606 '<(SHARED_INTERMEDIATE_DIR)',
2582 ], 2607 ],
2583 'conditions': [ 2608 'conditions': [
2609 ['OS=="mac"', {
2610 # When compiling Objective C, warns if a method is used whose
2611 # availability is newer than the deployment target.
2612 'xcode_settings': { 'WARNING_CFLAGS': ['-Wpartial-availability']},
2613 }],
2584 ['(OS=="mac" or OS=="ios") and asan==1', { 2614 ['(OS=="mac" or OS=="ios") and asan==1', {
2585 'dependencies': [ 2615 'dependencies': [
2586 '<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime', 2616 '<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime',
2587 ], 2617 ],
2588 }], 2618 }],
2589 ['OS=="win" and asan==1 and component=="shared_library"', { 2619 ['OS=="win" and asan==1 and component=="shared_library"', {
2590 'dependencies': [ 2620 'dependencies': [
2591 '<(DEPTH)/build/win/asan.gyp:asan_dynamic_runtime', 2621 '<(DEPTH)/build/win/asan.gyp:asan_dynamic_runtime',
2592 ], 2622 ],
2593 }], 2623 }],
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
2709 }], 2739 }],
2710 ['configuration_policy==1', { 2740 ['configuration_policy==1', {
2711 'defines': ['ENABLE_CONFIGURATION_POLICY'], 2741 'defines': ['ENABLE_CONFIGURATION_POLICY'],
2712 }], 2742 }],
2713 ['notifications==1', { 2743 ['notifications==1', {
2714 'defines': ['ENABLE_NOTIFICATIONS'], 2744 'defines': ['ENABLE_NOTIFICATIONS'],
2715 }], 2745 }],
2716 ['enable_hidpi==1', { 2746 ['enable_hidpi==1', {
2717 'defines': ['ENABLE_HIDPI=1'], 2747 'defines': ['ENABLE_HIDPI=1'],
2718 }], 2748 }],
2749 ['enable_topchrome_md==1', {
2750 'defines': ['ENABLE_TOPCHROME_MD=1'],
2751 }],
2719 ['native_memory_pressure_signals==1', { 2752 ['native_memory_pressure_signals==1', {
2720 'defines': ['SYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE'], 2753 'defines': ['SYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE'],
2721 }], 2754 }],
2722 ['use_udev==1', { 2755 ['use_udev==1', {
2723 'defines': ['USE_UDEV'], 2756 'defines': ['USE_UDEV'],
2724 }], 2757 }],
2725 ['fastbuild!=0', { 2758 ['fastbuild!=0', {
2726 'xcode_settings': { 2759 'xcode_settings': {
2727 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO', 2760 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO',
2728 }, 2761 },
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
2968 }], 3001 }],
2969 ['disable_file_support==1', { 3002 ['disable_file_support==1', {
2970 'defines': ['DISABLE_FILE_SUPPORT=1'], 3003 'defines': ['DISABLE_FILE_SUPPORT=1'],
2971 }], 3004 }],
2972 ['disable_ftp_support==1', { 3005 ['disable_ftp_support==1', {
2973 'defines': ['DISABLE_FTP_SUPPORT=1'], 3006 'defines': ['DISABLE_FTP_SUPPORT=1'],
2974 }], 3007 }],
2975 ['enable_supervised_users==1', { 3008 ['enable_supervised_users==1', {
2976 'defines': ['ENABLE_SUPERVISED_USERS=1'], 3009 'defines': ['ENABLE_SUPERVISED_USERS=1'],
2977 }], 3010 }],
2978 ['spdy_proxy_auth_property != ""', {
2979 'defines': ['SPDY_PROXY_AUTH_PROPERTY="<(spdy_proxy_auth_property)"'],
2980 }],
2981 ['spdy_proxy_auth_value != ""', {
2982 'defines': ['SPDY_PROXY_AUTH_VALUE="<(spdy_proxy_auth_value)"'],
2983 }],
2984 ['enable_mdns==1', { 3011 ['enable_mdns==1', {
2985 'defines': ['ENABLE_MDNS=1'], 3012 'defines': ['ENABLE_MDNS=1'],
2986 }], 3013 }],
2987 ['enable_service_discovery==1', { 3014 ['enable_service_discovery==1', {
2988 'defines' : [ 'ENABLE_SERVICE_DISCOVERY=1' ], 3015 'defines' : [ 'ENABLE_SERVICE_DISCOVERY=1' ],
2989 }], 3016 }],
2990 ['enable_wifi_bootstrapping==1', { 3017 ['enable_wifi_bootstrapping==1', {
2991 'defines' : [ 'ENABLE_WIFI_BOOTSTRAPPING=1' ], 3018 'defines' : [ 'ENABLE_WIFI_BOOTSTRAPPING=1' ],
2992 }], 3019 }],
2993 ['enable_hangout_services_extension==1', { 3020 ['enable_hangout_services_extension==1', {
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
3100 ], 3127 ],
3101 }], 3128 }],
3102 [ 'OS=="win"', { 3129 [ 'OS=="win"', {
3103 'defines': [ 3130 'defines': [
3104 '_CRT_SECURE_NO_DEPRECATE', 3131 '_CRT_SECURE_NO_DEPRECATE',
3105 '_CRT_NONSTDC_NO_WARNINGS', 3132 '_CRT_NONSTDC_NO_WARNINGS',
3106 '_CRT_NONSTDC_NO_DEPRECATE', 3133 '_CRT_NONSTDC_NO_DEPRECATE',
3107 '_SCL_SECURE_NO_DEPRECATE', 3134 '_SCL_SECURE_NO_DEPRECATE',
3108 ], 3135 ],
3109 'msvs_disabled_warnings': [ 3136 'msvs_disabled_warnings': [
3110 # These are variable shadowing warnings that are new in VS2015.
3111 # We should probably work through these at some point for
3112 # non-chromium code, but for now, focus on chromium_code==1 code.
3113 4456, 4457, 4458, 4459,
3114
3115 4800, 3137 4800,
3116 ], 3138 ],
3117 'msvs_settings': { 3139 'msvs_settings': {
3118 'VCCLCompilerTool': { 3140 'VCCLCompilerTool': {
3119 'WarningLevel': '3', 3141 'WarningLevel': '3',
3120 'WarnAsError': 'true', 3142 'WarnAsError': 'true',
3121 'Detect64BitPortabilityProblems': 'false', 3143 'Detect64BitPortabilityProblems': 'false',
3122 }, 3144 },
3123 }, 3145 },
3124 'conditions': [ 3146 'conditions': [
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
3599 # enabled when not building on Chrome OS. 3621 # enabled when not building on Chrome OS.
3600 # TODO(phajdan.jr): Use -fstack-protector-strong when our gcc 3622 # TODO(phajdan.jr): Use -fstack-protector-strong when our gcc
3601 # supports it. 3623 # supports it.
3602 'target_defaults': { 3624 'target_defaults': {
3603 'cflags': [ 3625 'cflags': [
3604 '-fstack-protector', 3626 '-fstack-protector',
3605 '--param=ssp-buffer-size=4', 3627 '--param=ssp-buffer-size=4',
3606 ], 3628 ],
3607 }, 3629 },
3608 }], 3630 }],
3631 ['os_posix==1 and OS=="linux"', {
3632 'defines': [
3633 '_LARGEFILE_SOURCE',
3634 '_LARGEFILE64_SOURCE',
3635 '_FILE_OFFSET_BITS=64',
3636 ],
3637 }],
3609 ['os_posix==1 and OS!="mac" and OS!="ios"', { 3638 ['os_posix==1 and OS!="mac" and OS!="ios"', {
3610 'target_defaults': { 3639 'target_defaults': {
3611 # Enable -Werror by default, but put it in a variable so it can 3640 # Enable -Werror by default, but put it in a variable so it can
3612 # be disabled in ~/.gyp/include.gypi on the valgrind builders. 3641 # be disabled in ~/.gyp/include.gypi on the valgrind builders.
3613 'variables': { 3642 'variables': {
3614 'werror%': '-Werror', 3643 'werror%': '-Werror',
3615 'libraries_for_target%': '', 3644 'libraries_for_target%': '',
3616 }, 3645 },
3617 'defines': [ 3646 'defines': [
3618 '_FILE_OFFSET_BITS=64', 3647 '_FILE_OFFSET_BITS=64',
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
3686 ], 3715 ],
3687 }], 3716 }],
3688 ['OS=="android" and android_full_debug==0 and target_arch!="arm64" ', { 3717 ['OS=="android" and android_full_debug==0 and target_arch!="arm64" ', {
3689 # We don't omit frame pointers on arm64 since they are required 3718 # We don't omit frame pointers on arm64 since they are required
3690 # to correctly unwind stackframes which contain system library 3719 # to correctly unwind stackframes which contain system library
3691 # function frames (crbug.com/391706). 3720 # function frames (crbug.com/391706).
3692 'cflags': [ 3721 'cflags': [
3693 '-fomit-frame-pointer', 3722 '-fomit-frame-pointer',
3694 ], 3723 ],
3695 }], 3724 }],
3696 ['OS!="android"', {
3697 'defines': [
3698 '_LARGEFILE_SOURCE',
3699 '_LARGEFILE64_SOURCE',
3700 ],
3701 }],
3702 ['OS=="linux" and target_arch=="ia32"', { 3725 ['OS=="linux" and target_arch=="ia32"', {
3703 'ldflags': [ 3726 'ldflags': [
3704 '-Wl,--no-as-needed', 3727 '-Wl,--no-as-needed',
3705 ], 3728 ],
3706 }], 3729 }],
3707 ['debug_unwind_tables==1', { 3730 ['debug_unwind_tables==1', {
3708 'cflags': ['-funwind-tables'], 3731 'cflags': ['-funwind-tables'],
3709 }, { 3732 }, {
3710 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'], 3733 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'],
3711 'defines': ['NO_UNWIND_TABLES'], 3734 'defines': ['NO_UNWIND_TABLES'],
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
3789 ], 3812 ],
3790 }], 3813 }],
3791 ], 3814 ],
3792 }], 3815 }],
3793 ['release_unwind_tables==1', { 3816 ['release_unwind_tables==1', {
3794 'cflags': ['-funwind-tables'], 3817 'cflags': ['-funwind-tables'],
3795 }, { 3818 }, {
3796 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'], 3819 'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-table s'],
3797 'defines': ['NO_UNWIND_TABLES'], 3820 'defines': ['NO_UNWIND_TABLES'],
3798 }], 3821 }],
3822 ['clang==1', {
3823 # Non-unique section names appears to make linker dead stripping
3824 # less effective. See http://crbug.com/483026#c20
3825 # TODO(hans): Remove this if resolved upstream.
3826 'cflags': [
3827 '-funique-section-names',
3828 ],
3829 }],
3799 ], 3830 ],
3800 }, 3831 },
3801 }, 3832 },
3802 'conditions': [ 3833 'conditions': [
3803 ['target_arch=="ia32"', { 3834 ['target_arch=="ia32"', {
3804 'target_conditions': [ 3835 'target_conditions': [
3805 ['_toolset=="target"', { 3836 ['_toolset=="target"', {
3806 'asflags': [ 3837 'asflags': [
3807 # Needed so that libs with .s files (e.g. libicudata.a) 3838 # Needed so that libs with .s files (e.g. libicudata.a)
3808 # are compatible with the general 32-bit-ness. 3839 # are compatible with the general 32-bit-ness.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
3847 'ldflags': [ 3878 'ldflags': [
3848 '-m32', 3879 '-m32',
3849 ], 3880 ],
3850 'conditions': [ 3881 'conditions': [
3851 # Use gold linker for Android ia32 target. 3882 # Use gold linker for Android ia32 target.
3852 ['OS=="android"', { 3883 ['OS=="android"', {
3853 'ldflags': [ 3884 'ldflags': [
3854 '-fuse-ld=gold', 3885 '-fuse-ld=gold',
3855 ], 3886 ],
3856 }], 3887 }],
3857 # Install packages have started cropping up with
3858 # different headers between the 32-bit and 64-bit
3859 # versions, so we have to shadow those differences off
3860 # and make sure a 32-bit-on-64-bit build picks up the
3861 # right files.
3862 # For android build, use NDK headers instead of host headers
3863 ['host_arch!="ia32" and OS!="android"', {
3864 'include_dirs+': [
3865 '/usr/include32',
3866 ],
3867 }],
3868 ], 3888 ],
3869 }], 3889 }],
3870 ], 3890 ],
3871 }], 3891 }],
3872 ['target_arch=="x64"', { 3892 ['target_arch=="x64"', {
3873 'target_conditions': [ 3893 'target_conditions': [
3874 ['_toolset=="target"', { 3894 ['_toolset=="target"', {
3875 'conditions': [ 3895 'conditions': [
3876 # Use gold linker for Android x64 target. 3896 # Use gold linker for Android x64 target.
3877 ['OS=="android"', { 3897 ['OS=="android"', {
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
4126 ['mips_arch_variant=="r2"', { 4146 ['mips_arch_variant=="r2"', {
4127 'conditions': [ 4147 'conditions': [
4128 ['mips_float_abi=="hard" and mips_fpu_mode!=""', { 4148 ['mips_float_abi=="hard" and mips_fpu_mode!=""', {
4129 'cflags': ['-m<(mips_fpu_mode)'], 4149 'cflags': ['-m<(mips_fpu_mode)'],
4130 }], 4150 }],
4131 ['clang==1', { 4151 ['clang==1', {
4132 'conditions': [ 4152 'conditions': [
4133 ['OS=="android"', { 4153 ['OS=="android"', {
4134 'cflags': [ '-target mipsel-linux-android', '-march= mipsel', '-mcpu=mips32r2'], 4154 'cflags': [ '-target mipsel-linux-android', '-march= mipsel', '-mcpu=mips32r2'],
4135 'ldflags': [ '-target mipsel-linux-android', ], 4155 'ldflags': [ '-target mipsel-linux-android', ],
4156 }, {
4157 'cflags': [ '-target mipsel-linux-gnu', '-march=mips el', '-mcpu=mips32r2'],
4158 'ldflags': [ '-target mipsel-linux-gnu', ],
4136 }], 4159 }],
4137 ], 4160 ],
4138 }, { # clang==0 4161 }, { # clang==0
4139 'cflags': ['-mips32r2', '-Wa,-mips32r2', ], 4162 'cflags': ['-mips32r2', '-Wa,-mips32r2', ],
4140 }], 4163 }],
4141 ], 4164 ],
4142 }], 4165 }],
4143 ['mips_arch_variant=="r1"', { 4166 ['mips_arch_variant=="r1"', {
4144 'conditions': [ 4167 'conditions': [
4145 ['clang==1', { 4168 ['clang==1', {
4146 'conditions': [ 4169 'conditions': [
4147 ['OS=="android"', { 4170 ['OS=="android"', {
4148 'cflags': [ '-target mipsel-linux-android', '-march= mipsel', '-mcpu=mips32'], 4171 'cflags': [ '-target mipsel-linux-android', '-march= mipsel', '-mcpu=mips32'],
4149 'ldflags': [ '-target mipsel-linux-android', ], 4172 'ldflags': [ '-target mipsel-linux-android', ],
4173 }, {
4174 'cflags': [ '-target mipsel-linux-gnu', '-march=mips el', '-mcpu=mips32'],
4175 'ldflags': [ '-target mipsel-linux-gnu', ],
4150 }], 4176 }],
4151 ], 4177 ],
4152 }, { # clang==0 4178 }, { # clang==0
4153 'cflags': ['-mips32', '-Wa,-mips32', ], 4179 'cflags': ['-mips32', '-Wa,-mips32', ],
4154 }], 4180 }],
4155 ], 4181 ],
4156 }], 4182 }],
4157 ['clang==1', { 4183 ['clang==1', {
4158 'cflags!': [ 4184 'cflags!': [
4159 # Clang does not support the following options. 4185 # Clang does not support the following options.
4160 '-finline-limit=64', 4186 '-finline-limit=64',
4161 ], 4187 ],
4162 'cflags': [ 4188 'cflags': [
4163 # TODO(gordanac) Enable integrated-as. 4189 # TODO(gordanac) Enable integrated-as.
4164 '-no-integrated-as', 4190 '-no-integrated-as',
4191 ],
4192 }],
4193 ['clang==1 and OS=="android"', {
4194 'cflags': [
4165 '-B<(android_toolchain)', # Else /usr/bin/as gets picked up. 4195 '-B<(android_toolchain)', # Else /usr/bin/as gets picked up.
4166 ], 4196 ],
4167 'ldflags': [ 4197 'ldflags': [
4168 # Let clang find the ld in the NDK. 4198 # Let clang find the ld in the NDK.
4169 '--gcc-toolchain=<(android_toolchain)/..', 4199 '--gcc-toolchain=<(android_toolchain)/..',
4170 ], 4200 ],
4171 }], 4201 }],
4172 ['mips_dsp_rev==1', { 4202 ['mips_dsp_rev==1', {
4173 'cflags': ['-mdsp'], 4203 'cflags': ['-mdsp'],
4174 }], 4204 }],
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
4327 'cflags': [ 4357 'cflags': [
4328 '-mllvm -asan-globals=0', # http://crbug.com/352073 4358 '-mllvm -asan-globals=0', # http://crbug.com/352073
4329 ], 4359 ],
4330 }], 4360 }],
4331 ], 4361 ],
4332 }], 4362 }],
4333 ['ubsan==1', { 4363 ['ubsan==1', {
4334 'target_conditions': [ 4364 'target_conditions': [
4335 ['_toolset=="target"', { 4365 ['_toolset=="target"', {
4336 'cflags': [ 4366 'cflags': [
4337 '-fsanitize=undefined', 4367 # FIXME: work on enabling more flags and getting rid of false
4368 # positives. http://crbug.com/174801.
4369 '-fsanitize=bounds',
4370 '-fsanitize=float-divide-by-zero',
4371 '-fsanitize=integer-divide-by-zero',
4372 '-fsanitize=null',
4373 '-fsanitize=object-size',
4374 '-fsanitize=return',
4375 '-fsanitize=returns-nonnull-attribute',
4376 '-fsanitize=shift-exponent',
4377 '-fsanitize=signed-integer-overflow',
4378 '-fsanitize=unreachable',
4379 '-fsanitize=vla-bound',
4338 '-fsanitize-blacklist=<(ubsan_blacklist)', 4380 '-fsanitize-blacklist=<(ubsan_blacklist)',
4339 # Employ the experimental PBQP register allocator to avoid 4381 # Employ the experimental PBQP register allocator to avoid
4340 # slow compilation on files with too many basic blocks. 4382 # slow compilation on files with too many basic blocks.
4341 # See http://crbug.com/426271. 4383 # See http://crbug.com/426271.
4342 '-mllvm -regalloc=pbqp', 4384 '-mllvm -regalloc=pbqp',
4343 # Speculatively use coalescing to slightly improve the code 4385 # Speculatively use coalescing to slightly improve the code
4344 # generated by PBQP regallocator. May increase compile time. 4386 # generated by PBQP regallocator. May increase compile time.
4345 '-mllvm -pbqp-coalescing', 4387 '-mllvm -pbqp-coalescing',
4346 ], 4388 ],
4347 'cflags_cc!': [ 4389 'cflags_cc!': [
4348 '-fno-rtti', 4390 '-fno-rtti',
4349 ], 4391 ],
4350 'cflags!': [ 4392 'cflags!': [
4351 '-fno-rtti', 4393 '-fno-rtti',
4352 ], 4394 ],
4353 'ldflags': [ 4395 'ldflags': [
4354 '-fsanitize=undefined', 4396 '-fsanitize=undefined',
4355 ], 4397 ],
4356 'defines': [ 4398 'defines': [
4357 'UNDEFINED_SANITIZER', 4399 'UNDEFINED_SANITIZER',
4358 ], 4400 ],
4359 }], 4401 }],
4360 ], 4402 ],
4361 }], 4403 }],
4362 ['ubsan_vptr==1', { 4404 ['ubsan_vptr==1', {
4363 'target_conditions': [ 4405 'target_conditions': [
4364 ['_toolset=="target"', { 4406 ['_toolset=="target"', {
4365 'cflags': [ 4407 'cflags': [
4366 '-fsanitize=vptr', 4408 '-fsanitize=vptr',
4367 '-fsanitize-blacklist=<(ubsan_blacklist)', 4409 '-fsanitize-blacklist=<(ubsan_vptr_blacklist)',
4368 ], 4410 ],
4369 'cflags_cc!': [ 4411 'cflags_cc!': [
4370 '-fno-rtti', 4412 '-fno-rtti',
4371 ], 4413 ],
4372 'cflags!': [ 4414 'cflags!': [
4373 '-fno-rtti', 4415 '-fno-rtti',
4374 ], 4416 ],
4375 'ldflags': [ 4417 'ldflags': [
4376 '-fsanitize=vptr', 4418 '-fsanitize=vptr',
4377 ], 4419 ],
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
4544 # TODO(thestig): Enable this for disabled cases. 4586 # TODO(thestig): Enable this for disabled cases.
4545 [ 'buildtype!="Official" and chromeos==0 and release_valgrind_ build==0 and asan==0 and lsan==0 and tsan==0 and msan==0 and ubsan==0 and ubsan_ vptr==0', { 4587 [ 'buildtype!="Official" and chromeos==0 and release_valgrind_ build==0 and asan==0 and lsan==0 and tsan==0 and msan==0 and ubsan==0 and ubsan_ vptr==0', {
4546 'ldflags': [ 4588 'ldflags': [
4547 '-Wl,--detect-odr-violations', 4589 '-Wl,--detect-odr-violations',
4548 ], 4590 ],
4549 }], 4591 }],
4550 ], 4592 ],
4551 }], 4593 }],
4552 ], 4594 ],
4553 'conditions': [ 4595 'conditions': [
4554 ['release_valgrind_build==0 and order_profiling==0', { 4596 ['release_valgrind_build==0 and order_profiling==0 and asan==0 and msan==0 and lsan==0 and tsan==0', {
4555 'target_conditions': [ 4597 'target_conditions': [
4556 ['_toolset=="target"', { 4598 ['_toolset=="target"', {
4557 'ldflags': [ 4599 'ldflags': [
4558 '-Wl,--icf=<(gold_icf_level)', 4600 '-Wl,--icf=<(gold_icf_level)',
4559 ], 4601 ],
4560 }], 4602 }],
4561 ], 4603 ],
4562 }], 4604 }],
4563 ], 4605 ],
4564 }], 4606 }],
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
5432 'msvs_settings': { 5474 'msvs_settings': {
5433 'VCCLCompilerTool': { 5475 'VCCLCompilerTool': {
5434 # 1, optimizeMinSpace, Minimize Size (/O1) 5476 # 1, optimizeMinSpace, Minimize Size (/O1)
5435 'Optimization': '1', 5477 'Optimization': '1',
5436 # 2, favorSize - Favor small code (/Os) 5478 # 2, favorSize - Favor small code (/Os)
5437 'FavorSizeOrSpeed': '2', 5479 'FavorSizeOrSpeed': '2',
5438 }, 5480 },
5439 }, 5481 },
5440 }, 5482 },
5441 ], 5483 ],
5484 # This config is used to avoid a problem in ffmpeg, see
5485 # http://crbug.com/264459.
5486 ['optimize=="size_no_ltcg"', {
5487 'msvs_settings': {
5488 'VCCLCompilerTool': {
5489 # 1, optimizeMinSpace, Minimize Size (/O1)
5490 'Optimization': '1',
5491 # 2, favorSize - Favor small code (/Os)
5492 'FavorSizeOrSpeed': '2',
5493 },
5494 },
5495 },
5496 ],
5442 ['optimize=="speed"', { 5497 ['optimize=="speed"', {
5443 'msvs_settings': { 5498 'msvs_settings': {
5444 'VCCLCompilerTool': { 5499 'VCCLCompilerTool': {
5445 # 2, optimizeMaxSpeed, Maximize Speed (/O2) 5500 # 2, optimizeMaxSpeed, Maximize Speed (/O2)
5446 'Optimization': '2', 5501 'Optimization': '2',
5447 # 1, favorSpeed - Favor fast code (/Ot) 5502 # 1, favorSpeed - Favor fast code (/Ot)
5448 'FavorSizeOrSpeed': '1', 5503 'FavorSizeOrSpeed': '1',
5449 }, 5504 },
5450 }, 5505 },
5451 }, 5506 },
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
5542 # TODO(maruel): These warnings are level 4. They will be slowly 5597 # TODO(maruel): These warnings are level 4. They will be slowly
5543 # removed as code is fixed. 5598 # removed as code is fixed.
5544 4100, # Unreferenced formal parameter 5599 4100, # Unreferenced formal parameter
5545 4121, # Alignment of a member was sensitive to packing 5600 4121, # Alignment of a member was sensitive to packing
5546 4244, # Conversion from 'type1' to 'type2', possible loss of data 5601 4244, # Conversion from 'type1' to 'type2', possible loss of data
5547 4481, # Nonstandard extension used: override specifier 'keyword' 5602 4481, # Nonstandard extension used: override specifier 'keyword'
5548 4505, # Unreferenced local function has been removed 5603 4505, # Unreferenced local function has been removed
5549 4510, # Default constructor could not be generated 5604 4510, # Default constructor could not be generated
5550 4512, # Assignment operator could not be generated 5605 4512, # Assignment operator could not be generated
5551 4610, # Object can never be instantiated 5606 4610, # Object can never be instantiated
5607 4838, # Narrowing conversion. Doesn't seem to be very useful.
5552 4996, # 'X': was declared deprecated (for GetVersionEx). 5608 4996, # 'X': was declared deprecated (for GetVersionEx).
5553 5609
5554 # These are variable shadowing warnings that are new in VS2015. We 5610 # These are variable shadowing warnings that are new in VS2015. We
5555 # should work through these at some point -- they may be removed from 5611 # should work through these at some point -- they may be removed from
5556 # the RTM release in the /W4 set. 5612 # the RTM release in the /W4 set.
5557 4456, 4457, 4458, 4459, 5613 4456, 4457, 4458, 4459,
5558 ], 5614 ],
5559 'msvs_settings': { 5615 'msvs_settings': {
5560 'VCCLCompilerTool': { 5616 'VCCLCompilerTool': {
5561 'AdditionalOptions': ['/MP'], 5617 'AdditionalOptions': ['/MP'],
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
5629 'VCManifestTool': { 5685 'VCManifestTool': {
5630 'AdditionalManifestFiles': [ 5686 'AdditionalManifestFiles': [
5631 '>(win_exe_compatibility_manifest)', 5687 '>(win_exe_compatibility_manifest)',
5632 ], 5688 ],
5633 }, 5689 },
5634 }], 5690 }],
5635 ], 5691 ],
5636 'conditions': [ 5692 'conditions': [
5637 # Building with Clang on Windows is a work in progress and very 5693 # Building with Clang on Windows is a work in progress and very
5638 # experimental. See crbug.com/82385. 5694 # experimental. See crbug.com/82385.
5695 # Keep this in sync with the similar blocks in build/config/compiler /BUILD.gn
5639 ['clang==1', { 5696 ['clang==1', {
5640 'VCCLCompilerTool': { 5697 'VCCLCompilerTool': {
5641 'AdditionalOptions': [ 5698 'AdditionalOptions': [
5642 '-fmsc-version=1800',
5643
5644 # Many files use intrinsics without including this header. 5699 # Many files use intrinsics without including this header.
5645 # TODO(hans): Fix those files, or move this to sub-GYPs. 5700 # TODO(hans): Fix those files, or move this to sub-GYPs.
5646 '/FIIntrin.h', 5701 '/FIIntrin.h',
5647 5702
5648 # TODO(hans): Make this list shorter eventually. 5703 # TODO(hans): Make this list shorter eventually.
5649 '-Qunused-arguments', 5704 '-Qunused-arguments',
5650 '-Wno-c++11-compat-deprecated-writable-strings', 5705 '-Wno-c++11-compat-deprecated-writable-strings',
5651 '-Wno-deprecated-declarations', 5706 '-Wno-deprecated-declarations',
5652 '-Wno-empty-body', 5707 '-Wno-empty-body',
5653 '-Wno-enum-conversion', 5708 '-Wno-enum-conversion',
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
5690 ], 5745 ],
5691 }, 5746 },
5692 }], 5747 }],
5693 ['clang==1 and clang_use_chrome_plugins==1', { 5748 ['clang==1 and clang_use_chrome_plugins==1', {
5694 'VCCLCompilerTool': { 5749 'VCCLCompilerTool': {
5695 'AdditionalOptions': [ 5750 'AdditionalOptions': [
5696 '<@(clang_chrome_plugins_flags)', 5751 '<@(clang_chrome_plugins_flags)',
5697 ], 5752 ],
5698 }, 5753 },
5699 }], 5754 }],
5755 ['clang==1 and MSVS_VERSION == "2013"', {
5756 'VCCLCompilerTool': {
5757 'AdditionalOptions': [
5758 '-fmsc-version=1800',
5759 ],
5760 },
5761 }],
5762 ['clang==1 and MSVS_VERSION == "2015"', {
5763 'VCCLCompilerTool': {
5764 'AdditionalOptions': [
5765 '-fmsc-version=1900',
5766 ],
5767 },
5768 }],
5700 ], 5769 ],
5701 }, 5770 },
5702 }, 5771 },
5703 }], 5772 }],
5704 ['disable_nacl==1', { 5773 ['disable_nacl==1', {
5705 'target_defaults': { 5774 'target_defaults': {
5706 'defines': [ 5775 'defines': [
5707 'DISABLE_NACL', 5776 'DISABLE_NACL',
5708 ], 5777 ],
5709 }, 5778 },
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
5874 ['OS=="android" and clang==0', { 5943 ['OS=="android" and clang==0', {
5875 # Hardcode the compiler names in the Makefile so that 5944 # Hardcode the compiler names in the Makefile so that
5876 # it won't depend on the environment at make time. 5945 # it won't depend on the environment at make time.
5877 'make_global_settings': [ 5946 'make_global_settings': [
5878 ['CC', '<!(/bin/echo -n <(android_toolchain)/*-gcc)'], 5947 ['CC', '<!(/bin/echo -n <(android_toolchain)/*-gcc)'],
5879 ['CXX', '<!(/bin/echo -n <(android_toolchain)/*-g++)'], 5948 ['CXX', '<!(/bin/echo -n <(android_toolchain)/*-g++)'],
5880 ['CC.host', '<(host_cc)'], 5949 ['CC.host', '<(host_cc)'],
5881 ['CXX.host', '<(host_cxx)'], 5950 ['CXX.host', '<(host_cxx)'],
5882 ], 5951 ],
5883 }], 5952 }],
5884 ['OS=="linux" and target_arch=="mipsel"', { 5953 ['OS=="linux" and target_arch=="mipsel" and clang==0', {
5885 'make_global_settings': [ 5954 'make_global_settings': [
5886 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'], 5955 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'],
5887 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'], 5956 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'],
5888 ['CC.host', '<(host_cc)'], 5957 ['CC.host', '<(host_cc)'],
5889 ['CXX.host', '<(host_cxx)'], 5958 ['CXX.host', '<(host_cxx)'],
5890 ], 5959 ],
5891 }], 5960 }],
5892 ['OS=="linux" and target_arch=="arm" and host_arch!="arm" and chromeos==0 an d clang==0', { 5961 ['OS=="linux" and target_arch=="arm" and host_arch!="arm" and chromeos==0 an d clang==0', {
5893 # Set default ARM cross compiling on linux. These can be overridden 5962 # Set default ARM cross compiling on linux. These can be overridden
5894 # using CC/CXX/etc environment variables. 5963 # using CC/CXX/etc environment variables.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
5967 ['_toolset=="target" and _type!="static_library"', { 6036 ['_toolset=="target" and _type!="static_library"', {
5968 'xcode_settings': { 6037 'xcode_settings': {
5969 'OTHER_LDFLAGS': [ 6038 'OTHER_LDFLAGS': [
5970 '-Wl,-mllvm,-O1', 6039 '-Wl,-mllvm,-O1',
5971 ], 6040 ],
5972 }, 6041 },
5973 }], 6042 }],
5974 ], 6043 ],
5975 }, 6044 },
5976 }], 6045 }],
5977 ['use_lto==1 and clang==1 and (target_arch=="ia32" or target_arch=="x64")', {
5978 'target_defaults': {
5979 'target_conditions': [
5980 # Required for third_party/zlib/crc_folding.c and various other code
5981 # that uses SSE. TODO(pcc): Remove this once we properly support
5982 # subtarget specific code generation in LLVM.
5983 ['_toolset=="target"', {
5984 'ldflags': [
5985 '-Wl,-plugin-opt,mcpu=corei7-avx',
5986 ],
5987 }],
5988 ['_toolset=="target" and _type!="static_library"', {
5989 'xcode_settings': {
5990 'OTHER_LDFLAGS': [
5991 '-Wl,-mcpu,corei7-avx',
5992 ],
5993 },
5994 }],
5995 ],
5996 },
5997 }],
5998 ['use_lto==1 and clang==1 and target_arch=="arm"', { 6046 ['use_lto==1 and clang==1 and target_arch=="arm"', {
5999 'target_defaults': { 6047 'target_defaults': {
6000 'target_conditions': [ 6048 'target_conditions': [
6001 ['_toolset=="target"', { 6049 ['_toolset=="target"', {
6002 # Without this flag, LTO produces a .text section that is larger 6050 # Without this flag, LTO produces a .text section that is larger
6003 # than the maximum call displacement, preventing the linker from 6051 # than the maximum call displacement, preventing the linker from
6004 # relocating calls (http://llvm.org/PR22999). 6052 # relocating calls (http://llvm.org/PR22999).
6005 'ldflags': [ 6053 'ldflags': [
6006 '-Wl,-plugin-opt,-function-sections', 6054 '-Wl,-plugin-opt,-function-sections',
6007 ], 6055 ],
(...skipping 21 matching lines...) Expand all
6029 ], 6077 ],
6030 }], 6078 }],
6031 ], 6079 ],
6032 }, 6080 },
6033 }], 6081 }],
6034 ['cfi_vptr==1', { 6082 ['cfi_vptr==1', {
6035 'target_defaults': { 6083 'target_defaults': {
6036 'target_conditions': [ 6084 'target_conditions': [
6037 ['_toolset=="target"', { 6085 ['_toolset=="target"', {
6038 'cflags': [ 6086 'cflags': [
6039 '-fsanitize=cfi-vptr', 6087 '-fsanitize=cfi-vcall',
6040 ],
6041 'ldflags': [
6042 '-fsanitize=cfi-vptr',
6043 ],
6044 'xcode_settings': {
6045 'OTHER_CFLAGS': [
6046 '-fsanitize=cfi-vptr',
6047 ],
6048 },
6049 }],
6050 ['_toolset=="target" and _type!="static_library"', {
6051 'xcode_settings': {
6052 'OTHER_LDFLAGS': [
6053 '-fsanitize=cfi-vptr',
6054 ],
6055 },
6056 }],
6057 ],
6058 },
6059 }],
6060 ['cfi_derived_cast==1', {
6061 'target_defaults': {
6062 'target_conditions': [
6063 ['_toolset=="target"', {
6064 'cflags': [
6065 '-fsanitize=cfi-derived-cast', 6088 '-fsanitize=cfi-derived-cast',
6066 ],
6067 'ldflags': [
6068 '-fsanitize=cfi-derived-cast',
6069 ],
6070 'xcode_settings': {
6071 'OTHER_CFLAGS': [
6072 '-fsanitize=cfi-derived-cast',
6073 ],
6074 },
6075 }],
6076 ['_toolset=="target" and _type!="static_library"', {
6077 'xcode_settings': {
6078 'OTHER_LDFLAGS': [
6079 '-fsanitize=cfi-derived-cast',
6080 ],
6081 },
6082 }],
6083 ],
6084 },
6085 }],
6086 ['cfi_unrelated_cast==1', {
6087 'target_defaults': {
6088 'target_conditions': [
6089 ['_toolset=="target"', {
6090 'cflags': [
6091 '-fsanitize=cfi-unrelated-cast', 6089 '-fsanitize=cfi-unrelated-cast',
6092 ], 6090 ],
6093 'ldflags': [ 6091 'ldflags': [
6092 '-fsanitize=cfi-vcall',
6093 '-fsanitize=cfi-derived-cast',
6094 '-fsanitize=cfi-unrelated-cast', 6094 '-fsanitize=cfi-unrelated-cast',
6095 ], 6095 ],
6096 'xcode_settings': { 6096 'xcode_settings': {
6097 'OTHER_CFLAGS': [ 6097 'OTHER_CFLAGS': [
6098 '-fsanitize=cfi-vcall',
6099 '-fsanitize=cfi-derived-cast',
6098 '-fsanitize=cfi-unrelated-cast', 6100 '-fsanitize=cfi-unrelated-cast',
6099 ], 6101 ],
6100 }, 6102 },
6101 }], 6103 }],
6102 ['_toolset=="target" and _type!="static_library"', { 6104 ['_toolset=="target" and _type!="static_library"', {
6103 'xcode_settings': { 6105 'xcode_settings': {
6104 'OTHER_LDFLAGS': [ 6106 'OTHER_LDFLAGS': [
6107 '-fsanitize=cfi-vcall',
6108 '-fsanitize=cfi-derived-cast',
6105 '-fsanitize=cfi-unrelated-cast', 6109 '-fsanitize=cfi-unrelated-cast',
6106 ], 6110 ],
6107 }, 6111 },
6108 }], 6112 }],
6109 ], 6113 ],
6110 }, 6114 },
6111 }], 6115 }],
6112 ['cfi_vptr==1 or cfi_derived_cast==1 or cfi_unrelated_cast==1', { 6116 ['cfi_vptr==1', {
6113 'target_defaults': { 6117 'target_defaults': {
6114 'target_conditions': [ 6118 'target_conditions': [
6115 ['_toolset=="target"', { 6119 ['_toolset=="target"', {
6116 'cflags': [ 6120 'cflags': [
6117 '-fsanitize-blacklist=<(cfi_blacklist)', 6121 '-fsanitize-blacklist=<(cfi_blacklist)',
6118 ], 6122 ],
6119 'xcode_settings': { 6123 'xcode_settings': {
6120 'OTHER_CFLAGS': [ 6124 'OTHER_CFLAGS': [
6121 '-fsanitize-blacklist=<(cfi_blacklist)', 6125 '-fsanitize-blacklist=<(cfi_blacklist)',
6122 ], 6126 ],
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
6188 # settings in target dicts. SYMROOT is a special case, because many other 6192 # settings in target dicts. SYMROOT is a special case, because many other
6189 # Xcode variables depend on it, including variables such as 6193 # Xcode variables depend on it, including variables such as
6190 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 6194 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
6191 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 6195 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
6192 # files to appear (when present) in the UI as actual files and not red 6196 # files to appear (when present) in the UI as actual files and not red
6193 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 6197 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
6194 # and therefore SYMROOT, needs to be set at the project level. 6198 # and therefore SYMROOT, needs to be set at the project level.
6195 'SYMROOT': '<(DEPTH)/xcodebuild', 6199 'SYMROOT': '<(DEPTH)/xcodebuild',
6196 }, 6200 },
6197 } 6201 }
OLDNEW
« no previous file with comments | « build/apk_test.gypi ('k') | build/config/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698