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

Side by Side Diff: build/common.gypi

Issue 670183003: Update from chromium 62675d9fb31fb8cedc40f68e78e8445a74f362e7 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/android/rezip/BUILD.gn ('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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 # If this is set, the clang plugins used on the buildbot will be used. 380 # If this is set, the clang plugins used on the buildbot will be used.
381 # Run tools/clang/scripts/update.sh to make sure they are compiled. 381 # Run tools/clang/scripts/update.sh to make sure they are compiled.
382 # This causes 'clang_chrome_plugins_flags' to be set. 382 # This causes 'clang_chrome_plugins_flags' to be set.
383 # Has no effect if 'clang' is not set as well. 383 # Has no effect if 'clang' is not set as well.
384 'clang_use_chrome_plugins%': 1, 384 'clang_use_chrome_plugins%': 1,
385 385
386 # Enable building with ASAN (Clang's -fsanitize=address option). 386 # Enable building with ASAN (Clang's -fsanitize=address option).
387 # -fsanitize=address only works with clang, but asan=1 implies clang=1 387 # -fsanitize=address only works with clang, but asan=1 implies clang=1
388 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre sssanitizer 388 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre sssanitizer
389 'asan%': 0, 389 'asan%': 0,
390 'asan_blacklist%': '<(PRODUCT_DIR)/../../tools/memory/asan/blacklist.txt',
390 # Enable coverage gathering instrumentation in ASan. This flag also 391 # Enable coverage gathering instrumentation in ASan. This flag also
391 # controls coverage granularity (1 for function-level coverage, 2 for 392 # controls coverage granularity (1 for function-level coverage, 2 for
392 # block-level coverage). 393 # block-level coverage).
393 'asan_coverage%': 0, 394 'asan_coverage%': 0,
395 # Enable intra-object-overflow detection in ASan (experimental).
396 'asan_field_padding%': 0,
394 397
395 # Enable Chromium overrides of the default configurations for various 398 # Enable Chromium overrides of the default configurations for various
396 # dynamic tools (like ASan). 399 # dynamic tools (like ASan).
397 'use_sanitizer_options%': 0, 400 'use_sanitizer_options%': 0,
398 401
399 # Enable building with SyzyAsan. 402 # Enable building with SyzyAsan.
400 # See https://code.google.com/p/sawbuck/wiki/SyzyASanHowTo 403 # See https://code.google.com/p/sawbuck/wiki/SyzyASanHowTo
401 'syzyasan%': 0, 404 'syzyasan%': 0,
402 405
403 # Enable building with LSan (Clang's -fsanitize=leak option). 406 # Enable building with LSan (Clang's -fsanitize=leak option).
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 'enable_load_completion_hacks%': 1, 633 'enable_load_completion_hacks%': 1,
631 634
632 # Automatically select platforms under ozone. Turn this off to 635 # Automatically select platforms under ozone. Turn this off to
633 # build only explicitly selected platforms. 636 # build only explicitly selected platforms.
634 'ozone_auto_platforms%': 1, 637 'ozone_auto_platforms%': 1,
635 638
636 # If this is set clang is used as host compiler, but not as target 639 # If this is set clang is used as host compiler, but not as target
637 # compiler. Always do this by default. 640 # compiler. Always do this by default.
638 'host_clang%': 1, 641 'host_clang%': 1,
639 642
643 # Variables to control Link-Time Optimizations (LTO).
644 # Note: the variables must *not* be enabled at the same time.
645 # In this case LTO would 'merge' the optimization flags
646 # at link-time which would lead to all code be optimized with -O2.
647 # Enable LTO on the code compiled with -Os.
648 # See crbug.com/407544
649 'use_lto%': 0,
650 # Enable LTO on code compiled with -O2.
651 'use_lto_o2%': 0,
652
640 'conditions': [ 653 'conditions': [
641 # A flag for POSIX platforms 654 # A flag for POSIX platforms
642 ['OS=="win"', { 655 ['OS=="win"', {
643 'os_posix%': 0, 656 'os_posix%': 0,
644 }, { 657 }, {
645 'os_posix%': 1, 658 'os_posix%': 1,
646 }], 659 }],
647 660
648 # A flag for BSD platforms 661 # A flag for BSD platforms
649 ['OS=="freebsd" or OS=="openbsd"', { 662 ['OS=="freebsd" or OS=="openbsd"', {
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
1103 'enable_pre_sync_backup%': '<(enable_pre_sync_backup)', 1116 'enable_pre_sync_backup%': '<(enable_pre_sync_backup)',
1104 'enable_webrtc%': '<(enable_webrtc)', 1117 'enable_webrtc%': '<(enable_webrtc)',
1105 'chromium_win_pch%': '<(chromium_win_pch)', 1118 'chromium_win_pch%': '<(chromium_win_pch)',
1106 'configuration_policy%': '<(configuration_policy)', 1119 'configuration_policy%': '<(configuration_policy)',
1107 'safe_browsing%': '<(safe_browsing)', 1120 'safe_browsing%': '<(safe_browsing)',
1108 'enable_web_speech%': '<(enable_web_speech)', 1121 'enable_web_speech%': '<(enable_web_speech)',
1109 'notifications%': '<(notifications)', 1122 'notifications%': '<(notifications)',
1110 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', 1123 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)',
1111 'mac_want_real_dsym%': '<(mac_want_real_dsym)', 1124 'mac_want_real_dsym%': '<(mac_want_real_dsym)',
1112 'asan%': '<(asan)', 1125 'asan%': '<(asan)',
1126 'asan_blacklist%': '<(asan_blacklist)',
1113 'asan_coverage%': '<(asan_coverage)', 1127 'asan_coverage%': '<(asan_coverage)',
1128 'asan_field_padding%': '<(asan_field_padding)',
1114 'use_sanitizer_options%': '<(use_sanitizer_options)', 1129 'use_sanitizer_options%': '<(use_sanitizer_options)',
1115 'syzyasan%': '<(syzyasan)', 1130 'syzyasan%': '<(syzyasan)',
1116 'syzygy_optimize%': '<(syzygy_optimize)', 1131 'syzygy_optimize%': '<(syzygy_optimize)',
1117 'lsan%': '<(lsan)', 1132 'lsan%': '<(lsan)',
1118 'msan%': '<(msan)', 1133 'msan%': '<(msan)',
1119 'msan_blacklist%': '<(msan_blacklist)', 1134 'msan_blacklist%': '<(msan_blacklist)',
1120 'msan_track_origins%': '<(msan_track_origins)', 1135 'msan_track_origins%': '<(msan_track_origins)',
1121 'tsan%': '<(tsan)', 1136 'tsan%': '<(tsan)',
1122 'tsan_blacklist%': '<(tsan_blacklist)', 1137 'tsan_blacklist%': '<(tsan_blacklist)',
1123 'ubsan%': '<(ubsan)', 1138 'ubsan%': '<(ubsan)',
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
1178 'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)', 1193 'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)',
1179 'spdy_proxy_auth_value%': '<(spdy_proxy_auth_value)', 1194 'spdy_proxy_auth_value%': '<(spdy_proxy_auth_value)',
1180 'enable_mdns%' : '<(enable_mdns)', 1195 'enable_mdns%' : '<(enable_mdns)',
1181 'enable_service_discovery%' : '<(enable_service_discovery)', 1196 'enable_service_discovery%' : '<(enable_service_discovery)',
1182 'enable_wifi_bootstrapping%': '<(enable_wifi_bootstrapping)', 1197 'enable_wifi_bootstrapping%': '<(enable_wifi_bootstrapping)',
1183 'enable_hangout_services_extension%' : '<(enable_hangout_services_extension) ', 1198 'enable_hangout_services_extension%' : '<(enable_hangout_services_extension) ',
1184 'v8_optimized_debug%': '<(v8_optimized_debug)', 1199 'v8_optimized_debug%': '<(v8_optimized_debug)',
1185 'proprietary_codecs%': '<(proprietary_codecs)', 1200 'proprietary_codecs%': '<(proprietary_codecs)',
1186 'use_goma%': '<(use_goma)', 1201 'use_goma%': '<(use_goma)',
1187 'gomadir%': '<(gomadir)', 1202 'gomadir%': '<(gomadir)',
1203 'use_lto%': '<(use_lto)',
1204 'use_lto_o2%': '<(use_lto_o2)',
1188 'video_hole%': '<(video_hole)', 1205 'video_hole%': '<(video_hole)',
1189 'enable_load_completion_hacks%': '<(enable_load_completion_hacks)', 1206 'enable_load_completion_hacks%': '<(enable_load_completion_hacks)',
1190 'support_pre_M6_history_database%': '<(support_pre_M6_history_database)', 1207 'support_pre_M6_history_database%': '<(support_pre_M6_history_database)',
1191 1208
1192 # Whether or not we are building the Athena shell. 1209 # Whether or not we are building the Athena shell.
1193 'use_athena%': '0', 1210 'use_athena%': '0',
1194 1211
1195 # Use system protobuf instead of bundled one. 1212 # Use system protobuf instead of bundled one.
1196 'use_system_protobuf%': 0, 1213 'use_system_protobuf%': 0,
1197 1214
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after
2306 # Do not disable seccomp_bpf anywhere without talking to 2323 # Do not disable seccomp_bpf anywhere without talking to
2307 # security@chromium.org! 2324 # security@chromium.org!
2308 ['((OS=="linux" or OS=="android") and ' 2325 ['((OS=="linux" or OS=="android") and '
2309 '(target_arch=="ia32" or target_arch=="x64" or ' 2326 '(target_arch=="ia32" or target_arch=="x64" or '
2310 'target_arch=="arm" or target_arch=="mipsel" or ' 2327 'target_arch=="arm" or target_arch=="mipsel" or '
2311 'target_arch=="arm64"))', { 2328 'target_arch=="arm64"))', {
2312 'use_seccomp_bpf%': 1, 2329 'use_seccomp_bpf%': 1,
2313 }, { 2330 }, {
2314 'use_seccomp_bpf%': 0, 2331 'use_seccomp_bpf%': 0,
2315 }], 2332 }],
2333 # Set component build with LTO until all tests pass.
2334 # This also reduces link time.
2335 ['use_lto==1', {
2336 'component%': "shared_library",
2337 }],
2316 ], 2338 ],
2317 2339
2318 # older history files use fts2 instead of fts3 2340 # older history files use fts2 instead of fts3
2319 'sqlite_enable_fts2%': '<(support_pre_M6_history_database)', 2341 'sqlite_enable_fts2%': '<(support_pre_M6_history_database)',
2320 2342
2321 # The path to the ANGLE library. 2343 # The path to the ANGLE library.
2322 'angle_path': '<(DEPTH)/third_party/angle', 2344 'angle_path': '<(DEPTH)/third_party/angle',
2323 2345
2324 # List of default apps to install in new profiles. The first list contains 2346 # List of default apps to install in new profiles. The first list contains
2325 # the source files as found in svn. The second list, used only for linux, 2347 # the source files as found in svn. The second list, used only for linux,
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after
3748 '-target arm-linux-gnueabihf', 3770 '-target arm-linux-gnueabihf',
3749 ], 3771 ],
3750 'ldflags': [ 3772 'ldflags': [
3751 '-target arm-linux-gnueabihf', 3773 '-target arm-linux-gnueabihf',
3752 ], 3774 ],
3753 }], 3775 }],
3754 ['arm_arch!=""', { 3776 ['arm_arch!=""', {
3755 'cflags': [ 3777 'cflags': [
3756 '-march=<(arm_arch)', 3778 '-march=<(arm_arch)',
3757 ], 3779 ],
3780 'conditions': [
3781 ['use_lto==1 or use_lto_o2==1', {
3782 'ldflags': [
3783 '-march=<(arm_arch)',
3784 ],
3785 }],
3786 ],
3758 }], 3787 }],
3759 ['clang==1 and OS!="android"', { 3788 ['clang==1 and OS!="android"', {
3760 'cflags': [ 3789 'cflags': [
3761 # We need to disable clang's builtin assembler as it can't 3790 # We need to disable clang's builtin assembler as it can't
3762 # handle several asm files, crbug.com/124610 3791 # handle several asm files, crbug.com/124610
3763 '-no-integrated-as', 3792 '-no-integrated-as',
3764 ], 3793 ],
3765 }], 3794 }],
3766 ['arm_tune!=""', { 3795 ['arm_tune!=""', {
3767 'cflags': [ 3796 'cflags': [
3768 '-mtune=<(arm_tune)', 3797 '-mtune=<(arm_tune)',
3769 ], 3798 ],
3799 'conditions': [
3800 ['use_lto==1 or use_lto_o2==1', {
3801 'ldflags': [
3802 '-mtune=<(arm_tune)',
3803 ],
3804 }],
3805 ],
3770 }], 3806 }],
3771 ['arm_fpu!=""', { 3807 ['arm_fpu!=""', {
3772 'cflags': [ 3808 'cflags': [
3773 '-mfpu=<(arm_fpu)', 3809 '-mfpu=<(arm_fpu)',
3774 ], 3810 ],
3811 'conditions': [
3812 ['use_lto==1 or use_lto_o2==1', {
3813 'ldflags': [
3814 '-mfpu=<(arm_fpu)',
3815 ],
3816 }],
3817 ],
3775 }], 3818 }],
3776 ['arm_float_abi!=""', { 3819 ['arm_float_abi!=""', {
3777 'cflags': [ 3820 'cflags': [
3778 '-mfloat-abi=<(arm_float_abi)', 3821 '-mfloat-abi=<(arm_float_abi)',
3779 ], 3822 ],
3823 'conditions': [
3824 ['use_lto==1 or use_lto_o2==1', {
3825 'ldflags': [
3826 '-mfloat-abi=<(arm_float_abi)',
3827 ],
3828 }],
3829 ],
3780 }], 3830 }],
3781 ['arm_thumb==1', { 3831 ['arm_thumb==1', {
3782 'cflags': [ 3832 'cflags': [
3783 '-mthumb', 3833 '-mthumb',
3784 ], 3834 ],
3835 'conditions': [
3836 ['use_lto==1 or use_lto_o2==1', {
3837 'ldflags': [
3838 '-mthumb',
3839 ],
3840 }],
3841 ],
3785 }], 3842 }],
3786 ['OS=="android"', { 3843 ['OS=="android"', {
3787 # Most of the following flags are derived from what Android 3844 # Most of the following flags are derived from what Android
3788 # uses by default when building for arm, reference for which 3845 # uses by default when building for arm, reference for which
3789 # can be found in the following file in the Android NDK: 3846 # can be found in the following file in the Android NDK:
3790 # toolchains/arm-linux-androideabi-4.9/setup.mk 3847 # toolchains/arm-linux-androideabi-4.9/setup.mk
3791 'cflags': [ 3848 'cflags': [
3792 # The tree-sra optimization (scalar replacement for 3849 # The tree-sra optimization (scalar replacement for
3793 # aggregates enabling subsequent optimizations) leads to 3850 # aggregates enabling subsequent optimizations) leads to
3794 # invalid code generation when using the Android NDK's 3851 # invalid code generation when using the Android NDK's
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
4053 'MEMORY_SANITIZER_INITIAL_SIZE', 4110 'MEMORY_SANITIZER_INITIAL_SIZE',
4054 ], 4111 ],
4055 }], 4112 }],
4056 ], 4113 ],
4057 }], 4114 }],
4058 ['asan==1', { 4115 ['asan==1', {
4059 'target_conditions': [ 4116 'target_conditions': [
4060 ['_toolset=="target"', { 4117 ['_toolset=="target"', {
4061 'cflags': [ 4118 'cflags': [
4062 '-fsanitize=address', 4119 '-fsanitize=address',
4120 '-fsanitize-blacklist=<(asan_blacklist)',
4063 ], 4121 ],
4064 'ldflags': [ 4122 'ldflags': [
4065 '-fsanitize=address', 4123 '-fsanitize=address',
4066 ], 4124 ],
4067 }], 4125 }],
4068 ], 4126 ],
4069 'conditions': [ 4127 'conditions': [
4070 ['OS=="mac"', { 4128 ['OS=="mac"', {
4071 'cflags': [ 4129 'cflags': [
4072 '-mllvm -asan-globals=0', # http://crbug.com/352073 4130 '-mllvm -asan-globals=0', # http://crbug.com/352073
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
4114 }], 4172 }],
4115 ['asan_coverage!=0', { 4173 ['asan_coverage!=0', {
4116 'target_conditions': [ 4174 'target_conditions': [
4117 ['_toolset=="target"', { 4175 ['_toolset=="target"', {
4118 'cflags': [ 4176 'cflags': [
4119 '-mllvm -asan-coverage=<(asan_coverage)', 4177 '-mllvm -asan-coverage=<(asan_coverage)',
4120 ], 4178 ],
4121 }], 4179 }],
4122 ], 4180 ],
4123 }], 4181 }],
4182 ['asan_field_padding!=0', {
4183 'target_conditions': [
4184 ['_toolset=="target"', {
4185 'cflags': [
4186 '-fsanitize-address-field-padding=<(asan_field_padding)',
4187 ],
4188 }],
4189 ],
4190 }],
4124 ['lsan==1', { 4191 ['lsan==1', {
4125 'target_conditions': [ 4192 'target_conditions': [
4126 ['_toolset=="target"', { 4193 ['_toolset=="target"', {
4127 'cflags': [ 4194 'cflags': [
4128 '-fsanitize=leak', 4195 '-fsanitize=leak',
4129 ], 4196 ],
4130 'ldflags': [ 4197 'ldflags': [
4131 '-fsanitize=leak', 4198 '-fsanitize=leak',
4132 ], 4199 ],
4133 'defines': [ 4200 'defines': [
(...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after
5678 # make generator doesn't support CC_wrapper without CC 5745 # make generator doesn't support CC_wrapper without CC
5679 # in make_global_settings yet. 5746 # in make_global_settings yet.
5680 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { 5747 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', {
5681 'make_global_settings': [ 5748 'make_global_settings': [
5682 ['CC_wrapper', '<(gomadir)/gomacc'], 5749 ['CC_wrapper', '<(gomadir)/gomacc'],
5683 ['CXX_wrapper', '<(gomadir)/gomacc'], 5750 ['CXX_wrapper', '<(gomadir)/gomacc'],
5684 ['CC.host_wrapper', '<(gomadir)/gomacc'], 5751 ['CC.host_wrapper', '<(gomadir)/gomacc'],
5685 ['CXX.host_wrapper', '<(gomadir)/gomacc'], 5752 ['CXX.host_wrapper', '<(gomadir)/gomacc'],
5686 ], 5753 ],
5687 }], 5754 }],
5755 ['use_lto==1', {
5756 'target_defaults': {
5757 'target_conditions': [
5758 ['_toolset=="target"', {
5759 'cflags': [
5760 '-flto',
5761 '-ffat-lto-objects',
5762 ],
5763 }],
5764 ],
5765 },
5766 }],
5767 ['use_lto==1 or use_lto_o2==1', {
5768 'target_defaults': {
5769 'target_conditions': [
5770 ['_toolset=="target"', {
5771 'ldflags': [
5772 '-flto=32',
5773 ],
5774 }],
5775 ],
5776 },
5777 }],
5688 ], 5778 ],
5689 'xcode_settings': { 5779 'xcode_settings': {
5690 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! 5780 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT!
5691 # This block adds *project-wide* configuration settings to each project 5781 # This block adds *project-wide* configuration settings to each project
5692 # file. It's almost always wrong to put things here. Specify your 5782 # file. It's almost always wrong to put things here. Specify your
5693 # custom xcode_settings in target_defaults to add them to targets instead. 5783 # custom xcode_settings in target_defaults to add them to targets instead.
5694 5784
5695 'conditions': [ 5785 'conditions': [
5696 # In an Xcode Project Info window, the "Base SDK for All Configurations" 5786 # In an Xcode Project Info window, the "Base SDK for All Configurations"
5697 # setting sets the SDK on a project-wide basis. In order to get the 5787 # setting sets the SDK on a project-wide basis. In order to get the
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
5748 # settings in target dicts. SYMROOT is a special case, because many other 5838 # settings in target dicts. SYMROOT is a special case, because many other
5749 # Xcode variables depend on it, including variables such as 5839 # Xcode variables depend on it, including variables such as
5750 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5840 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5751 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5841 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5752 # files to appear (when present) in the UI as actual files and not red 5842 # files to appear (when present) in the UI as actual files and not red
5753 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5843 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5754 # and therefore SYMROOT, needs to be set at the project level. 5844 # and therefore SYMROOT, needs to be set at the project level.
5755 'SYMROOT': '<(DEPTH)/xcodebuild', 5845 'SYMROOT': '<(DEPTH)/xcodebuild',
5756 }, 5846 },
5757 } 5847 }
OLDNEW
« no previous file with comments | « build/android/rezip/BUILD.gn ('k') | build/config/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698