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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 'enable_one_click_signin%': '<(enable_one_click_signin)', | 593 'enable_one_click_signin%': '<(enable_one_click_signin)', |
588 'enable_webrtc%': '<(enable_webrtc)', | 594 'enable_webrtc%': '<(enable_webrtc)', |
589 'chromium_win_pch%': '<(chromium_win_pch)', | 595 'chromium_win_pch%': '<(chromium_win_pch)', |
590 'configuration_policy%': '<(configuration_policy)', | 596 'configuration_policy%': '<(configuration_policy)', |
591 'safe_browsing%': '<(safe_browsing)', | 597 'safe_browsing%': '<(safe_browsing)', |
592 'input_speech%': '<(input_speech)', | 598 'input_speech%': '<(input_speech)', |
593 'notifications%': '<(notifications)', | 599 'notifications%': '<(notifications)', |
594 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', | 600 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', |
595 'asan%': '<(asan)', | 601 'asan%': '<(asan)', |
596 'tsan%': '<(tsan)', | 602 'tsan%': '<(tsan)', |
| 603 'clang_type_profiler%': '<(clang_type_profiler)', |
597 'order_profiling%': '<(order_profiling)', | 604 'order_profiling%': '<(order_profiling)', |
598 'order_text_section%': '<(order_text_section)', | 605 'order_text_section%': '<(order_text_section)', |
599 'enable_extensions%': '<(enable_extensions)', | 606 'enable_extensions%': '<(enable_extensions)', |
600 'enable_web_intents%': '<(enable_web_intents)', | 607 'enable_web_intents%': '<(enable_web_intents)', |
601 'enable_web_intents_tag%': '<(enable_web_intents_tag)', | 608 'enable_web_intents_tag%': '<(enable_web_intents_tag)', |
602 'ios_sdk%': '<(ios_sdk)', | 609 'ios_sdk%': '<(ios_sdk)', |
603 'ios_deployment_target%': '<(ios_deployment_target)', | 610 'ios_deployment_target%': '<(ios_deployment_target)', |
604 'enable_plugin_installation%': '<(enable_plugin_installation)', | 611 'enable_plugin_installation%': '<(enable_plugin_installation)', |
605 'enable_protector_service%': '<(enable_protector_service)', | 612 'enable_protector_service%': '<(enable_protector_service)', |
606 'enable_session_service%': '<(enable_session_service)', | 613 'enable_session_service%': '<(enable_session_service)', |
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1212 'clang%': 1, | 1219 'clang%': 1, |
1213 }], | 1220 }], |
1214 ['asan==1 and OS=="mac"', { | 1221 ['asan==1 and OS=="mac"', { |
1215 # See http://crbug.com/145503. | 1222 # See http://crbug.com/145503. |
1216 'component': "static_library", | 1223 'component': "static_library", |
1217 }], | 1224 }], |
1218 ['tsan==1', { | 1225 ['tsan==1', { |
1219 'clang%': 1, | 1226 'clang%': 1, |
1220 }], | 1227 }], |
1221 | 1228 |
| 1229 ['OS=="linux" and clang_type_profiler==1', { |
| 1230 'clang%': 1, |
| 1231 'clang_use_chrome_plugins%': 0, |
| 1232 'make_clang_dir%': 'third_party/llvm-allocated-type/Linux_x64', |
| 1233 }], |
| 1234 |
1222 # On valgrind bots, override the optimizer settings so we don't inline too | 1235 # On valgrind bots, override the optimizer settings so we don't inline too |
1223 # much and make the stacks harder to figure out. | 1236 # much and make the stacks harder to figure out. |
1224 # | 1237 # |
1225 # TODO(rnk): Kill off variables that no one else uses and just implement | 1238 # TODO(rnk): Kill off variables that no one else uses and just implement |
1226 # them under a build_for_tool== condition. | 1239 # them under a build_for_tool== condition. |
1227 ['build_for_tool=="memcheck" or build_for_tool=="tsan"', { | 1240 ['build_for_tool=="memcheck" or build_for_tool=="tsan"', { |
1228 # gcc flags | 1241 # gcc flags |
1229 'mac_debug_optimization': '1', | 1242 'mac_debug_optimization': '1', |
1230 'mac_release_optimization': '1', | 1243 'mac_release_optimization': '1', |
1231 'release_optimize': '1', | 1244 'release_optimize': '1', |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1360 'mac_release_optimization%': 's', # Use -Os unless overridden | 1373 'mac_release_optimization%': 's', # Use -Os unless overridden |
1361 'mac_debug_optimization%': '0', # Use -O0 unless overridden | 1374 'mac_debug_optimization%': '0', # Use -O0 unless overridden |
1362 }, { | 1375 }, { |
1363 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.htm
l | 1376 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.htm
l |
1364 'mac_release_optimization%': '3', # Use -O3 unless overridden | 1377 'mac_release_optimization%': '3', # Use -O3 unless overridden |
1365 'mac_debug_optimization%': '0', # Use -O0 unless overridden | 1378 'mac_debug_optimization%': '0', # Use -O0 unless overridden |
1366 }], | 1379 }], |
1367 ], | 1380 ], |
1368 }, | 1381 }, |
1369 'conditions': [ | 1382 'conditions': [ |
| 1383 ['OS=="linux" and linux_use_tcmalloc==1 and clang_type_profiler==1', { |
| 1384 'cflags_cc!': ['-fno-rtti'], |
| 1385 'cflags_cc+': [ |
| 1386 '-frtti', |
| 1387 '-gline-tables-only', |
| 1388 '-fintercept-allocation-functions', |
| 1389 '-include ../../base/allocator/type_profiler.h', |
| 1390 ], |
| 1391 'defines': ['TYPE_PROFILING'], |
| 1392 'dependencies': [ |
| 1393 '<(DEPTH)/base/allocator/allocator.gyp:type_profiler', |
| 1394 ], |
| 1395 }], |
1370 ['OS=="win" and "<(msbuild_toolset)"!=""', { | 1396 ['OS=="win" and "<(msbuild_toolset)"!=""', { |
1371 'msbuild_toolset': '<(msbuild_toolset)', | 1397 'msbuild_toolset': '<(msbuild_toolset)', |
1372 }], | 1398 }], |
1373 ['branding=="Chrome"', { | 1399 ['branding=="Chrome"', { |
1374 'defines': ['GOOGLE_CHROME_BUILD'], | 1400 'defines': ['GOOGLE_CHROME_BUILD'], |
1375 }, { # else: branding!="Chrome" | 1401 }, { # else: branding!="Chrome" |
1376 'defines': ['CHROMIUM_BUILD'], | 1402 'defines': ['CHROMIUM_BUILD'], |
1377 }], | 1403 }], |
1378 ['OS=="mac" and component=="shared_library"', { | 1404 ['OS=="mac" and component=="shared_library"', { |
1379 'xcode_settings': { | 1405 'xcode_settings': { |
(...skipping 2039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3419 # settings in target dicts. SYMROOT is a special case, because many other | 3445 # settings in target dicts. SYMROOT is a special case, because many other |
3420 # Xcode variables depend on it, including variables such as | 3446 # Xcode variables depend on it, including variables such as |
3421 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3447 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3422 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3448 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3423 # files to appear (when present) in the UI as actual files and not red | 3449 # files to appear (when present) in the UI as actual files and not red |
3424 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3450 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3425 # and therefore SYMROOT, needs to be set at the project level. | 3451 # and therefore SYMROOT, needs to be set at the project level. |
3426 'SYMROOT': '<(DEPTH)/xcodebuild', | 3452 'SYMROOT': '<(DEPTH)/xcodebuild', |
3427 }, | 3453 }, |
3428 } | 3454 } |
OLD | NEW |