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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 | 363 |
364 # Enable building with MSAN (Clang's -fsanitize=memory option). | 364 # Enable building with MSAN (Clang's -fsanitize=memory option). |
365 # MemorySanitizer only works with clang, but msan=1 implies clang=1 | 365 # MemorySanitizer only works with clang, but msan=1 implies clang=1 |
366 # See http://clang.llvm.org/docs/MemorySanitizer.html | 366 # See http://clang.llvm.org/docs/MemorySanitizer.html |
367 'msan%': 0, | 367 'msan%': 0, |
368 | 368 |
369 # Use the dynamic libraries instrumented by one of the sanitizers | 369 # Use the dynamic libraries instrumented by one of the sanitizers |
370 # instead of the standard system libraries. | 370 # instead of the standard system libraries. |
371 'use_instrumented_libraries%': 0, | 371 'use_instrumented_libraries%': 0, |
372 | 372 |
| 373 # Use libc++ (third_party/libc++ and third_party/libc++abi) instead of |
| 374 # stdlibc++ as standard library. This is intended to use for instrumented |
| 375 # builds. |
| 376 'use_custom_libcxx%': 0, |
| 377 |
373 # Use a modified version of Clang to intercept allocated types and sizes | 378 # Use a modified version of Clang to intercept allocated types and sizes |
374 # for allocated objects. clang_type_profiler=1 implies clang=1. | 379 # for allocated objects. clang_type_profiler=1 implies clang=1. |
375 # See http://dev.chromium.org/developers/deep-memory-profiler/cpp-object-t
ype-identifier | 380 # See http://dev.chromium.org/developers/deep-memory-profiler/cpp-object-t
ype-identifier |
376 # TODO(dmikurube): Support mac. See http://crbug.com/123758#c11 | 381 # TODO(dmikurube): Support mac. See http://crbug.com/123758#c11 |
377 'clang_type_profiler%': 0, | 382 'clang_type_profiler%': 0, |
378 | 383 |
379 # Set to true to instrument the code with function call logger. | 384 # Set to true to instrument the code with function call logger. |
380 # See src/third_party/cygprofile/cyg-profile.cc for details. | 385 # See src/third_party/cygprofile/cyg-profile.cc for details. |
381 'order_profiling%': 0, | 386 'order_profiling%': 0, |
382 | 387 |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 'input_speech%': '<(input_speech)', | 931 'input_speech%': '<(input_speech)', |
927 'notifications%': '<(notifications)', | 932 'notifications%': '<(notifications)', |
928 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', | 933 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', |
929 'mac_want_real_dsym%': '<(mac_want_real_dsym)', | 934 'mac_want_real_dsym%': '<(mac_want_real_dsym)', |
930 'asan%': '<(asan)', | 935 'asan%': '<(asan)', |
931 'lsan%': '<(lsan)', | 936 'lsan%': '<(lsan)', |
932 'msan%': '<(msan)', | 937 'msan%': '<(msan)', |
933 'tsan%': '<(tsan)', | 938 'tsan%': '<(tsan)', |
934 'tsan_blacklist%': '<(tsan_blacklist)', | 939 'tsan_blacklist%': '<(tsan_blacklist)', |
935 'use_instrumented_libraries%': '<(use_instrumented_libraries)', | 940 'use_instrumented_libraries%': '<(use_instrumented_libraries)', |
| 941 'use_custom_libcxx%': '<(use_custom_libcxx)', |
936 'clang_type_profiler%': '<(clang_type_profiler)', | 942 'clang_type_profiler%': '<(clang_type_profiler)', |
937 'order_profiling%': '<(order_profiling)', | 943 'order_profiling%': '<(order_profiling)', |
938 'order_text_section%': '<(order_text_section)', | 944 'order_text_section%': '<(order_text_section)', |
939 'enable_extensions%': '<(enable_extensions)', | 945 'enable_extensions%': '<(enable_extensions)', |
940 'enable_plugin_installation%': '<(enable_plugin_installation)', | 946 'enable_plugin_installation%': '<(enable_plugin_installation)', |
941 'enable_plugins%': '<(enable_plugins)', | 947 'enable_plugins%': '<(enable_plugins)', |
942 'enable_session_service%': '<(enable_session_service)', | 948 'enable_session_service%': '<(enable_session_service)', |
943 'enable_themes%': '<(enable_themes)', | 949 'enable_themes%': '<(enable_themes)', |
944 'enable_autofill_dialog%': '<(enable_autofill_dialog)', | 950 'enable_autofill_dialog%': '<(enable_autofill_dialog)', |
945 'enable_background%': '<(enable_background)', | 951 'enable_background%': '<(enable_background)', |
(...skipping 2573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3519 ['_toolset=="target"', { | 3525 ['_toolset=="target"', { |
3520 'ldflags': [ | 3526 'ldflags': [ |
3521 '-Wl,-R,\$$ORIGIN/instrumented_libraries/msan/lib/:\$$ORIG
IN/instrumented_libraries/msan/usr/lib/x86_64-linux-gnu/', | 3527 '-Wl,-R,\$$ORIGIN/instrumented_libraries/msan/lib/:\$$ORIG
IN/instrumented_libraries/msan/usr/lib/x86_64-linux-gnu/', |
3522 '-Wl,-z,origin', | 3528 '-Wl,-z,origin', |
3523 ], | 3529 ], |
3524 }], | 3530 }], |
3525 ], | 3531 ], |
3526 }], | 3532 }], |
3527 ], | 3533 ], |
3528 }], | 3534 }], |
| 3535 ['use_custom_libcxx==1', { |
| 3536 'dependencies': [ |
| 3537 '<(DEPTH)/third_party/libc++/libc++.gyp:libc++', |
| 3538 '<(DEPTH)/third_party/libc++abi/libc++abi.gyp:libc++abi', |
| 3539 ], |
| 3540 }], |
3529 ['order_profiling!=0 and (chromeos==1 or OS=="linux" or OS=="android")
', { | 3541 ['order_profiling!=0 and (chromeos==1 or OS=="linux" or OS=="android")
', { |
3530 'target_conditions' : [ | 3542 'target_conditions' : [ |
3531 ['_toolset=="target"', { | 3543 ['_toolset=="target"', { |
3532 'cflags': [ | 3544 'cflags': [ |
3533 '-finstrument-functions', | 3545 '-finstrument-functions', |
3534 # Allow mmx intrinsics to inline, so that the | 3546 # Allow mmx intrinsics to inline, so that the |
3535 #0 compiler can expand the intrinsics. | 3547 #0 compiler can expand the intrinsics. |
3536 '-finstrument-functions-exclude-file-list=mmintrin.h', | 3548 '-finstrument-functions-exclude-file-list=mmintrin.h', |
3537 ], | 3549 ], |
3538 }], | 3550 }], |
(...skipping 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4784 # settings in target dicts. SYMROOT is a special case, because many other | 4796 # settings in target dicts. SYMROOT is a special case, because many other |
4785 # Xcode variables depend on it, including variables such as | 4797 # Xcode variables depend on it, including variables such as |
4786 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4798 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4787 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4799 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4788 # files to appear (when present) in the UI as actual files and not red | 4800 # files to appear (when present) in the UI as actual files and not red |
4789 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4801 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4790 # and therefore SYMROOT, needs to be set at the project level. | 4802 # and therefore SYMROOT, needs to be set at the project level. |
4791 'SYMROOT': '<(DEPTH)/xcodebuild', | 4803 'SYMROOT': '<(DEPTH)/xcodebuild', |
4792 }, | 4804 }, |
4793 } | 4805 } |
OLD | NEW |