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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 # -fsanitize=thread only works with clang, but tsan=1 implies clang=1 | 310 # -fsanitize=thread only works with clang, but tsan=1 implies clang=1 |
311 # See http://clang.llvm.org/docs/ThreadSanitizer.html | 311 # See http://clang.llvm.org/docs/ThreadSanitizer.html |
312 'tsan%': 0, | 312 'tsan%': 0, |
313 'tsan_blacklist%': '<(PRODUCT_DIR)/../../tools/valgrind/tsan_v2/ignores.tx
t', | 313 'tsan_blacklist%': '<(PRODUCT_DIR)/../../tools/valgrind/tsan_v2/ignores.tx
t', |
314 | 314 |
315 # Enable building with MSAN (Clang's -fsanitize=memory option). | 315 # Enable building with MSAN (Clang's -fsanitize=memory option). |
316 # MemorySanitizer only works with clang, but msan=1 implies clang=1 | 316 # MemorySanitizer only works with clang, but msan=1 implies clang=1 |
317 # See http://clang.llvm.org/docs/MemorySanitizer.html | 317 # See http://clang.llvm.org/docs/MemorySanitizer.html |
318 'msan%': 0, | 318 'msan%': 0, |
319 | 319 |
| 320 # Use the dynamic libraries instrumented by one of the sanitizers |
| 321 # instead of the standard system libraries. |
| 322 'use_instrumented_libraries%': 0, |
| 323 |
320 # Use a modified version of Clang to intercept allocated types and sizes | 324 # Use a modified version of Clang to intercept allocated types and sizes |
321 # for allocated objects. clang_type_profiler=1 implies clang=1. | 325 # for allocated objects. clang_type_profiler=1 implies clang=1. |
322 # See http://dev.chromium.org/developers/deep-memory-profiler/cpp-object-t
ype-identifier | 326 # See http://dev.chromium.org/developers/deep-memory-profiler/cpp-object-t
ype-identifier |
323 # TODO(dmikurube): Support mac. See http://crbug.com/123758#c11 | 327 # TODO(dmikurube): Support mac. See http://crbug.com/123758#c11 |
324 'clang_type_profiler%': 0, | 328 'clang_type_profiler%': 0, |
325 | 329 |
326 # Set to true to instrument the code with function call logger. | 330 # Set to true to instrument the code with function call logger. |
327 # See src/third_party/cygprofile/cyg-profile.cc for details. | 331 # See src/third_party/cygprofile/cyg-profile.cc for details. |
328 'order_profiling%': 0, | 332 'order_profiling%': 0, |
329 | 333 |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 'safe_browsing%': '<(safe_browsing)', | 851 'safe_browsing%': '<(safe_browsing)', |
848 'input_speech%': '<(input_speech)', | 852 'input_speech%': '<(input_speech)', |
849 'notifications%': '<(notifications)', | 853 'notifications%': '<(notifications)', |
850 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', | 854 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', |
851 'mac_want_real_dsym%': '<(mac_want_real_dsym)', | 855 'mac_want_real_dsym%': '<(mac_want_real_dsym)', |
852 'asan%': '<(asan)', | 856 'asan%': '<(asan)', |
853 'lsan%': '<(lsan)', | 857 'lsan%': '<(lsan)', |
854 'msan%': '<(msan)', | 858 'msan%': '<(msan)', |
855 'tsan%': '<(tsan)', | 859 'tsan%': '<(tsan)', |
856 'tsan_blacklist%': '<(tsan_blacklist)', | 860 'tsan_blacklist%': '<(tsan_blacklist)', |
| 861 'use_instrumented_libraries%': '<(use_instrumented_libraries)', |
857 'clang_type_profiler%': '<(clang_type_profiler)', | 862 'clang_type_profiler%': '<(clang_type_profiler)', |
858 'order_profiling%': '<(order_profiling)', | 863 'order_profiling%': '<(order_profiling)', |
859 'order_text_section%': '<(order_text_section)', | 864 'order_text_section%': '<(order_text_section)', |
860 'enable_extensions%': '<(enable_extensions)', | 865 'enable_extensions%': '<(enable_extensions)', |
861 'enable_plugin_installation%': '<(enable_plugin_installation)', | 866 'enable_plugin_installation%': '<(enable_plugin_installation)', |
862 'enable_plugins%': '<(enable_plugins)', | 867 'enable_plugins%': '<(enable_plugins)', |
863 'enable_session_service%': '<(enable_session_service)', | 868 'enable_session_service%': '<(enable_session_service)', |
864 'enable_themes%': '<(enable_themes)', | 869 'enable_themes%': '<(enable_themes)', |
865 'enable_autofill_dialog%': '<(enable_autofill_dialog)', | 870 'enable_autofill_dialog%': '<(enable_autofill_dialog)', |
866 'enable_background%': '<(enable_background)', | 871 'enable_background%': '<(enable_background)', |
(...skipping 2535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3402 'target_conditions': [ | 3407 'target_conditions': [ |
3403 ['_type=="executable"', { | 3408 ['_type=="executable"', { |
3404 'ldflags': [ | 3409 'ldflags': [ |
3405 '-pie', | 3410 '-pie', |
3406 ], | 3411 ], |
3407 }], | 3412 }], |
3408 ], | 3413 ], |
3409 }], | 3414 }], |
3410 ], | 3415 ], |
3411 }], | 3416 }], |
| 3417 ['use_instrumented_libraries==1', { |
| 3418 'dependencies': [ |
| 3419 '<(DEPTH)/third_party/instrumented_libraries/instrumented_librarie
s.gyp:instrumented_libraries', |
| 3420 ], |
| 3421 'conditions': [ |
| 3422 ['asan==1', { |
| 3423 'target_conditions': [ |
| 3424 ['_toolset=="target"', { |
| 3425 'ldflags': [ |
| 3426 # Add RPATH to result binary to make it linking instrument
ed libraries ($ORIGIN means relative RPATH) |
| 3427 '-Wl,-R,\$$ORIGIN/instrumented_libraries/asan/lib/:\$$ORIG
IN/instrumented_libraries/asan/usr/lib/x86_64-linux-gnu/', |
| 3428 '-Wl,-z,origin', |
| 3429 ], |
| 3430 }], |
| 3431 ], |
| 3432 }], |
| 3433 ], |
| 3434 }], |
3412 ['order_profiling!=0 and (chromeos==1 or OS=="linux" or OS=="android")
', { | 3435 ['order_profiling!=0 and (chromeos==1 or OS=="linux" or OS=="android")
', { |
3413 'target_conditions' : [ | 3436 'target_conditions' : [ |
3414 ['_toolset=="target"', { | 3437 ['_toolset=="target"', { |
3415 'cflags': [ | 3438 'cflags': [ |
3416 '-finstrument-functions', | 3439 '-finstrument-functions', |
3417 # Allow mmx intrinsics to inline, so that the | 3440 # Allow mmx intrinsics to inline, so that the |
3418 #0 compiler can expand the intrinsics. | 3441 #0 compiler can expand the intrinsics. |
3419 '-finstrument-functions-exclude-file-list=mmintrin.h', | 3442 '-finstrument-functions-exclude-file-list=mmintrin.h', |
3420 ], | 3443 ], |
3421 }], | 3444 }], |
(...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4700 # settings in target dicts. SYMROOT is a special case, because many other | 4723 # settings in target dicts. SYMROOT is a special case, because many other |
4701 # Xcode variables depend on it, including variables such as | 4724 # Xcode variables depend on it, including variables such as |
4702 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4725 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4703 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4726 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4704 # files to appear (when present) in the UI as actual files and not red | 4727 # files to appear (when present) in the UI as actual files and not red |
4705 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4728 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4706 # and therefore SYMROOT, needs to be set at the project level. | 4729 # and therefore SYMROOT, needs to be set at the project level. |
4707 'SYMROOT': '<(DEPTH)/xcodebuild', | 4730 'SYMROOT': '<(DEPTH)/xcodebuild', |
4708 }, | 4731 }, |
4709 } | 4732 } |
OLD | NEW |