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 2503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2514 # This warns on using ints as initializers for floats in | 2514 # This warns on using ints as initializers for floats in |
2515 # initializer lists (e.g. |int a = f(); CGSize s = { a, a };|), | 2515 # initializer lists (e.g. |int a = f(); CGSize s = { a, a };|), |
2516 # which happens in several places in chrome code. Not sure if | 2516 # which happens in several places in chrome code. Not sure if |
2517 # this is worth fixing. | 2517 # this is worth fixing. |
2518 '-Wno-c++11-narrowing', | 2518 '-Wno-c++11-narrowing', |
2519 | 2519 |
2520 # Clang considers the `register` keyword as deprecated, but e.g. | 2520 # Clang considers the `register` keyword as deprecated, but e.g. |
2521 # code generated by flex (used in angle) contains that keyword. | 2521 # code generated by flex (used in angle) contains that keyword. |
2522 # http://crbug.com/255186 | 2522 # http://crbug.com/255186 |
2523 '-Wno-deprecated-register', | 2523 '-Wno-deprecated-register', |
2524 | |
2525 # TODO(hans): Get this cleaned up. | |
2526 '-Wno-inconsistent-missing-override', | |
2527 ], | 2524 ], |
2528 }, | 2525 }, |
2529 'includes': [ 'set_clang_warning_flags.gypi', ], | 2526 'includes': [ 'set_clang_warning_flags.gypi', ], |
2530 'defines': [ | 2527 'defines': [ |
2531 # Don't use deprecated V8 APIs anywhere. | 2528 # Don't use deprecated V8 APIs anywhere. |
2532 'V8_DEPRECATION_WARNINGS', | 2529 'V8_DEPRECATION_WARNINGS', |
2533 ], | 2530 ], |
2534 'include_dirs': [ | 2531 'include_dirs': [ |
2535 '<(SHARED_INTERMEDIATE_DIR)', | 2532 '<(SHARED_INTERMEDIATE_DIR)', |
2536 ], | 2533 ], |
(...skipping 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4231 'defines': [ | 4228 'defines': [ |
4232 'UNDEFINED_SANITIZER', | 4229 'UNDEFINED_SANITIZER', |
4233 ], | 4230 ], |
4234 }], | 4231 }], |
4235 ], | 4232 ], |
4236 }], | 4233 }], |
4237 ['asan_coverage!=0', { | 4234 ['asan_coverage!=0', { |
4238 'target_conditions': [ | 4235 'target_conditions': [ |
4239 ['_toolset=="target"', { | 4236 ['_toolset=="target"', { |
4240 'cflags': [ | 4237 'cflags': [ |
4241 '-fsanitize-coverage=<(asan_coverage)', | 4238 '-mllvm -asan-coverage=<(asan_coverage)', |
4242 ], | 4239 ], |
4243 }], | 4240 }], |
4244 ], | 4241 ], |
4245 }], | 4242 }], |
4246 ['asan_field_padding!=0', { | 4243 ['asan_field_padding!=0', { |
4247 'target_conditions': [ | 4244 'target_conditions': [ |
4248 ['_toolset=="target"', { | 4245 ['_toolset=="target"', { |
4249 'cflags': [ | 4246 'cflags': [ |
4250 '-fsanitize-address-field-padding=<(asan_field_padding)', | 4247 '-fsanitize-address-field-padding=<(asan_field_padding)', |
4251 ], | 4248 ], |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4602 ], | 4599 ], |
4603 }], | 4600 }], |
4604 ['asan==1', { | 4601 ['asan==1', { |
4605 'cflags': [ | 4602 'cflags': [ |
4606 # Android build relies on -Wl,--gc-sections removing | 4603 # Android build relies on -Wl,--gc-sections removing |
4607 # unreachable code. ASan instrumentation for globals inhibits | 4604 # unreachable code. ASan instrumentation for globals inhibits |
4608 # this and results in a library with unresolvable relocations. | 4605 # this and results in a library with unresolvable relocations. |
4609 # TODO(eugenis): find a way to reenable this. | 4606 # TODO(eugenis): find a way to reenable this. |
4610 '-mllvm -asan-globals=0', | 4607 '-mllvm -asan-globals=0', |
4611 ], | 4608 ], |
| 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 ], |
4612 }], | 4619 }], |
4613 ['android_webview_build==0', { | 4620 ['android_webview_build==0', { |
4614 'defines': [ | 4621 'defines': [ |
4615 # The NDK has these things, but doesn't define the constants | 4622 # The NDK has these things, but doesn't define the constants |
4616 # to say that it does. Define them here instead. | 4623 # to say that it does. Define them here instead. |
4617 'HAVE_SYS_UIO_H', | 4624 'HAVE_SYS_UIO_H', |
4618 ], | 4625 ], |
4619 'cflags': [ | 4626 'cflags': [ |
4620 '--sysroot=<(android_ndk_sysroot)', | 4627 '--sysroot=<(android_ndk_sysroot)', |
4621 ], | 4628 ], |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4894 'OTHER_CFLAGS': [ | 4901 'OTHER_CFLAGS': [ |
4895 '-fsanitize=address', | 4902 '-fsanitize=address', |
4896 '-gline-tables-only', | 4903 '-gline-tables-only', |
4897 ], | 4904 ], |
4898 }, | 4905 }, |
4899 }], | 4906 }], |
4900 ['asan_coverage!=0', { | 4907 ['asan_coverage!=0', { |
4901 'target_conditions': [ | 4908 'target_conditions': [ |
4902 ['_toolset=="target"', { | 4909 ['_toolset=="target"', { |
4903 'cflags': [ | 4910 'cflags': [ |
4904 '-fsanitize-coverage=<(asan_coverage)', | 4911 '-mllvm -asan-coverage=<(asan_coverage)', |
4905 ], | 4912 ], |
4906 }], | 4913 }], |
4907 ], | 4914 ], |
4908 }], | 4915 }], |
4909 ], | 4916 ], |
4910 'target_conditions': [ | 4917 'target_conditions': [ |
4911 ['_type!="static_library"', { | 4918 ['_type!="static_library"', { |
4912 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 4919 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
4913 'conditions': [ | 4920 'conditions': [ |
4914 ['asan==1', { | 4921 ['asan==1', { |
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5830 # settings in target dicts. SYMROOT is a special case, because many other | 5837 # settings in target dicts. SYMROOT is a special case, because many other |
5831 # Xcode variables depend on it, including variables such as | 5838 # Xcode variables depend on it, including variables such as |
5832 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5839 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5833 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5840 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5834 # files to appear (when present) in the UI as actual files and not red | 5841 # files to appear (when present) in the UI as actual files and not red |
5835 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5842 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5836 # and therefore SYMROOT, needs to be set at the project level. | 5843 # and therefore SYMROOT, needs to be set at the project level. |
5837 'SYMROOT': '<(DEPTH)/xcodebuild', | 5844 'SYMROOT': '<(DEPTH)/xcodebuild', |
5838 }, | 5845 }, |
5839 } | 5846 } |
OLD | NEW |