| 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 1335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2850 'defines': ['DCHECK_ALWAYS_ON=1'], | 2846 'defines': ['DCHECK_ALWAYS_ON=1'], |
| 2851 }], # dcheck_always_on!=0 | 2847 }], # dcheck_always_on!=0 |
| 2852 ['tracing_like_official_build!=0', { | 2848 ['tracing_like_official_build!=0', { |
| 2853 'defines': ['TRACING_IS_OFFICIAL_BUILD=1'], | 2849 'defines': ['TRACING_IS_OFFICIAL_BUILD=1'], |
| 2854 }], # tracing_like_official_build!=0 | 2850 }], # tracing_like_official_build!=0 |
| 2855 ['fieldtrial_testing_like_official_build==0 and branding!="Chrome"', { | 2851 ['fieldtrial_testing_like_official_build==0 and branding!="Chrome"', { |
| 2856 'defines': ['FIELDTRIAL_TESTING_ENABLED'], | 2852 'defines': ['FIELDTRIAL_TESTING_ENABLED'], |
| 2857 }], # fieldtrial_testing_like_official_build==0 and branding!="Chrome" | 2853 }], # fieldtrial_testing_like_official_build==0 and branding!="Chrome" |
| 2858 ['OS=="win"', { | 2854 ['OS=="win"', { |
| 2859 'defines': ['NO_TCMALLOC'], | 2855 'defines': ['NO_TCMALLOC'], |
| 2860 'conditions': [ | |
| 2861 ['win_use_allocator_shim==1', { | |
| 2862 'defines': ['ALLOCATOR_SHIM'], | |
| 2863 }], | |
| 2864 ], | |
| 2865 }], | 2856 }], |
| 2866 ['asan==1', { | 2857 ['asan==1', { |
| 2867 'defines': [ | 2858 'defines': [ |
| 2868 'ADDRESS_SANITIZER', | 2859 'ADDRESS_SANITIZER', |
| 2869 'MEMORY_TOOL_REPLACES_ALLOCATOR', | 2860 'MEMORY_TOOL_REPLACES_ALLOCATOR', |
| 2870 'MEMORY_SANITIZER_INITIAL_SIZE', | 2861 'MEMORY_SANITIZER_INITIAL_SIZE', |
| 2871 ], | 2862 ], |
| 2872 }], | 2863 }], |
| 2873 ['syzyasan==1', { | 2864 ['syzyasan==1', { |
| 2874 # SyzyAsan needs /PROFILE turned on to produce appropriate pdbs. | 2865 # SyzyAsan needs /PROFILE turned on to produce appropriate pdbs. |
| (...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3522 'DYNAMIC_ANNOTATIONS_ENABLED=0', | 3513 'DYNAMIC_ANNOTATIONS_ENABLED=0', |
| 3523 ], | 3514 ], |
| 3524 }, { | 3515 }, { |
| 3525 'defines': [ | 3516 'defines': [ |
| 3526 'MEMORY_TOOL_REPLACES_ALLOCATOR', | 3517 'MEMORY_TOOL_REPLACES_ALLOCATOR', |
| 3527 'MEMORY_SANITIZER_INITIAL_SIZE', | 3518 'MEMORY_SANITIZER_INITIAL_SIZE', |
| 3528 'DYNAMIC_ANNOTATIONS_ENABLED=1', | 3519 'DYNAMIC_ANNOTATIONS_ENABLED=1', |
| 3529 'WTF_USE_DYNAMIC_ANNOTATIONS=1', | 3520 'WTF_USE_DYNAMIC_ANNOTATIONS=1', |
| 3530 ], | 3521 ], |
| 3531 }], | 3522 }], |
| 3532 ['OS=="win"', { | 3523 ['OS=="win" and win_use_allocator_shim==1', { |
| 3533 'defines': ['NO_TCMALLOC'], | 3524 'defines': [ |
| 3525 'ALLOCATOR_SHIM' |
| 3526 ], |
| 3534 }], | 3527 }], |
| 3535 # _FORTIFY_SOURCE isn't really supported by Clang now, see | 3528 # _FORTIFY_SOURCE isn't really supported by Clang now, see |
| 3536 # http://llvm.org/bugs/show_bug.cgi?id=16821. | 3529 # http://llvm.org/bugs/show_bug.cgi?id=16821. |
| 3537 # It seems to work fine with Ubuntu 12 headers though, so use it | 3530 # It seems to work fine with Ubuntu 12 headers though, so use it |
| 3538 # in official builds. | 3531 # in official builds. |
| 3539 ['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")', { | 3532 ['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")', { |
| 3540 'target_conditions': [ | 3533 'target_conditions': [ |
| 3541 ['chromium_code==1', { | 3534 ['chromium_code==1', { |
| 3542 # Non-chromium code is not guaranteed to compile cleanly | 3535 # Non-chromium code is not guaranteed to compile cleanly |
| 3543 # with _FORTIFY_SOURCE. Also, fortified build may fail | 3536 # with _FORTIFY_SOURCE. Also, fortified build may fail |
| (...skipping 2839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6383 # settings in target dicts. SYMROOT is a special case, because many other | 6376 # settings in target dicts. SYMROOT is a special case, because many other |
| 6384 # Xcode variables depend on it, including variables such as | 6377 # Xcode variables depend on it, including variables such as |
| 6385 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6378 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 6386 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6379 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 6387 # files to appear (when present) in the UI as actual files and not red | 6380 # files to appear (when present) in the UI as actual files and not red |
| 6388 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6381 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 6389 # and therefore SYMROOT, needs to be set at the project level. | 6382 # and therefore SYMROOT, needs to be set at the project level. |
| 6390 'SYMROOT': '<(DEPTH)/xcodebuild', | 6383 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 6391 }, | 6384 }, |
| 6392 } | 6385 } |
| OLD | NEW |