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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 # If this is set, the clang plugins used on the buildbot will be used. | 190 # If this is set, the clang plugins used on the buildbot will be used. |
191 # Run tools/clang/scripts/update.sh to make sure they are compiled. | 191 # Run tools/clang/scripts/update.sh to make sure they are compiled. |
192 # This causes 'clang_chrome_plugins_flags' to be set. | 192 # This causes 'clang_chrome_plugins_flags' to be set. |
193 # Has no effect if 'clang' is not set as well. | 193 # Has no effect if 'clang' is not set as well. |
194 'clang_use_chrome_plugins%': 0, | 194 'clang_use_chrome_plugins%': 0, |
195 | 195 |
196 # Enable building with ASAN (Clang's -faddress-sanitizer option). | 196 # Enable building with ASAN (Clang's -faddress-sanitizer option). |
197 # -faddress-sanitizer only works with clang, but asan=1 implies clang=1 | 197 # -faddress-sanitizer only works with clang, but asan=1 implies clang=1 |
198 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre
sssanitizer | 198 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre
sssanitizer |
199 'asan%': 0, | 199 'asan%': 0, |
200 'asan_blacklist%': '<(PRODUCT_DIR)/../../third_party/asan/ignore.txt', | |
201 | 200 |
202 # Use the provided profiled order file to link Chrome image with it. | 201 # Use the provided profiled order file to link Chrome image with it. |
203 # This makes Chrome faster by better using CPU cache when executing code. | 202 # This makes Chrome faster by better using CPU cache when executing code. |
204 # This is known as PGO (profile guided optimization). | 203 # This is known as PGO (profile guided optimization). |
205 # See https://sites.google.com/a/google.com/chrome-msk/dev/boot-speed-up-e
ffort | 204 # See https://sites.google.com/a/google.com/chrome-msk/dev/boot-speed-up-e
ffort |
206 'order_text_section%' : "", | 205 'order_text_section%' : "", |
207 | 206 |
208 # Set to 1 compile with -fPIC cflag on linux. This is a must for shared | 207 # Set to 1 compile with -fPIC cflag on linux. This is a must for shared |
209 # libraries on linux x86-64 and arm, plus ASLR. | 208 # libraries on linux x86-64 and arm, plus ASLR. |
210 'linux_fpic%': 1, | 209 'linux_fpic%': 1, |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 'enable_one_click_signin%': '<(enable_one_click_signin)', | 475 'enable_one_click_signin%': '<(enable_one_click_signin)', |
477 'enable_webrtc%': '<(enable_webrtc)', | 476 'enable_webrtc%': '<(enable_webrtc)', |
478 'chromium_win_pch%': '<(chromium_win_pch)', | 477 'chromium_win_pch%': '<(chromium_win_pch)', |
479 'p2p_apis%': '<(p2p_apis)', | 478 'p2p_apis%': '<(p2p_apis)', |
480 'configuration_policy%': '<(configuration_policy)', | 479 'configuration_policy%': '<(configuration_policy)', |
481 'safe_browsing%': '<(safe_browsing)', | 480 'safe_browsing%': '<(safe_browsing)', |
482 'input_speech%': '<(input_speech)', | 481 'input_speech%': '<(input_speech)', |
483 'notifications%': '<(notifications)', | 482 'notifications%': '<(notifications)', |
484 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', | 483 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', |
485 'asan%': '<(asan)', | 484 'asan%': '<(asan)', |
486 'asan_blacklist%': '<(asan_blacklist)', | |
487 'order_text_section%': '<(order_text_section)', | 485 'order_text_section%': '<(order_text_section)', |
488 'enable_register_protocol_handler%': '<(enable_register_protocol_handler)', | 486 'enable_register_protocol_handler%': '<(enable_register_protocol_handler)', |
489 'enable_web_intents%': '<(enable_web_intents)', | 487 'enable_web_intents%': '<(enable_web_intents)', |
490 'enable_web_intents_tag%': '<(enable_web_intents_tag)', | 488 'enable_web_intents_tag%': '<(enable_web_intents_tag)', |
491 'enable_plugin_installation%': '<(enable_plugin_installation)', | 489 'enable_plugin_installation%': '<(enable_plugin_installation)', |
492 'enable_themes%': '<(enable_themes)', | 490 'enable_themes%': '<(enable_themes)', |
493 'linux_use_gold_binary%': '<(linux_use_gold_binary)', | 491 'linux_use_gold_binary%': '<(linux_use_gold_binary)', |
494 'linux_use_gold_flags%': '<(linux_use_gold_flags)', | 492 'linux_use_gold_flags%': '<(linux_use_gold_flags)', |
495 'use_canvas_skia%': '<(use_canvas_skia)', | 493 'use_canvas_skia%': '<(use_canvas_skia)', |
496 'tests_run%': '<(tests_run)', | 494 'tests_run%': '<(tests_run)', |
(...skipping 1580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2077 'cflags': [ | 2075 'cflags': [ |
2078 # See http://crbug.com/110262 | 2076 # See http://crbug.com/110262 |
2079 '-fcolor-diagnostics', | 2077 '-fcolor-diagnostics', |
2080 ], | 2078 ], |
2081 }], | 2079 }], |
2082 ['asan==1', { | 2080 ['asan==1', { |
2083 'cflags': [ | 2081 'cflags': [ |
2084 '-faddress-sanitizer', | 2082 '-faddress-sanitizer', |
2085 '-fno-omit-frame-pointer', | 2083 '-fno-omit-frame-pointer', |
2086 '-w', | 2084 '-w', |
2087 '-mllvm', '-asan-blacklist=<(asan_blacklist)', | |
2088 ], | 2085 ], |
2089 'ldflags': [ | 2086 'ldflags': [ |
2090 '-faddress-sanitizer', | 2087 '-faddress-sanitizer', |
2091 ], | 2088 ], |
2092 'defines': [ | 2089 'defines': [ |
2093 'ADDRESS_SANITIZER', | 2090 'ADDRESS_SANITIZER', |
2094 ], | 2091 ], |
2095 }], | 2092 }], |
2096 ['linux_breakpad==1', { | 2093 ['linux_breakpad==1', { |
2097 'cflags': [ '-g' ], | 2094 'cflags': [ '-g' ], |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2501 ['clang==1', { | 2498 ['clang==1', { |
2502 'variables': { | 2499 'variables': { |
2503 'clang_dir': '../third_party/llvm-build/Release+Asserts/bin', | 2500 'clang_dir': '../third_party/llvm-build/Release+Asserts/bin', |
2504 }, | 2501 }, |
2505 }], | 2502 }], |
2506 ['asan==1', { | 2503 ['asan==1', { |
2507 'xcode_settings': { | 2504 'xcode_settings': { |
2508 'OTHER_CFLAGS': [ | 2505 'OTHER_CFLAGS': [ |
2509 '-faddress-sanitizer', | 2506 '-faddress-sanitizer', |
2510 '-w', | 2507 '-w', |
2511 '-mllvm', '-asan-blacklist=<(asan_blacklist)', | |
2512 ], | 2508 ], |
2513 'OTHER_LDFLAGS': [ | 2509 'OTHER_LDFLAGS': [ |
2514 '-faddress-sanitizer', | 2510 '-faddress-sanitizer', |
2515 # The symbols below are referenced in the ASan runtime | 2511 # The symbols below are referenced in the ASan runtime |
2516 # library (compiled on OS X 10.6), but may be unavailable | 2512 # library (compiled on OS X 10.6), but may be unavailable |
2517 # on the prior OS X versions. Because Chromium is currently | 2513 # on the prior OS X versions. Because Chromium is currently |
2518 # targeting 10.5.0, we need to explicitly mark these | 2514 # targeting 10.5.0, we need to explicitly mark these |
2519 # symbols as dynamic_lookup. | 2515 # symbols as dynamic_lookup. |
2520 '-Wl,-U,_malloc_default_purgeable_zone', | 2516 '-Wl,-U,_malloc_default_purgeable_zone', |
2521 '-Wl,-U,_malloc_zone_memalign', | 2517 '-Wl,-U,_malloc_zone_memalign', |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2948 # settings in target dicts. SYMROOT is a special case, because many other | 2944 # settings in target dicts. SYMROOT is a special case, because many other |
2949 # Xcode variables depend on it, including variables such as | 2945 # Xcode variables depend on it, including variables such as |
2950 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 2946 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
2951 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 2947 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
2952 # files to appear (when present) in the UI as actual files and not red | 2948 # files to appear (when present) in the UI as actual files and not red |
2953 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 2949 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
2954 # and therefore SYMROOT, needs to be set at the project level. | 2950 # and therefore SYMROOT, needs to be set at the project level. |
2955 'SYMROOT': '<(DEPTH)/xcodebuild', | 2951 'SYMROOT': '<(DEPTH)/xcodebuild', |
2956 }, | 2952 }, |
2957 } | 2953 } |
OLD | NEW |