Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Side by Side Diff: build/common.gypi

Issue 75213003: Add libc++ and libc++abi to third-party. (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 359
360 # Enable building with MSAN (Clang's -fsanitize=memory option). 360 # Enable building with MSAN (Clang's -fsanitize=memory option).
361 # MemorySanitizer only works with clang, but msan=1 implies clang=1 361 # MemorySanitizer only works with clang, but msan=1 implies clang=1
362 # See http://clang.llvm.org/docs/MemorySanitizer.html 362 # See http://clang.llvm.org/docs/MemorySanitizer.html
363 'msan%': 0, 363 'msan%': 0,
364 364
365 # Use the dynamic libraries instrumented by one of the sanitizers 365 # Use the dynamic libraries instrumented by one of the sanitizers
366 # instead of the standard system libraries. 366 # instead of the standard system libraries.
367 'use_instrumented_libraries%': 0, 367 'use_instrumented_libraries%': 0,
368 368
369 # Use libc++ instead of stdlibc++ as standard library for final binary.
370 'use_libcxx%': 0,
371
369 # Use a modified version of Clang to intercept allocated types and sizes 372 # Use a modified version of Clang to intercept allocated types and sizes
370 # for allocated objects. clang_type_profiler=1 implies clang=1. 373 # for allocated objects. clang_type_profiler=1 implies clang=1.
371 # See http://dev.chromium.org/developers/deep-memory-profiler/cpp-object-t ype-identifier 374 # See http://dev.chromium.org/developers/deep-memory-profiler/cpp-object-t ype-identifier
372 # TODO(dmikurube): Support mac. See http://crbug.com/123758#c11 375 # TODO(dmikurube): Support mac. See http://crbug.com/123758#c11
373 'clang_type_profiler%': 0, 376 'clang_type_profiler%': 0,
374 377
375 # Set to true to instrument the code with function call logger. 378 # Set to true to instrument the code with function call logger.
376 # See src/third_party/cygprofile/cyg-profile.cc for details. 379 # See src/third_party/cygprofile/cyg-profile.cc for details.
377 'order_profiling%': 0, 380 'order_profiling%': 0,
378 381
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 'input_speech%': '<(input_speech)', 924 'input_speech%': '<(input_speech)',
922 'notifications%': '<(notifications)', 925 'notifications%': '<(notifications)',
923 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', 926 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)',
924 'mac_want_real_dsym%': '<(mac_want_real_dsym)', 927 'mac_want_real_dsym%': '<(mac_want_real_dsym)',
925 'asan%': '<(asan)', 928 'asan%': '<(asan)',
926 'lsan%': '<(lsan)', 929 'lsan%': '<(lsan)',
927 'msan%': '<(msan)', 930 'msan%': '<(msan)',
928 'tsan%': '<(tsan)', 931 'tsan%': '<(tsan)',
929 'tsan_blacklist%': '<(tsan_blacklist)', 932 'tsan_blacklist%': '<(tsan_blacklist)',
930 'use_instrumented_libraries%': '<(use_instrumented_libraries)', 933 'use_instrumented_libraries%': '<(use_instrumented_libraries)',
934 'use_libcxx%': '<(use_libcxx)',
931 'clang_type_profiler%': '<(clang_type_profiler)', 935 'clang_type_profiler%': '<(clang_type_profiler)',
932 'order_profiling%': '<(order_profiling)', 936 'order_profiling%': '<(order_profiling)',
933 'order_text_section%': '<(order_text_section)', 937 'order_text_section%': '<(order_text_section)',
934 'enable_extensions%': '<(enable_extensions)', 938 'enable_extensions%': '<(enable_extensions)',
935 'enable_plugin_installation%': '<(enable_plugin_installation)', 939 'enable_plugin_installation%': '<(enable_plugin_installation)',
936 'enable_plugins%': '<(enable_plugins)', 940 'enable_plugins%': '<(enable_plugins)',
937 'enable_session_service%': '<(enable_session_service)', 941 'enable_session_service%': '<(enable_session_service)',
938 'enable_themes%': '<(enable_themes)', 942 'enable_themes%': '<(enable_themes)',
939 'enable_autofill_dialog%': '<(enable_autofill_dialog)', 943 'enable_autofill_dialog%': '<(enable_autofill_dialog)',
940 'enable_background%': '<(enable_background)', 944 'enable_background%': '<(enable_background)',
(...skipping 2560 matching lines...) Expand 10 before | Expand all | Expand 10 after
3501 ['_toolset=="target"', { 3505 ['_toolset=="target"', {
3502 'ldflags': [ 3506 'ldflags': [
3503 '-Wl,-R,\$$ORIGIN/instrumented_libraries/msan/lib/:\$$ORIG IN/instrumented_libraries/msan/usr/lib/x86_64-linux-gnu/', 3507 '-Wl,-R,\$$ORIGIN/instrumented_libraries/msan/lib/:\$$ORIG IN/instrumented_libraries/msan/usr/lib/x86_64-linux-gnu/',
3504 '-Wl,-z,origin', 3508 '-Wl,-z,origin',
3505 ], 3509 ],
3506 }], 3510 }],
3507 ], 3511 ],
3508 }], 3512 }],
3509 ], 3513 ],
3510 }], 3514 }],
3515 ['use_libcxx==1', {
3516 'dependencies': [
3517 '<(DEPTH)/third_party/libc++/libc++.gyp:libc++',
3518 '<(DEPTH)/third_party/libc++abi/libc++abi.gyp:libc++abi',
3519 ],
3520 }],
3511 ['order_profiling!=0 and (chromeos==1 or OS=="linux" or OS=="android") ', { 3521 ['order_profiling!=0 and (chromeos==1 or OS=="linux" or OS=="android") ', {
3512 'target_conditions' : [ 3522 'target_conditions' : [
3513 ['_toolset=="target"', { 3523 ['_toolset=="target"', {
3514 'cflags': [ 3524 'cflags': [
3515 '-finstrument-functions', 3525 '-finstrument-functions',
3516 # Allow mmx intrinsics to inline, so that the 3526 # Allow mmx intrinsics to inline, so that the
3517 #0 compiler can expand the intrinsics. 3527 #0 compiler can expand the intrinsics.
3518 '-finstrument-functions-exclude-file-list=mmintrin.h', 3528 '-finstrument-functions-exclude-file-list=mmintrin.h',
3519 ], 3529 ],
3520 }], 3530 }],
(...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after
4797 # settings in target dicts. SYMROOT is a special case, because many other 4807 # settings in target dicts. SYMROOT is a special case, because many other
4798 # Xcode variables depend on it, including variables such as 4808 # Xcode variables depend on it, including variables such as
4799 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4809 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4800 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4810 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4801 # files to appear (when present) in the UI as actual files and not red 4811 # files to appear (when present) in the UI as actual files and not red
4802 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4812 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4803 # and therefore SYMROOT, needs to be set at the project level. 4813 # and therefore SYMROOT, needs to be set at the project level.
4804 'SYMROOT': '<(DEPTH)/xcodebuild', 4814 'SYMROOT': '<(DEPTH)/xcodebuild',
4805 }, 4815 },
4806 } 4816 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698