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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 # Enable building with ASAN (Clang's -faddress-sanitizer option). | 246 # Enable building with ASAN (Clang's -faddress-sanitizer option). |
247 # -faddress-sanitizer only works with clang, but asan=1 implies clang=1 | 247 # -faddress-sanitizer only works with clang, but asan=1 implies clang=1 |
248 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre
sssanitizer | 248 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre
sssanitizer |
249 'asan%': 0, | 249 'asan%': 0, |
250 | 250 |
251 # Enable building with TSAN (Clang's -fthread-sanitizer option). | 251 # Enable building with TSAN (Clang's -fthread-sanitizer option). |
252 # -fthread-sanitizer only works with clang, but tsan=1 implies clang=1 | 252 # -fthread-sanitizer only works with clang, but tsan=1 implies clang=1 |
253 # See http://clang.llvm.org/docs/ThreadSanitizer.html | 253 # See http://clang.llvm.org/docs/ThreadSanitizer.html |
254 'tsan%': 0, | 254 'tsan%': 0, |
255 | 255 |
| 256 # Use a modified version of Clang to intercept allocated types and sizes |
| 257 # for allocated objects. clang_type_profiler=1 implies clang=1. |
| 258 # See http://dev.chromium.org/developers/deep-memory-profiler/cpp-object-t
ype-identifier |
| 259 # TODO(dmikurube): Support mac. See http://crbug.com/123758#c11 |
| 260 'clang_type_profiler%': 0, |
| 261 |
256 # Set to true to instrument the code with function call logger. | 262 # Set to true to instrument the code with function call logger. |
257 # See src/third_party/cygprofile/cyg-profile.cc for details. | 263 # See src/third_party/cygprofile/cyg-profile.cc for details. |
258 'order_profiling%': 0, | 264 'order_profiling%': 0, |
259 | 265 |
260 # Use the provided profiled order file to link Chrome image with it. | 266 # Use the provided profiled order file to link Chrome image with it. |
261 # This makes Chrome faster by better using CPU cache when executing code. | 267 # This makes Chrome faster by better using CPU cache when executing code. |
262 # This is known as PGO (profile guided optimization). | 268 # This is known as PGO (profile guided optimization). |
263 # See https://sites.google.com/a/google.com/chrome-msk/dev/boot-speed-up-e
ffort | 269 # See https://sites.google.com/a/google.com/chrome-msk/dev/boot-speed-up-e
ffort |
264 'order_text_section%' : "", | 270 'order_text_section%' : "", |
265 | 271 |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 'enable_one_click_signin%': '<(enable_one_click_signin)', | 594 'enable_one_click_signin%': '<(enable_one_click_signin)', |
589 'enable_webrtc%': '<(enable_webrtc)', | 595 'enable_webrtc%': '<(enable_webrtc)', |
590 'chromium_win_pch%': '<(chromium_win_pch)', | 596 'chromium_win_pch%': '<(chromium_win_pch)', |
591 'configuration_policy%': '<(configuration_policy)', | 597 'configuration_policy%': '<(configuration_policy)', |
592 'safe_browsing%': '<(safe_browsing)', | 598 'safe_browsing%': '<(safe_browsing)', |
593 'input_speech%': '<(input_speech)', | 599 'input_speech%': '<(input_speech)', |
594 'notifications%': '<(notifications)', | 600 'notifications%': '<(notifications)', |
595 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', | 601 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', |
596 'asan%': '<(asan)', | 602 'asan%': '<(asan)', |
597 'tsan%': '<(tsan)', | 603 'tsan%': '<(tsan)', |
| 604 'clang_type_profiler%': '<(clang_type_profiler)', |
598 'order_profiling%': '<(order_profiling)', | 605 'order_profiling%': '<(order_profiling)', |
599 'order_text_section%': '<(order_text_section)', | 606 'order_text_section%': '<(order_text_section)', |
600 'enable_extensions%': '<(enable_extensions)', | 607 'enable_extensions%': '<(enable_extensions)', |
601 'enable_web_intents%': '<(enable_web_intents)', | 608 'enable_web_intents%': '<(enable_web_intents)', |
602 'enable_web_intents_tag%': '<(enable_web_intents_tag)', | 609 'enable_web_intents_tag%': '<(enable_web_intents_tag)', |
603 'ios_sdk%': '<(ios_sdk)', | 610 'ios_sdk%': '<(ios_sdk)', |
604 'ios_deployment_target%': '<(ios_deployment_target)', | 611 'ios_deployment_target%': '<(ios_deployment_target)', |
605 'enable_plugin_installation%': '<(enable_plugin_installation)', | 612 'enable_plugin_installation%': '<(enable_plugin_installation)', |
606 'enable_protector_service%': '<(enable_protector_service)', | 613 'enable_protector_service%': '<(enable_protector_service)', |
607 'enable_session_service%': '<(enable_session_service)', | 614 'enable_session_service%': '<(enable_session_service)', |
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1206 'clang%': 1, | 1213 'clang%': 1, |
1207 }], | 1214 }], |
1208 ['asan==1 and OS=="mac"', { | 1215 ['asan==1 and OS=="mac"', { |
1209 # See http://crbug.com/145503. | 1216 # See http://crbug.com/145503. |
1210 'component': "static_library", | 1217 'component': "static_library", |
1211 }], | 1218 }], |
1212 ['tsan==1', { | 1219 ['tsan==1', { |
1213 'clang%': 1, | 1220 'clang%': 1, |
1214 }], | 1221 }], |
1215 | 1222 |
| 1223 ['OS=="linux" and clang_type_profiler==1', { |
| 1224 'clang%': 1, |
| 1225 'clang_use_chrome_plugins%': 0, |
| 1226 'make_clang_dir%': 'third_party/llvm-allocated-type/Linux_x64', |
| 1227 }], |
| 1228 |
1216 # On valgrind bots, override the optimizer settings so we don't inline too | 1229 # On valgrind bots, override the optimizer settings so we don't inline too |
1217 # much and make the stacks harder to figure out. | 1230 # much and make the stacks harder to figure out. |
1218 # | 1231 # |
1219 # TODO(rnk): Kill off variables that no one else uses and just implement | 1232 # TODO(rnk): Kill off variables that no one else uses and just implement |
1220 # them under a build_for_tool== condition. | 1233 # them under a build_for_tool== condition. |
1221 ['build_for_tool=="memcheck" or build_for_tool=="tsan"', { | 1234 ['build_for_tool=="memcheck" or build_for_tool=="tsan"', { |
1222 # gcc flags | 1235 # gcc flags |
1223 'mac_debug_optimization': '1', | 1236 'mac_debug_optimization': '1', |
1224 'mac_release_optimization': '1', | 1237 'mac_release_optimization': '1', |
1225 'release_optimize': '1', | 1238 'release_optimize': '1', |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1356 'mac_release_optimization%': 's', # Use -Os unless overridden | 1369 'mac_release_optimization%': 's', # Use -Os unless overridden |
1357 'mac_debug_optimization%': '0', # Use -O0 unless overridden | 1370 'mac_debug_optimization%': '0', # Use -O0 unless overridden |
1358 }, { | 1371 }, { |
1359 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.htm
l | 1372 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.htm
l |
1360 'mac_release_optimization%': '3', # Use -O3 unless overridden | 1373 'mac_release_optimization%': '3', # Use -O3 unless overridden |
1361 'mac_debug_optimization%': '0', # Use -O0 unless overridden | 1374 'mac_debug_optimization%': '0', # Use -O0 unless overridden |
1362 }], | 1375 }], |
1363 ], | 1376 ], |
1364 }, | 1377 }, |
1365 'conditions': [ | 1378 'conditions': [ |
| 1379 ['OS=="linux" and linux_use_tcmalloc==1 and clang_type_profiler==1', { |
| 1380 'cflags_cc!': ['-fno-rtti'], |
| 1381 'cflags_cc+': [ |
| 1382 '-frtti', |
| 1383 '-gline-tables-only', |
| 1384 '-fintercept-allocation-functions', |
| 1385 ], |
| 1386 'defines': ['TYPE_PROFILING'], |
| 1387 'dependencies': [ |
| 1388 '<(DEPTH)/base/allocator/allocator.gyp:type_profiler', |
| 1389 ], |
| 1390 }], |
1366 ['OS=="win" and "<(msbuild_toolset)"!=""', { | 1391 ['OS=="win" and "<(msbuild_toolset)"!=""', { |
1367 'msbuild_toolset': '<(msbuild_toolset)', | 1392 'msbuild_toolset': '<(msbuild_toolset)', |
1368 }], | 1393 }], |
1369 ['branding=="Chrome"', { | 1394 ['branding=="Chrome"', { |
1370 'defines': ['GOOGLE_CHROME_BUILD'], | 1395 'defines': ['GOOGLE_CHROME_BUILD'], |
1371 }, { # else: branding!="Chrome" | 1396 }, { # else: branding!="Chrome" |
1372 'defines': ['CHROMIUM_BUILD'], | 1397 'defines': ['CHROMIUM_BUILD'], |
1373 }], | 1398 }], |
1374 ['OS=="mac" and component=="shared_library"', { | 1399 ['OS=="mac" and component=="shared_library"', { |
1375 'xcode_settings': { | 1400 'xcode_settings': { |
(...skipping 2040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3416 # settings in target dicts. SYMROOT is a special case, because many other | 3441 # settings in target dicts. SYMROOT is a special case, because many other |
3417 # Xcode variables depend on it, including variables such as | 3442 # Xcode variables depend on it, including variables such as |
3418 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3443 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3419 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3444 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3420 # files to appear (when present) in the UI as actual files and not red | 3445 # files to appear (when present) in the UI as actual files and not red |
3421 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3446 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3422 # and therefore SYMROOT, needs to be set at the project level. | 3447 # and therefore SYMROOT, needs to be set at the project level. |
3423 'SYMROOT': '<(DEPTH)/xcodebuild', | 3448 'SYMROOT': '<(DEPTH)/xcodebuild', |
3424 }, | 3449 }, |
3425 } | 3450 } |
OLD | NEW |