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

Side by Side Diff: build/common.gypi

Issue 1837723002: DO NOT COMMIT - nacl allocator test CL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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 | « base/process/memory_unittest.cc ('k') | build/toolchain/gcc_toolchain.gni » ('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 1335 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 1346
1347 # EMMA filter string consisting of a list of inclusion/exclusion patterns 1347 # EMMA filter string consisting of a list of inclusion/exclusion patterns
1348 # separated with whitespace and/or comma. Only has effect if 1348 # separated with whitespace and/or comma. Only has effect if
1349 # 'emma_coverage=1'. 1349 # 'emma_coverage=1'.
1350 'emma_filter%': '', 1350 'emma_filter%': '',
1351 1351
1352 # Set to 1 to enable running Android lint on java/class files. 1352 # Set to 1 to enable running Android lint on java/class files.
1353 'android_lint%': 1, 1353 'android_lint%': 1,
1354 1354
1355 # Although base/allocator lets you select a heap library via an 1355 # Although base/allocator lets you select a heap library via an
1356 # environment variable, the libcmt shim it uses sometimes gets in 1356 # environment variable, the shim it uses sometimes gets in the way.
1357 # the way. To disable it entirely, and switch to normal msvcrt, do e.g. 1357 # To disable it entirely, and switch to normal msvcrt, do e.g.
1358 # 'win_use_allocator_shim': 0, 1358 # 'win_use_allocator_shim': 0,
1359 # 'win_release_RuntimeLibrary': 2 1359 # 'win_release_RuntimeLibrary': 2
1360 # to ~/.gyp/include.gypi, gclient runhooks --force, and do a release build. 1360 # to ~/.gyp/include.gypi, gclient runhooks --force, and do a release build.
1361 'win_use_allocator_shim%': 1, # 1 = shim allocator via libcmt; 0 = msvcrt 1361 'win_use_allocator_shim%': 1, # 1 = shim allocator; 0 = msvcrt
1362 1362
1363 # Enables the unified allocator shim (experimental) which routes all the 1363 # Enables the unified allocator shim (experimental) which routes all the
1364 # alloc calls to base/. Right now is supported on Linux Desktop only. 1364 # alloc calls to base/. Right now is supported on Linux Desktop only.
1365 # http://crbug.com/550886 . 1365 # http://crbug.com/550886 .
1366 'use_experimental_allocator_shim%': 0, 1366 'use_experimental_allocator_shim%': 0,
1367 1367
1368 # TODO(bradnelson): eliminate this when possible. 1368 # TODO(bradnelson): eliminate this when possible.
1369 # To allow local gyp files to prevent release.vsprops from being included. 1369 # To allow local gyp files to prevent release.vsprops from being included.
1370 # Yes(1) means include release.vsprops. 1370 # Yes(1) means include release.vsprops.
1371 # Once all vsprops settings are migrated into gyp, this can go away. 1371 # Once all vsprops settings are migrated into gyp, this can go away.
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
2009 ], 2009 ],
2010 }], # OS=="mac" or OS=="ios" 2010 }], # OS=="mac" or OS=="ios"
2011 ['OS=="win"', { 2011 ['OS=="win"', {
2012 'conditions': [ 2012 'conditions': [
2013 # This is the architecture convention used in WinSDK paths. 2013 # This is the architecture convention used in WinSDK paths.
2014 ['target_arch=="ia32"', { 2014 ['target_arch=="ia32"', {
2015 'winsdk_arch%': 'x86', 2015 'winsdk_arch%': 'x86',
2016 },{ 2016 },{
2017 'winsdk_arch%': '<(target_arch)', 2017 'winsdk_arch%': '<(target_arch)',
2018 }], 2018 }],
2019 ['component=="shared_library" or MSVS_VERSION == "2015"', { 2019 ['component=="shared_library"', {
2020 # TODO(scottmg): The allocator shimming doesn't work on the 2015 CRT
2021 # and we are hoping to be able to remove it if an additional feature
2022 # lands in the 2015 CRT API. For now, don't shim and revisit once
2023 # VS2015 is RTM: http://crbug.com/481611.
2024 'win_use_allocator_shim%': 0, 2020 'win_use_allocator_shim%': 0,
2025 }], 2021 }],
2026 ['component=="static_library"', { 2022 ['component=="static_library"', {
2027 # Turn on multiple dll by default on Windows when in static_library. 2023 # Turn on multiple dll by default on Windows when in static_library.
2028 'chrome_multiple_dll%': 1, 2024 'chrome_multiple_dll%': 1,
2029 }], 2025 }],
2030 ['asan==1 or syzyasan==1', { 2026 ['asan==1 or syzyasan==1', {
2031 'win_use_allocator_shim%': 0, 2027 'win_use_allocator_shim%': 0,
2032 }], 2028 }],
2033 # The AddressSanitizer build should be a console program as it prints 2029 # The AddressSanitizer build should be a console program as it prints
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
2859 'defines': ['DCHECK_ALWAYS_ON=1'], 2855 'defines': ['DCHECK_ALWAYS_ON=1'],
2860 }], # dcheck_always_on!=0 2856 }], # dcheck_always_on!=0
2861 ['tracing_like_official_build!=0', { 2857 ['tracing_like_official_build!=0', {
2862 'defines': ['TRACING_IS_OFFICIAL_BUILD=1'], 2858 'defines': ['TRACING_IS_OFFICIAL_BUILD=1'],
2863 }], # tracing_like_official_build!=0 2859 }], # tracing_like_official_build!=0
2864 ['fieldtrial_testing_like_official_build==0 and branding!="Chrome"', { 2860 ['fieldtrial_testing_like_official_build==0 and branding!="Chrome"', {
2865 'defines': ['FIELDTRIAL_TESTING_ENABLED'], 2861 'defines': ['FIELDTRIAL_TESTING_ENABLED'],
2866 }], # fieldtrial_testing_like_official_build==0 and branding!="Chrome" 2862 }], # fieldtrial_testing_like_official_build==0 and branding!="Chrome"
2867 ['OS=="win"', { 2863 ['OS=="win"', {
2868 'defines': ['NO_TCMALLOC'], 2864 'defines': ['NO_TCMALLOC'],
2869 'conditions': [
2870 ['win_use_allocator_shim==1', {
2871 'defines': ['ALLOCATOR_SHIM'],
2872 }],
2873 ],
2874 }], 2865 }],
2875 ['asan==1', { 2866 ['asan==1', {
2876 'defines': [ 2867 'defines': [
2877 'ADDRESS_SANITIZER', 2868 'ADDRESS_SANITIZER',
2878 'MEMORY_TOOL_REPLACES_ALLOCATOR', 2869 'MEMORY_TOOL_REPLACES_ALLOCATOR',
2879 'MEMORY_SANITIZER_INITIAL_SIZE', 2870 'MEMORY_SANITIZER_INITIAL_SIZE',
2880 ], 2871 ],
2881 }], 2872 }],
2882 ['syzyasan==1', { 2873 ['syzyasan==1', {
2883 # SyzyAsan needs /PROFILE turned on to produce appropriate pdbs. 2874 # SyzyAsan needs /PROFILE turned on to produce appropriate pdbs.
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
3531 'DYNAMIC_ANNOTATIONS_ENABLED=0', 3522 'DYNAMIC_ANNOTATIONS_ENABLED=0',
3532 ], 3523 ],
3533 }, { 3524 }, {
3534 'defines': [ 3525 'defines': [
3535 'MEMORY_TOOL_REPLACES_ALLOCATOR', 3526 'MEMORY_TOOL_REPLACES_ALLOCATOR',
3536 'MEMORY_SANITIZER_INITIAL_SIZE', 3527 'MEMORY_SANITIZER_INITIAL_SIZE',
3537 'DYNAMIC_ANNOTATIONS_ENABLED=1', 3528 'DYNAMIC_ANNOTATIONS_ENABLED=1',
3538 'WTF_USE_DYNAMIC_ANNOTATIONS=1', 3529 'WTF_USE_DYNAMIC_ANNOTATIONS=1',
3539 ], 3530 ],
3540 }], 3531 }],
3541 ['OS=="win"', { 3532 ['OS=="win" and win_use_allocator_shim==1', {
3542 'defines': ['NO_TCMALLOC'], 3533 'defines': [
3534 'ALLOCATOR_SHIM'
3535 ],
3543 }], 3536 }],
3544 # _FORTIFY_SOURCE isn't really supported by Clang now, see 3537 # _FORTIFY_SOURCE isn't really supported by Clang now, see
3545 # http://llvm.org/bugs/show_bug.cgi?id=16821. 3538 # http://llvm.org/bugs/show_bug.cgi?id=16821.
3546 # It seems to work fine with Ubuntu 12 headers though, so use it 3539 # It seems to work fine with Ubuntu 12 headers though, so use it
3547 # in official builds. 3540 # in official builds.
3548 ['os_posix==1 and (asan!=1 and msan!=1 and tsan!=1 and lsan!=1 and ubs an!=1) and (OS!="linux" or clang!=1 or buildtype=="Official")', { 3541 ['os_posix==1 and (asan!=1 and msan!=1 and tsan!=1 and lsan!=1 and ubs an!=1) and (OS!="linux" or clang!=1 or buildtype=="Official")', {
3549 'target_conditions': [ 3542 'target_conditions': [
3550 ['chromium_code==1', { 3543 ['chromium_code==1', {
3551 # Non-chromium code is not guaranteed to compile cleanly 3544 # Non-chromium code is not guaranteed to compile cleanly
3552 # with _FORTIFY_SOURCE. Also, fortified build may fail 3545 # with _FORTIFY_SOURCE. Also, fortified build may fail
(...skipping 2827 matching lines...) Expand 10 before | Expand all | Expand 10 after
6380 # settings in target dicts. SYMROOT is a special case, because many other 6373 # settings in target dicts. SYMROOT is a special case, because many other
6381 # Xcode variables depend on it, including variables such as 6374 # Xcode variables depend on it, including variables such as
6382 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 6375 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
6383 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 6376 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
6384 # files to appear (when present) in the UI as actual files and not red 6377 # files to appear (when present) in the UI as actual files and not red
6385 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 6378 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
6386 # and therefore SYMROOT, needs to be set at the project level. 6379 # and therefore SYMROOT, needs to be set at the project level.
6387 'SYMROOT': '<(DEPTH)/xcodebuild', 6380 'SYMROOT': '<(DEPTH)/xcodebuild',
6388 }, 6381 },
6389 } 6382 }
OLDNEW
« no previous file with comments | « base/process/memory_unittest.cc ('k') | build/toolchain/gcc_toolchain.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698