OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # IMPORTANT: | 5 # IMPORTANT: |
6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
8 { | 8 { |
9 # Variables expected to be overriden on the GYP command line (-D) or by | 9 # Variables expected to be overriden on the GYP command line (-D) or by |
10 # ~/.gyp/include.gypi. | 10 # ~/.gyp/include.gypi. |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 'syzygy_optimize%': 0, | 612 'syzygy_optimize%': 0, |
613 | 613 |
614 # Enable hole punching for the protected video. | 614 # Enable hole punching for the protected video. |
615 'video_hole%': 0, | 615 'video_hole%': 0, |
616 | 616 |
617 # Temporary hack to allow us to unify blink's definitions of load | 617 # Temporary hack to allow us to unify blink's definitions of load |
618 # completion. blink uses a crazy set of constraints to determine load | 618 # completion. blink uses a crazy set of constraints to determine load |
619 # completion, but only actually requires them for layout tests. However, | 619 # completion, but only actually requires them for layout tests. However, |
620 # we need to maintain all the old behaviors while the plumbing is put in | 620 # we need to maintain all the old behaviors while the plumbing is put in |
621 # place on both sides of the repo boundary. | 621 # place on both sides of the repo boundary. |
622 'enable_load_completion_hacks%': 1, | 622 'enable_load_completion_hacks%': 0, |
623 | 623 |
624 # Automatically select platforms under ozone. Turn this off to | 624 # Automatically select platforms under ozone. Turn this off to |
625 # build only explicitly selected platforms. | 625 # build only explicitly selected platforms. |
626 'ozone_auto_platforms%': 1, | 626 'ozone_auto_platforms%': 1, |
627 | 627 |
628 # If this is set clang is used as host compiler, but not as target | 628 # If this is set clang is used as host compiler, but not as target |
629 # compiler. Always do this by default. | 629 # compiler. Always do this by default. |
630 'host_clang%': 1, | 630 'host_clang%': 1, |
631 | 631 |
632 # Variables to control Link-Time Optimizations (LTO). | 632 # Variables to control Link-Time Optimizations (LTO). |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 'use_cairo%': 1, | 699 'use_cairo%': 1, |
700 }], | 700 }], |
701 | 701 |
702 # DBus usage. | 702 # DBus usage. |
703 ['OS=="linux" and embedded==0', { | 703 ['OS=="linux" and embedded==0', { |
704 'use_dbus%': 1, | 704 'use_dbus%': 1, |
705 }, { | 705 }, { |
706 'use_dbus%': 0, | 706 'use_dbus%': 0, |
707 }], | 707 }], |
708 | 708 |
| 709 # Libxkbcommon usage. |
| 710 ['use_ozone==1 and embedded==0', { |
| 711 'use_xkbcommon%': 1, |
| 712 }, { |
| 713 'use_xkbcommon%': 0, |
| 714 }], |
| 715 |
709 # We always use skia text rendering in Aura on Windows, since GDI | 716 # We always use skia text rendering in Aura on Windows, since GDI |
710 # doesn't agree with our BackingStore. | 717 # doesn't agree with our BackingStore. |
711 # TODO(beng): remove once skia text rendering is on by default. | 718 # TODO(beng): remove once skia text rendering is on by default. |
712 ['use_aura==1 and OS=="win"', { | 719 ['use_aura==1 and OS=="win"', { |
713 'enable_skia_text%': 1, | 720 'enable_skia_text%': 1, |
714 }], | 721 }], |
715 | 722 |
716 # A flag to enable or disable our compile-time dependency | 723 # A flag to enable or disable our compile-time dependency |
717 # on gnome-keyring. If that dependency is disabled, no gnome-keyring | 724 # on gnome-keyring. If that dependency is disabled, no gnome-keyring |
718 # support will be available. This option is useful | 725 # support will be available. This option is useful |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1080 'use_nss%': '<(use_nss)', | 1087 'use_nss%': '<(use_nss)', |
1081 'use_udev%': '<(use_udev)', | 1088 'use_udev%': '<(use_udev)', |
1082 'os_bsd%': '<(os_bsd)', | 1089 'os_bsd%': '<(os_bsd)', |
1083 'os_posix%': '<(os_posix)', | 1090 'os_posix%': '<(os_posix)', |
1084 'use_dbus%': '<(use_dbus)', | 1091 'use_dbus%': '<(use_dbus)', |
1085 'use_glib%': '<(use_glib)', | 1092 'use_glib%': '<(use_glib)', |
1086 'use_pango%': '<(use_pango)', | 1093 'use_pango%': '<(use_pango)', |
1087 'use_cairo%': '<(use_cairo)', | 1094 'use_cairo%': '<(use_cairo)', |
1088 'use_ozone%': '<(use_ozone)', | 1095 'use_ozone%': '<(use_ozone)', |
1089 'use_ozone_evdev%': '<(use_ozone_evdev)', | 1096 'use_ozone_evdev%': '<(use_ozone_evdev)', |
| 1097 'use_xkbcommon%': '<(use_xkbcommon)', |
1090 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', | 1098 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', |
1091 'desktop_linux%': '<(desktop_linux)', | 1099 'desktop_linux%': '<(desktop_linux)', |
1092 'use_x11%': '<(use_x11)', | 1100 'use_x11%': '<(use_x11)', |
1093 'use_gnome_keyring%': '<(use_gnome_keyring)', | 1101 'use_gnome_keyring%': '<(use_gnome_keyring)', |
1094 'linux_fpic%': '<(linux_fpic)', | 1102 'linux_fpic%': '<(linux_fpic)', |
1095 'chromeos%': '<(chromeos)', | 1103 'chromeos%': '<(chromeos)', |
1096 'chromecast%': '<(chromecast)', | 1104 'chromecast%': '<(chromecast)', |
1097 'enable_viewport%': '<(enable_viewport)', | 1105 'enable_viewport%': '<(enable_viewport)', |
1098 'enable_hidpi%': '<(enable_hidpi)', | 1106 'enable_hidpi%': '<(enable_hidpi)', |
1099 'image_loader_extension%': '<(image_loader_extension)', | 1107 'image_loader_extension%': '<(image_loader_extension)', |
(...skipping 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2514 # This warns on using ints as initializers for floats in | 2522 # This warns on using ints as initializers for floats in |
2515 # initializer lists (e.g. |int a = f(); CGSize s = { a, a };|), | 2523 # initializer lists (e.g. |int a = f(); CGSize s = { a, a };|), |
2516 # which happens in several places in chrome code. Not sure if | 2524 # which happens in several places in chrome code. Not sure if |
2517 # this is worth fixing. | 2525 # this is worth fixing. |
2518 '-Wno-c++11-narrowing', | 2526 '-Wno-c++11-narrowing', |
2519 | 2527 |
2520 # Clang considers the `register` keyword as deprecated, but e.g. | 2528 # Clang considers the `register` keyword as deprecated, but e.g. |
2521 # code generated by flex (used in angle) contains that keyword. | 2529 # code generated by flex (used in angle) contains that keyword. |
2522 # http://crbug.com/255186 | 2530 # http://crbug.com/255186 |
2523 '-Wno-deprecated-register', | 2531 '-Wno-deprecated-register', |
| 2532 |
| 2533 # TODO(hans): Get this cleaned up. |
| 2534 '-Wno-inconsistent-missing-override', |
2524 ], | 2535 ], |
2525 }, | 2536 }, |
2526 'includes': [ 'set_clang_warning_flags.gypi', ], | 2537 'includes': [ 'set_clang_warning_flags.gypi', ], |
2527 'defines': [ | 2538 'defines': [ |
2528 # Don't use deprecated V8 APIs anywhere. | 2539 # Don't use deprecated V8 APIs anywhere. |
2529 'V8_DEPRECATION_WARNINGS', | 2540 'V8_DEPRECATION_WARNINGS', |
2530 ], | 2541 ], |
2531 'include_dirs': [ | 2542 'include_dirs': [ |
2532 '<(SHARED_INTERMEDIATE_DIR)', | 2543 '<(SHARED_INTERMEDIATE_DIR)', |
2533 ], | 2544 ], |
(...skipping 1644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4178 'cflags': [ | 4189 'cflags': [ |
4179 '-fsanitize=address', | 4190 '-fsanitize=address', |
4180 # TODO(earthdok): Re-enable. http://crbug.com/427202 | 4191 # TODO(earthdok): Re-enable. http://crbug.com/427202 |
4181 #'-fsanitize-blacklist=<(asan_blacklist)', | 4192 #'-fsanitize-blacklist=<(asan_blacklist)', |
4182 ], | 4193 ], |
4183 'ldflags': [ | 4194 'ldflags': [ |
4184 '-fsanitize=address', | 4195 '-fsanitize=address', |
4185 ], | 4196 ], |
4186 }], | 4197 }], |
4187 ], | 4198 ], |
| 4199 'conditions': [ |
| 4200 ['OS=="mac"', { |
| 4201 'cflags': [ |
| 4202 '-mllvm -asan-globals=0', # http://crbug.com/352073 |
| 4203 ], |
| 4204 }], |
| 4205 ], |
4188 }], | 4206 }], |
4189 ['ubsan==1', { | 4207 ['ubsan==1', { |
4190 'target_conditions': [ | 4208 'target_conditions': [ |
4191 ['_toolset=="target"', { | 4209 ['_toolset=="target"', { |
4192 'cflags': [ | 4210 'cflags': [ |
4193 '-fsanitize=undefined', | 4211 '-fsanitize=undefined', |
4194 # -fsanitize=vptr is incompatible with -fno-rtti. | 4212 # -fsanitize=vptr is incompatible with -fno-rtti. |
4195 '-fno-sanitize=vptr', | 4213 '-fno-sanitize=vptr', |
4196 # Employ the experimental PBQP register allocator to avoid | 4214 # Employ the experimental PBQP register allocator to avoid |
4197 # slow compilation on files with too many basic blocks. | 4215 # slow compilation on files with too many basic blocks. |
(...skipping 30 matching lines...) Expand all Loading... |
4228 'defines': [ | 4246 'defines': [ |
4229 'UNDEFINED_SANITIZER', | 4247 'UNDEFINED_SANITIZER', |
4230 ], | 4248 ], |
4231 }], | 4249 }], |
4232 ], | 4250 ], |
4233 }], | 4251 }], |
4234 ['asan_coverage!=0', { | 4252 ['asan_coverage!=0', { |
4235 'target_conditions': [ | 4253 'target_conditions': [ |
4236 ['_toolset=="target"', { | 4254 ['_toolset=="target"', { |
4237 'cflags': [ | 4255 'cflags': [ |
4238 '-mllvm -asan-coverage=<(asan_coverage)', | 4256 '-fsanitize-coverage=<(asan_coverage)', |
4239 ], | 4257 ], |
4240 }], | 4258 }], |
4241 ], | 4259 ], |
4242 }], | 4260 }], |
4243 ['asan_field_padding!=0', { | 4261 ['asan_field_padding!=0', { |
4244 'target_conditions': [ | 4262 'target_conditions': [ |
4245 ['_toolset=="target"', { | 4263 ['_toolset=="target"', { |
4246 'cflags': [ | 4264 'cflags': [ |
4247 '-fsanitize-address-field-padding=<(asan_field_padding)', | 4265 '-fsanitize-address-field-padding=<(asan_field_padding)', |
4248 ], | 4266 ], |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4599 ], | 4617 ], |
4600 }], | 4618 }], |
4601 ['asan==1', { | 4619 ['asan==1', { |
4602 'cflags': [ | 4620 'cflags': [ |
4603 # Android build relies on -Wl,--gc-sections removing | 4621 # Android build relies on -Wl,--gc-sections removing |
4604 # unreachable code. ASan instrumentation for globals inhibits | 4622 # unreachable code. ASan instrumentation for globals inhibits |
4605 # this and results in a library with unresolvable relocations. | 4623 # this and results in a library with unresolvable relocations. |
4606 # TODO(eugenis): find a way to reenable this. | 4624 # TODO(eugenis): find a way to reenable this. |
4607 '-mllvm -asan-globals=0', | 4625 '-mllvm -asan-globals=0', |
4608 ], | 4626 ], |
4609 'conditions': [ | |
4610 ['target_arch=="arm"', { | |
4611 'ldflags': [ | |
4612 # TODO(hans): The ASan runtime is no longer automatically | |
4613 # added to the link line when using -nostdlib. Can we | |
4614 # stop adding -nostdlib? (crbug.com/423429) | |
4615 '<!(cd <(DEPTH) && pwd -P)/<(make_clang_dir)/lib/clang/3.6
.0/lib/linux/libclang_rt.asan-arm-android.so', | |
4616 ], | |
4617 }], | |
4618 ], | |
4619 }], | 4627 }], |
4620 ['android_webview_build==0', { | 4628 ['android_webview_build==0', { |
4621 'defines': [ | 4629 'defines': [ |
4622 # The NDK has these things, but doesn't define the constants | 4630 # The NDK has these things, but doesn't define the constants |
4623 # to say that it does. Define them here instead. | 4631 # to say that it does. Define them here instead. |
4624 'HAVE_SYS_UIO_H', | 4632 'HAVE_SYS_UIO_H', |
4625 ], | 4633 ], |
4626 'cflags': [ | 4634 'cflags': [ |
4627 '--sysroot=<(android_ndk_sysroot)', | 4635 '--sysroot=<(android_ndk_sysroot)', |
4628 ], | 4636 ], |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4893 'conditions': [ | 4901 'conditions': [ |
4894 ['clang==1', { | 4902 ['clang==1', { |
4895 'variables': { | 4903 'variables': { |
4896 'clang_dir': '../third_party/llvm-build/Release+Asserts/bin', | 4904 'clang_dir': '../third_party/llvm-build/Release+Asserts/bin', |
4897 }, | 4905 }, |
4898 }], | 4906 }], |
4899 ['asan==1', { | 4907 ['asan==1', { |
4900 'xcode_settings': { | 4908 'xcode_settings': { |
4901 'OTHER_CFLAGS': [ | 4909 'OTHER_CFLAGS': [ |
4902 '-fsanitize=address', | 4910 '-fsanitize=address', |
| 4911 '-mllvm -asan-globals=0', # http://crbug.com/352073 |
4903 '-gline-tables-only', | 4912 '-gline-tables-only', |
4904 ], | 4913 ], |
4905 }, | 4914 }, |
4906 }], | 4915 }], |
4907 ['asan_coverage!=0', { | 4916 ['asan_coverage!=0', { |
4908 'target_conditions': [ | 4917 'target_conditions': [ |
4909 ['_toolset=="target"', { | 4918 ['_toolset=="target"', { |
4910 'cflags': [ | 4919 'cflags': [ |
4911 '-mllvm -asan-coverage=<(asan_coverage)', | 4920 '-fsanitize-coverage=<(asan_coverage)', |
4912 ], | 4921 ], |
4913 }], | 4922 }], |
4914 ], | 4923 ], |
4915 }], | 4924 }], |
4916 ], | 4925 ], |
4917 'target_conditions': [ | 4926 'target_conditions': [ |
4918 ['_type!="static_library"', { | 4927 ['_type!="static_library"', { |
4919 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 4928 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
4920 'conditions': [ | 4929 'conditions': [ |
4921 ['asan==1', { | 4930 ['asan==1', { |
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5837 # settings in target dicts. SYMROOT is a special case, because many other | 5846 # settings in target dicts. SYMROOT is a special case, because many other |
5838 # Xcode variables depend on it, including variables such as | 5847 # Xcode variables depend on it, including variables such as |
5839 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5848 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5840 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5849 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5841 # files to appear (when present) in the UI as actual files and not red | 5850 # files to appear (when present) in the UI as actual files and not red |
5842 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5851 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5843 # and therefore SYMROOT, needs to be set at the project level. | 5852 # and therefore SYMROOT, needs to be set at the project level. |
5844 'SYMROOT': '<(DEPTH)/xcodebuild', | 5853 'SYMROOT': '<(DEPTH)/xcodebuild', |
5845 }, | 5854 }, |
5846 } | 5855 } |
OLD | NEW |