| 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 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1251 | 1251 |
| 1252 # Set to 1 to enable running Android lint on java/class files. | 1252 # Set to 1 to enable running Android lint on java/class files. |
| 1253 'android_lint%': 1, | 1253 'android_lint%': 1, |
| 1254 | 1254 |
| 1255 # Although base/allocator lets you select a heap library via an | 1255 # Although base/allocator lets you select a heap library via an |
| 1256 # environment variable, the libcmt shim it uses sometimes gets in | 1256 # environment variable, the libcmt shim it uses sometimes gets in |
| 1257 # the way. To disable it entirely, and switch to normal msvcrt, do e.g. | 1257 # the way. To disable it entirely, and switch to normal msvcrt, do e.g. |
| 1258 # 'win_use_allocator_shim': 0, | 1258 # 'win_use_allocator_shim': 0, |
| 1259 # 'win_release_RuntimeLibrary': 2 | 1259 # 'win_release_RuntimeLibrary': 2 |
| 1260 # to ~/.gyp/include.gypi, gclient runhooks --force, and do a release build. | 1260 # to ~/.gyp/include.gypi, gclient runhooks --force, and do a release build. |
| 1261 'win_use_allocator_shim%': 0, # 1 = shim allocator via libcmt; 0 = msvcrt | 1261 'win_use_allocator_shim%': 1, # 1 = shim allocator via libcmt; 0 = msvcrt |
| 1262 | 1262 |
| 1263 # TODO(bradnelson): eliminate this when possible. | 1263 # TODO(bradnelson): eliminate this when possible. |
| 1264 # To allow local gyp files to prevent release.vsprops from being included. | 1264 # To allow local gyp files to prevent release.vsprops from being included. |
| 1265 # Yes(1) means include release.vsprops. | 1265 # Yes(1) means include release.vsprops. |
| 1266 # Once all vsprops settings are migrated into gyp, this can go away. | 1266 # Once all vsprops settings are migrated into gyp, this can go away. |
| 1267 'msvs_use_common_release%': 1, | 1267 'msvs_use_common_release%': 1, |
| 1268 | 1268 |
| 1269 # TODO(bradnelson): eliminate this when possible. | 1269 # TODO(bradnelson): eliminate this when possible. |
| 1270 # To allow local gyp files to override additional linker options for msvs. | 1270 # To allow local gyp files to override additional linker options for msvs. |
| 1271 # Yes(1) means set use the common linker options. | 1271 # Yes(1) means set use the common linker options. |
| (...skipping 1489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2761 'defines': [ | 2761 'defines': [ |
| 2762 'DONT_EMBED_BUILD_METADATA', | 2762 'DONT_EMBED_BUILD_METADATA', |
| 2763 ], | 2763 ], |
| 2764 }], # dont_embed_build_metadata==1 | 2764 }], # dont_embed_build_metadata==1 |
| 2765 ['dcheck_always_on!=0', { | 2765 ['dcheck_always_on!=0', { |
| 2766 'defines': ['DCHECK_ALWAYS_ON=1'], | 2766 'defines': ['DCHECK_ALWAYS_ON=1'], |
| 2767 }], # dcheck_always_on!=0 | 2767 }], # dcheck_always_on!=0 |
| 2768 ['tracing_like_official_build!=0', { | 2768 ['tracing_like_official_build!=0', { |
| 2769 'defines': ['TRACING_IS_OFFICIAL_BUILD=1'], | 2769 'defines': ['TRACING_IS_OFFICIAL_BUILD=1'], |
| 2770 }], # tracing_like_official_build!=0 | 2770 }], # tracing_like_official_build!=0 |
| 2771 ['win_use_allocator_shim==0', { | 2771 ['OS=="win"', { |
| 2772 'defines': ['NO_TCMALLOC'], |
| 2772 'conditions': [ | 2773 'conditions': [ |
| 2773 ['OS=="win"', { | 2774 ['win_use_allocator_shim==1', { |
| 2774 'defines': ['NO_TCMALLOC'], | 2775 'defines': ['ALLOCATOR_SHIM'], |
| 2775 }], | 2776 }], |
| 2776 ], | 2777 ], |
| 2777 }], | 2778 }], |
| 2778 ['asan==1', { | 2779 ['asan==1', { |
| 2779 'defines': [ | 2780 'defines': [ |
| 2780 'ADDRESS_SANITIZER', | 2781 'ADDRESS_SANITIZER', |
| 2781 'MEMORY_TOOL_REPLACES_ALLOCATOR', | 2782 'MEMORY_TOOL_REPLACES_ALLOCATOR', |
| 2782 'MEMORY_SANITIZER_INITIAL_SIZE', | 2783 'MEMORY_SANITIZER_INITIAL_SIZE', |
| 2783 ], | 2784 ], |
| 2784 }], | 2785 }], |
| (...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3422 'DYNAMIC_ANNOTATIONS_ENABLED=0', | 3423 'DYNAMIC_ANNOTATIONS_ENABLED=0', |
| 3423 ], | 3424 ], |
| 3424 }, { | 3425 }, { |
| 3425 'defines': [ | 3426 'defines': [ |
| 3426 'MEMORY_TOOL_REPLACES_ALLOCATOR', | 3427 'MEMORY_TOOL_REPLACES_ALLOCATOR', |
| 3427 'MEMORY_SANITIZER_INITIAL_SIZE', | 3428 'MEMORY_SANITIZER_INITIAL_SIZE', |
| 3428 'DYNAMIC_ANNOTATIONS_ENABLED=1', | 3429 'DYNAMIC_ANNOTATIONS_ENABLED=1', |
| 3429 'WTF_USE_DYNAMIC_ANNOTATIONS=1', | 3430 'WTF_USE_DYNAMIC_ANNOTATIONS=1', |
| 3430 ], | 3431 ], |
| 3431 }], | 3432 }], |
| 3432 ['OS=="win" and win_use_allocator_shim==0', { | 3433 ['OS=="win"', { |
| 3433 'defines': ['NO_TCMALLOC'], | 3434 'defines': ['NO_TCMALLOC'], |
| 3434 }], | 3435 }], |
| 3435 # _FORTIFY_SOURCE isn't really supported by Clang now, see | 3436 # _FORTIFY_SOURCE isn't really supported by Clang now, see |
| 3436 # http://llvm.org/bugs/show_bug.cgi?id=16821. | 3437 # http://llvm.org/bugs/show_bug.cgi?id=16821. |
| 3437 # It seems to work fine with Ubuntu 12 headers though, so use it | 3438 # It seems to work fine with Ubuntu 12 headers though, so use it |
| 3438 # in official builds. | 3439 # in official builds. |
| 3439 ['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")', { | 3440 ['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")', { |
| 3440 'target_conditions': [ | 3441 'target_conditions': [ |
| 3441 ['chromium_code==1', { | 3442 ['chromium_code==1', { |
| 3442 # Non-chromium code is not guaranteed to compile cleanly | 3443 # Non-chromium code is not guaranteed to compile cleanly |
| (...skipping 2401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5844 # settings in target dicts. SYMROOT is a special case, because many other | 5845 # settings in target dicts. SYMROOT is a special case, because many other |
| 5845 # Xcode variables depend on it, including variables such as | 5846 # Xcode variables depend on it, including variables such as |
| 5846 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5847 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 5847 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5848 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 5848 # files to appear (when present) in the UI as actual files and not red | 5849 # files to appear (when present) in the UI as actual files and not red |
| 5849 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5850 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 5850 # and therefore SYMROOT, needs to be set at the project level. | 5851 # and therefore SYMROOT, needs to be set at the project level. |
| 5851 'SYMROOT': '<(DEPTH)/xcodebuild', | 5852 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 5852 }, | 5853 }, |
| 5853 } | 5854 } |
| OLD | NEW |