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

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
« no previous file with comments | « DEPS ('k') | third_party/libc++/LICENSE.TXT » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
Nico 2013/12/10 17:47:30 Please add a warning to this comment that this is
alextaran1 2013/12/13 11:33:10 Anyway, it works without instrumentation too.
370 'use_libcxx%': 0,
Nico 2013/12/10 17:47:30 Call this "use_custom_libcxx" or similar to make c
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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 'input_speech%': '<(input_speech)', 926 'input_speech%': '<(input_speech)',
924 'notifications%': '<(notifications)', 927 'notifications%': '<(notifications)',
925 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', 928 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)',
926 'mac_want_real_dsym%': '<(mac_want_real_dsym)', 929 'mac_want_real_dsym%': '<(mac_want_real_dsym)',
927 'asan%': '<(asan)', 930 'asan%': '<(asan)',
928 'lsan%': '<(lsan)', 931 'lsan%': '<(lsan)',
929 'msan%': '<(msan)', 932 'msan%': '<(msan)',
930 'tsan%': '<(tsan)', 933 'tsan%': '<(tsan)',
931 'tsan_blacklist%': '<(tsan_blacklist)', 934 'tsan_blacklist%': '<(tsan_blacklist)',
932 'use_instrumented_libraries%': '<(use_instrumented_libraries)', 935 'use_instrumented_libraries%': '<(use_instrumented_libraries)',
936 'use_libcxx%': '<(use_libcxx)',
933 'clang_type_profiler%': '<(clang_type_profiler)', 937 'clang_type_profiler%': '<(clang_type_profiler)',
934 'order_profiling%': '<(order_profiling)', 938 'order_profiling%': '<(order_profiling)',
935 'order_text_section%': '<(order_text_section)', 939 'order_text_section%': '<(order_text_section)',
936 'enable_extensions%': '<(enable_extensions)', 940 'enable_extensions%': '<(enable_extensions)',
937 'enable_plugin_installation%': '<(enable_plugin_installation)', 941 'enable_plugin_installation%': '<(enable_plugin_installation)',
938 'enable_plugins%': '<(enable_plugins)', 942 'enable_plugins%': '<(enable_plugins)',
939 'enable_session_service%': '<(enable_session_service)', 943 'enable_session_service%': '<(enable_session_service)',
940 'enable_themes%': '<(enable_themes)', 944 'enable_themes%': '<(enable_themes)',
941 'enable_autofill_dialog%': '<(enable_autofill_dialog)', 945 'enable_autofill_dialog%': '<(enable_autofill_dialog)',
942 'enable_background%': '<(enable_background)', 946 'enable_background%': '<(enable_background)',
(...skipping 2565 matching lines...) Expand 10 before | Expand all | Expand 10 after
3508 ['_toolset=="target"', { 3512 ['_toolset=="target"', {
3509 'ldflags': [ 3513 'ldflags': [
3510 '-Wl,-R,\$$ORIGIN/instrumented_libraries/msan/lib/:\$$ORIG IN/instrumented_libraries/msan/usr/lib/x86_64-linux-gnu/', 3514 '-Wl,-R,\$$ORIGIN/instrumented_libraries/msan/lib/:\$$ORIG IN/instrumented_libraries/msan/usr/lib/x86_64-linux-gnu/',
3511 '-Wl,-z,origin', 3515 '-Wl,-z,origin',
3512 ], 3516 ],
3513 }], 3517 }],
3514 ], 3518 ],
3515 }], 3519 }],
3516 ], 3520 ],
3517 }], 3521 }],
3522 ['use_libcxx==1', {
3523 'dependencies': [
3524 '<(DEPTH)/third_party/libc++/libc++.gyp:libc++',
3525 '<(DEPTH)/third_party/libc++abi/libc++abi.gyp:libc++abi',
3526 ],
3527 }],
3518 ['order_profiling!=0 and (chromeos==1 or OS=="linux" or OS=="android") ', { 3528 ['order_profiling!=0 and (chromeos==1 or OS=="linux" or OS=="android") ', {
3519 'target_conditions' : [ 3529 'target_conditions' : [
3520 ['_toolset=="target"', { 3530 ['_toolset=="target"', {
3521 'cflags': [ 3531 'cflags': [
3522 '-finstrument-functions', 3532 '-finstrument-functions',
3523 # Allow mmx intrinsics to inline, so that the 3533 # Allow mmx intrinsics to inline, so that the
3524 #0 compiler can expand the intrinsics. 3534 #0 compiler can expand the intrinsics.
3525 '-finstrument-functions-exclude-file-list=mmintrin.h', 3535 '-finstrument-functions-exclude-file-list=mmintrin.h',
3526 ], 3536 ],
3527 }], 3537 }],
(...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after
4804 # settings in target dicts. SYMROOT is a special case, because many other 4814 # settings in target dicts. SYMROOT is a special case, because many other
4805 # Xcode variables depend on it, including variables such as 4815 # Xcode variables depend on it, including variables such as
4806 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4816 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4807 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4817 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4808 # files to appear (when present) in the UI as actual files and not red 4818 # files to appear (when present) in the UI as actual files and not red
4809 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4819 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4810 # and therefore SYMROOT, needs to be set at the project level. 4820 # and therefore SYMROOT, needs to be set at the project level.
4811 'SYMROOT': '<(DEPTH)/xcodebuild', 4821 'SYMROOT': '<(DEPTH)/xcodebuild',
4812 }, 4822 },
4813 } 4823 }
OLDNEW
« no previous file with comments | « DEPS ('k') | third_party/libc++/LICENSE.TXT » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698