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 2220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2231 'clang_lib_path%': '<!(cd <(DEPTH) && pwd -P)/third_party/ll
vm-build/Release+Asserts/lib/libFindBadConstructs.so', | 2231 'clang_lib_path%': '<!(cd <(DEPTH) && pwd -P)/third_party/ll
vm-build/Release+Asserts/lib/libFindBadConstructs.so', |
2232 }], | 2232 }], |
2233 ], | 2233 ], |
2234 }, | 2234 }, |
2235 'clang_dynlib_flags%': '-Xclang -load -Xclang <(clang_lib_path) ', | 2235 'clang_dynlib_flags%': '-Xclang -load -Xclang <(clang_lib_path) ', |
2236 }, { # OS == "win" | 2236 }, { # OS == "win" |
2237 # On Windows, the plugin is built directly into clang, so there's | 2237 # On Windows, the plugin is built directly into clang, so there's |
2238 # no need to load it dynamically. | 2238 # no need to load it dynamically. |
2239 'clang_dynlib_flags%': '', | 2239 'clang_dynlib_flags%': '', |
2240 }], | 2240 }], |
| 2241 ['(OS=="android" or OS=="linux") and chromecast==0 and chromeos==0',
{ |
| 2242 'clang_plugin_check_ipc_arg': '-Xclang -plugin-arg-find-bad-constr
ucts -Xclang check-ipc', |
| 2243 }, { |
| 2244 'clang_plugin_check_ipc_arg': '', |
| 2245 }], |
2241 ], | 2246 ], |
2242 'clang_plugin_args%': '-Xclang -plugin-arg-find-bad-constructs -Xclang
check-templates ' | 2247 'clang_plugin_args%': '-Xclang -plugin-arg-find-bad-constructs -Xclang
check-templates ' |
2243 '-Xclang -plugin-arg-find-bad-constructs -Xclang follow-macro-expansio
n ' | 2248 '-Xclang -plugin-arg-find-bad-constructs -Xclang follow-macro-expansio
n ' |
2244 '-Xclang -plugin-arg-find-bad-constructs -Xclang check-implicit-copy-c
tors ', | 2249 '-Xclang -plugin-arg-find-bad-constructs -Xclang check-implicit-copy-c
tors ', |
2245 }, | 2250 }, |
2246 # If you change these, also change build/config/clang/BUILD.gn. | 2251 # If you change these, also change build/config/clang/BUILD.gn. |
2247 'clang_chrome_plugins_flags%': | 2252 'clang_chrome_plugins_flags%': |
2248 '<(clang_dynlib_flags)' | 2253 '<(clang_dynlib_flags)' |
2249 '-Xclang -add-plugin -Xclang find-bad-constructs <(clang_plugin_args)'
, | 2254 '-Xclang -add-plugin -Xclang find-bad-constructs <(clang_plugin_args)
<(clang_plugin_check_ipc_arg)', |
2250 }], | 2255 }], |
2251 ['asan==1 or msan==1 or lsan==1 or tsan==1', { | 2256 ['asan==1 or msan==1 or lsan==1 or tsan==1', { |
2252 'clang%': 1, | 2257 'clang%': 1, |
2253 'use_allocator%': 'none', | 2258 'use_allocator%': 'none', |
2254 'use_sanitizer_options%': 1, | 2259 'use_sanitizer_options%': 1, |
2255 }], | 2260 }], |
2256 ['(OS=="linux" or OS=="android") and asan==0 and msan==0 and lsan==0 and t
san==0 and build_for_tool==""', { | 2261 ['(OS=="linux" or OS=="android") and asan==0 and msan==0 and lsan==0 and t
san==0 and build_for_tool==""', { |
2257 'use_experimental_allocator_shim%': 1, | 2262 'use_experimental_allocator_shim%': 1, |
2258 }], | 2263 }], |
2259 ['OS=="linux" and asan==0 and msan==0 and lsan==0 and tsan==0', { | 2264 ['OS=="linux" and asan==0 and msan==0 and lsan==0 and tsan==0', { |
(...skipping 4057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6317 # settings in target dicts. SYMROOT is a special case, because many other | 6322 # settings in target dicts. SYMROOT is a special case, because many other |
6318 # Xcode variables depend on it, including variables such as | 6323 # Xcode variables depend on it, including variables such as |
6319 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6324 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
6320 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6325 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
6321 # files to appear (when present) in the UI as actual files and not red | 6326 # files to appear (when present) in the UI as actual files and not red |
6322 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6327 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
6323 # and therefore SYMROOT, needs to be set at the project level. | 6328 # and therefore SYMROOT, needs to be set at the project level. |
6324 'SYMROOT': '<(DEPTH)/xcodebuild', | 6329 'SYMROOT': '<(DEPTH)/xcodebuild', |
6325 }, | 6330 }, |
6326 } | 6331 } |
OLD | NEW |