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