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 2125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2136 'grit_defines': ['-D', 'enable_service_discovery'], | 2136 'grit_defines': ['-D', 'enable_service_discovery'], |
2137 'enable_service_discovery%': 1 | 2137 'enable_service_discovery%': 1 |
2138 }], | 2138 }], |
2139 ['clang_use_chrome_plugins==1 and OS!="win"', { | 2139 ['clang_use_chrome_plugins==1 and OS!="win"', { |
2140 'clang_chrome_plugins_flags': [ | 2140 'clang_chrome_plugins_flags': [ |
2141 '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)' | 2141 '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)' |
2142 ], | 2142 ], |
2143 'conditions': [ | 2143 'conditions': [ |
2144 # TODO(dcheng): https://crbug.com/417463 -- work to enable this flag | 2144 # TODO(dcheng): https://crbug.com/417463 -- work to enable this flag |
2145 # on all platforms is currently underway. | 2145 # on all platforms is currently underway. |
2146 ['(OS=="linux" and chromeos==0) or OS=="mac" or OS=="ios"', { | 2146 ['(OS=="linux" and (chromeos==0 or use_ozone==0)) or OS=="mac" or OS==
"ios"', { |
2147 'clang_chrome_plugins_flags': [ | 2147 'clang_chrome_plugins_flags': [ |
2148 '-Xclang', | 2148 '-Xclang', |
2149 '-plugin-arg-find-bad-constructs', | 2149 '-plugin-arg-find-bad-constructs', |
2150 '-Xclang', | 2150 '-Xclang', |
2151 'strict-virtual-specifiers', | 2151 'strict-virtual-specifiers', |
2152 ], | 2152 ], |
2153 }], | 2153 }], |
2154 ], | 2154 ], |
2155 }], | 2155 }], |
2156 ['asan==1 or msan==1 or lsan==1 or tsan==1', { | 2156 ['asan==1 or msan==1 or lsan==1 or tsan==1', { |
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2847 '/wd6326', # Potential comparison of constant with constant | 2847 '/wd6326', # Potential comparison of constant with constant |
2848 '/wd28159', # Consider using 'GetTickCount64' | 2848 '/wd28159', # Consider using 'GetTickCount64' |
2849 '/wd28204', # Inconsistent SAL annotations | 2849 '/wd28204', # Inconsistent SAL annotations |
2850 '/wd28251', # Inconsistent SAL annotations | 2850 '/wd28251', # Inconsistent SAL annotations |
2851 '/wd28252', # Inconsistent SAL annotations | 2851 '/wd28252', # Inconsistent SAL annotations |
2852 '/wd28253', # Inconsistent SAL annotations | 2852 '/wd28253', # Inconsistent SAL annotations |
2853 '/wd28196', # The precondition is not satisfied | 2853 '/wd28196', # The precondition is not satisfied |
2854 '/wd28301', # Inconsistent SAL annotations | 2854 '/wd28301', # Inconsistent SAL annotations |
2855 '/wd6340', # Sign mismatch in function parameter | 2855 '/wd6340', # Sign mismatch in function parameter |
2856 '/wd28182', # Dereferencing NULL pointer | 2856 '/wd28182', # Dereferencing NULL pointer |
| 2857 # C6285 is ~16% of raw warnings and has low value |
| 2858 '/wd6285', # non-zero constant || non-zero constant |
| 2859 # C6334 is ~80% of raw warnings and has low value |
| 2860 '/wd6334', # sizeof applied to an expression with an operator |
2857 ], | 2861 ], |
2858 }, | 2862 }, |
2859 }, | 2863 }, |
2860 }], # win_analyze | 2864 }], # win_analyze |
2861 ], | 2865 ], |
2862 }], # OS==win | 2866 }], # OS==win |
2863 ['chromecast==1', { | 2867 ['chromecast==1', { |
2864 'defines': [ | 2868 'defines': [ |
2865 'LOG_DISABLED=0', | 2869 'LOG_DISABLED=0', |
2866 ], | 2870 ], |
2867 'conditions': [ | 2871 'conditions': [ |
2868 ['target_arch=="arm"', { | |
2869 'defines': [ | |
2870 # TODO(lcwu): Work around an error when building Chromium | |
2871 # with gcc-4.5.3 (e.g. v8/src/platform-linux.cc). Remove | |
2872 # this define once the toolchain is updated. | |
2873 # See crbug.com/388933. | |
2874 '__SOFTFP', | |
2875 ], | |
2876 }], | |
2877 ['use_playready==1', { | 2872 ['use_playready==1', { |
2878 'defines': [ | 2873 'defines': [ |
2879 'PLAYREADY_CDM_AVAILABLE', | 2874 'PLAYREADY_CDM_AVAILABLE', |
2880 ], | 2875 ], |
2881 }], | 2876 }], |
2882 ], | 2877 ], |
2883 }], | 2878 }], |
2884 ['enable_task_manager==1', { | 2879 ['enable_task_manager==1', { |
2885 'defines': [ | 2880 'defines': [ |
2886 'ENABLE_TASK_MANAGER=1', | 2881 'ENABLE_TASK_MANAGER=1', |
(...skipping 2261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5148 }, | 5143 }, |
5149 ], # postbuilds | 5144 ], # postbuilds |
5150 }], # mac_real_dsym | 5145 }], # mac_real_dsym |
5151 ], # target_conditions | 5146 ], # target_conditions |
5152 }], # (_type=="executable" or _type=="shared_library" or | 5147 }], # (_type=="executable" or _type=="shared_library" or |
5153 # _type=="loadable_module") and mac_strip!=0 | 5148 # _type=="loadable_module") and mac_strip!=0 |
5154 ], # target_conditions | 5149 ], # target_conditions |
5155 }, # target_defaults | 5150 }, # target_defaults |
5156 }], # OS=="mac" | 5151 }], # OS=="mac" |
5157 ['OS=="ios"', { | 5152 ['OS=="ios"', { |
| 5153 'includes': [ |
| 5154 'ios/coverage.gypi', |
| 5155 ], |
5158 'target_defaults': { | 5156 'target_defaults': { |
5159 'xcode_settings' : { | 5157 'xcode_settings' : { |
5160 'CLANG_CXX_LANGUAGE_STANDARD': 'c++11', | 5158 'CLANG_CXX_LANGUAGE_STANDARD': 'c++11', |
5161 | 5159 |
5162 'conditions': [ | 5160 'conditions': [ |
5163 # Older Xcodes do not support -Wno-deprecated-register, so pass an | 5161 # Older Xcodes do not support -Wno-deprecated-register, so pass an |
5164 # additional flag to suppress the "unknown compiler option" error. | 5162 # additional flag to suppress the "unknown compiler option" error. |
5165 # Restrict this flag to builds that are either compiling with Xcode | 5163 # Restrict this flag to builds that are either compiling with Xcode |
5166 # or compiling with Xcode's Clang. This will allow Ninja builds to | 5164 # or compiling with Xcode's Clang. This will allow Ninja builds to |
5167 # continue failing on unknown compiler options. | 5165 # continue failing on unknown compiler options. |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5538 '-Wno-unsequenced', | 5536 '-Wno-unsequenced', |
5539 '-Wno-unused-function', | 5537 '-Wno-unused-function', |
5540 '-Wno-unused-private-field', | 5538 '-Wno-unused-private-field', |
5541 '-Wno-unused-value', | 5539 '-Wno-unused-value', |
5542 '-Wno-unused-variable', | 5540 '-Wno-unused-variable', |
5543 '-Wno-unused-local-typedef', # http://crbug.com/411648 | 5541 '-Wno-unused-local-typedef', # http://crbug.com/411648 |
5544 '-Wno-inconsistent-missing-override', #http://crbug.com/428099 | 5542 '-Wno-inconsistent-missing-override', #http://crbug.com/428099 |
5545 ], | 5543 ], |
5546 }, | 5544 }, |
5547 }], | 5545 }], |
5548 ['asan==1', { | |
5549 # ASan on Windows is a work in progress and very experimental. | |
5550 # See crbug.com/345874. | |
5551 'VCCLCompilerTool': { | |
5552 'AdditionalOptions': [ | |
5553 '-fsanitize=address', | |
5554 ], | |
5555 'AdditionalIncludeDirectories': [ | |
5556 # MSVC needs to be able to find the sanitizer headers when | |
5557 # invoked via /fallback. This is critical for using macros | |
5558 # like ASAN_UNPOISON_MEMORY_REGION in files where we fall | |
5559 # back. | |
5560 '<(DEPTH)/<(make_clang_dir)/lib/clang/3.7.0/include_sanitizer'
, | |
5561 ], | |
5562 }, | |
5563 'VCLinkerTool': { | |
5564 'AdditionalLibraryDirectories': [ | |
5565 # TODO(hans): If make_clang_dir is absolute, this breaks. | |
5566 '<(DEPTH)/<(make_clang_dir)/lib/clang/3.7.0/lib/windows', | |
5567 ], | |
5568 }, | |
5569 'target_conditions': [ | |
5570 ['component=="shared_library"', { | |
5571 'VCLinkerTool': { | |
5572 'AdditionalDependencies': [ | |
5573 'clang_rt.asan_dynamic-i386.lib', | |
5574 'clang_rt.asan_dynamic_runtime_thunk-i386.lib', | |
5575 ], | |
5576 }, | |
5577 }], | |
5578 ['_type=="executable" and component=="static_library"', { | |
5579 'VCLinkerTool': { | |
5580 'AdditionalDependencies': [ | |
5581 'clang_rt.asan-i386.lib', | |
5582 ], | |
5583 }, | |
5584 }], | |
5585 ['(_type=="shared_library" or _type=="loadable_module") and comp
onent=="static_library"', { | |
5586 'VCLinkerTool': { | |
5587 'AdditionalDependencies': [ | |
5588 'clang_rt.asan_dll_thunk-i386.lib', | |
5589 ], | |
5590 }, | |
5591 }], | |
5592 ], | |
5593 }], | |
5594 ], | 5546 ], |
5595 }, | 5547 }, |
5596 }, | 5548 }, |
5597 }], | 5549 }], |
5598 ['disable_nacl==1', { | 5550 ['disable_nacl==1', { |
5599 'target_defaults': { | 5551 'target_defaults': { |
5600 'defines': [ | 5552 'defines': [ |
5601 'DISABLE_NACL', | 5553 'DISABLE_NACL', |
5602 ], | 5554 ], |
5603 }, | 5555 }, |
(...skipping 14 matching lines...) Expand all Loading... |
5618 'x86_Base': { | 5570 'x86_Base': { |
5619 'msvs_settings': { | 5571 'msvs_settings': { |
5620 'VCLinkerTool': { | 5572 'VCLinkerTool': { |
5621 'AdditionalOptions': [ | 5573 'AdditionalOptions': [ |
5622 '/safeseh', | 5574 '/safeseh', |
5623 '/dynamicbase', | 5575 '/dynamicbase', |
5624 '/ignore:4199', | 5576 '/ignore:4199', |
5625 '/ignore:4221', | 5577 '/ignore:4221', |
5626 '/nxcompat', | 5578 '/nxcompat', |
5627 ], | 5579 ], |
5628 'conditions': [ | 5580 }, |
5629 ['syzyasan==0', { | 5581 'conditions': [ |
| 5582 ['syzyasan==0', { |
| 5583 'VCLinkerTool': { |
5630 'AdditionalOptions': ['/largeaddressaware'], | 5584 'AdditionalOptions': ['/largeaddressaware'], |
5631 }], | 5585 }, |
5632 ], | 5586 }], |
5633 }, | 5587 ['asan==1', { |
| 5588 # TODO(asan/win): Move this down into the general |
| 5589 # win-target_defaults section once the 64-bit asan runtime |
| 5590 # exists. See crbug.com/345874. |
| 5591 'VCCLCompilerTool': { |
| 5592 'AdditionalOptions': [ |
| 5593 '-fsanitize=address', |
| 5594 ], |
| 5595 'AdditionalIncludeDirectories': [ |
| 5596 # MSVC needs to be able to find the sanitizer headers when |
| 5597 # invoked via /fallback. This is critical for using macros |
| 5598 # like ASAN_UNPOISON_MEMORY_REGION in files where we fall |
| 5599 # back. |
| 5600 '<(DEPTH)/<(make_clang_dir)/lib/clang/3.7.0/include_saniti
zer', |
| 5601 ], |
| 5602 }, |
| 5603 'VCLinkerTool': { |
| 5604 'AdditionalLibraryDirectories': [ |
| 5605 # TODO(hans): If make_clang_dir is absolute, this breaks. |
| 5606 '<(DEPTH)/<(make_clang_dir)/lib/clang/3.7.0/lib/windows', |
| 5607 ], |
| 5608 }, |
| 5609 'target_conditions': [ |
| 5610 ['component=="shared_library"', { |
| 5611 'VCLinkerTool': { |
| 5612 'AdditionalDependencies': [ |
| 5613 'clang_rt.asan_dynamic-i386.lib', |
| 5614 'clang_rt.asan_dynamic_runtime_thunk-i386.lib', |
| 5615 ], |
| 5616 }, |
| 5617 }], |
| 5618 ['_type=="executable" and component=="static_library"', { |
| 5619 'VCLinkerTool': { |
| 5620 'AdditionalDependencies': [ |
| 5621 'clang_rt.asan-i386.lib', |
| 5622 ], |
| 5623 }, |
| 5624 }], |
| 5625 ['(_type=="shared_library" or _type=="loadable_module") and
component=="static_library"', { |
| 5626 'VCLinkerTool': { |
| 5627 'AdditionalDependencies': [ |
| 5628 'clang_rt.asan_dll_thunk-i386.lib', |
| 5629 ], |
| 5630 }, |
| 5631 }], |
| 5632 ], |
| 5633 }], |
| 5634 ], |
5634 }, | 5635 }, |
5635 }, | 5636 }, |
5636 'x64_Base': { | 5637 'x64_Base': { |
5637 'msvs_settings': { | 5638 'msvs_settings': { |
5638 'VCLinkerTool': { | 5639 'VCLinkerTool': { |
5639 'AdditionalOptions': [ | 5640 'AdditionalOptions': [ |
5640 # safeseh is not compatible with x64 | 5641 # safeseh is not compatible with x64 |
5641 '/dynamicbase', | 5642 '/dynamicbase', |
5642 '/ignore:4199', | 5643 '/ignore:4199', |
5643 '/ignore:4221', | 5644 '/ignore:4221', |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5860 # settings in target dicts. SYMROOT is a special case, because many other | 5861 # settings in target dicts. SYMROOT is a special case, because many other |
5861 # Xcode variables depend on it, including variables such as | 5862 # Xcode variables depend on it, including variables such as |
5862 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5863 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5863 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5864 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5864 # files to appear (when present) in the UI as actual files and not red | 5865 # files to appear (when present) in the UI as actual files and not red |
5865 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5866 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5866 # and therefore SYMROOT, needs to be set at the project level. | 5867 # and therefore SYMROOT, needs to be set at the project level. |
5867 'SYMROOT': '<(DEPTH)/xcodebuild', | 5868 'SYMROOT': '<(DEPTH)/xcodebuild', |
5868 }, | 5869 }, |
5869 } | 5870 } |
OLD | NEW |