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 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1245 | 1245 |
1246 # Set to 1 to enable running Android lint on java/class files. | 1246 # Set to 1 to enable running Android lint on java/class files. |
1247 'android_lint%': 1, | 1247 'android_lint%': 1, |
1248 | 1248 |
1249 # Although base/allocator lets you select a heap library via an | 1249 # Although base/allocator lets you select a heap library via an |
1250 # environment variable, the libcmt shim it uses sometimes gets in | 1250 # environment variable, the libcmt shim it uses sometimes gets in |
1251 # the way. To disable it entirely, and switch to normal msvcrt, do e.g. | 1251 # the way. To disable it entirely, and switch to normal msvcrt, do e.g. |
1252 # 'win_use_allocator_shim': 0, | 1252 # 'win_use_allocator_shim': 0, |
1253 # 'win_release_RuntimeLibrary': 2 | 1253 # 'win_release_RuntimeLibrary': 2 |
1254 # to ~/.gyp/include.gypi, gclient runhooks --force, and do a release build. | 1254 # to ~/.gyp/include.gypi, gclient runhooks --force, and do a release build. |
1255 'win_use_allocator_shim%': 0, # 1 = shim allocator via libcmt; 0 = msvcrt | 1255 'win_use_allocator_shim%': 1, # 1 = shim allocator via libcmt; 0 = msvcrt |
1256 | 1256 |
1257 # TODO(bradnelson): eliminate this when possible. | 1257 # TODO(bradnelson): eliminate this when possible. |
1258 # To allow local gyp files to prevent release.vsprops from being included. | 1258 # To allow local gyp files to prevent release.vsprops from being included. |
1259 # Yes(1) means include release.vsprops. | 1259 # Yes(1) means include release.vsprops. |
1260 # Once all vsprops settings are migrated into gyp, this can go away. | 1260 # Once all vsprops settings are migrated into gyp, this can go away. |
1261 'msvs_use_common_release%': 1, | 1261 'msvs_use_common_release%': 1, |
1262 | 1262 |
1263 # TODO(bradnelson): eliminate this when possible. | 1263 # TODO(bradnelson): eliminate this when possible. |
1264 # To allow local gyp files to override additional linker options for msvs. | 1264 # To allow local gyp files to override additional linker options for msvs. |
1265 # Yes(1) means set use the common linker options. | 1265 # Yes(1) means set use the common linker options. |
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1943 'msvs_large_module_debug_link_mode%': '1', # No | 1943 'msvs_large_module_debug_link_mode%': '1', # No |
1944 },{ | 1944 },{ |
1945 'msvs_large_module_debug_link_mode%': '2', # Yes | 1945 'msvs_large_module_debug_link_mode%': '2', # Yes |
1946 }], | 1946 }], |
1947 ], | 1947 ], |
1948 'nacl_win64_defines': [ | 1948 'nacl_win64_defines': [ |
1949 # This flag is used to minimize dependencies when building | 1949 # This flag is used to minimize dependencies when building |
1950 # Native Client loader for 64-bit Windows. | 1950 # Native Client loader for 64-bit Windows. |
1951 'NACL_WIN64', | 1951 'NACL_WIN64', |
1952 ], | 1952 ], |
| 1953 # Need to include allocator target, but exclude tcmalloc files. |
| 1954 'use_allocator%': 'winheap', |
1953 }], | 1955 }], |
1954 | 1956 |
1955 ['os_posix==1 and chromeos==0 and OS!="android" and OS!="ios" and embedded
==0', { | 1957 ['os_posix==1 and chromeos==0 and OS!="android" and OS!="ios" and embedded
==0', { |
1956 'use_cups%': 1, | 1958 'use_cups%': 1, |
1957 }, { | 1959 }, { |
1958 'use_cups%': 0, | 1960 'use_cups%': 0, |
1959 }], | 1961 }], |
1960 | 1962 |
1961 ['enable_plugins==1 and (OS=="linux" or OS=="mac" or OS=="win")', { | 1963 ['enable_plugins==1 and (OS=="linux" or OS=="mac" or OS=="win")', { |
1962 'enable_pepper_cdms%': 1, | 1964 'enable_pepper_cdms%': 1, |
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2755 'defines': [ | 2757 'defines': [ |
2756 'DONT_EMBED_BUILD_METADATA', | 2758 'DONT_EMBED_BUILD_METADATA', |
2757 ], | 2759 ], |
2758 }], # dont_embed_build_metadata==1 | 2760 }], # dont_embed_build_metadata==1 |
2759 ['dcheck_always_on!=0', { | 2761 ['dcheck_always_on!=0', { |
2760 'defines': ['DCHECK_ALWAYS_ON=1'], | 2762 'defines': ['DCHECK_ALWAYS_ON=1'], |
2761 }], # dcheck_always_on!=0 | 2763 }], # dcheck_always_on!=0 |
2762 ['tracing_like_official_build!=0', { | 2764 ['tracing_like_official_build!=0', { |
2763 'defines': ['TRACING_IS_OFFICIAL_BUILD=1'], | 2765 'defines': ['TRACING_IS_OFFICIAL_BUILD=1'], |
2764 }], # tracing_like_official_build!=0 | 2766 }], # tracing_like_official_build!=0 |
2765 ['win_use_allocator_shim==0', { | 2767 ['OS=="win"', { |
| 2768 'defines': ['NO_TCMALLOC'], |
2766 'conditions': [ | 2769 'conditions': [ |
2767 ['OS=="win"', { | 2770 ['win_use_allocator_shim==1', { |
2768 'defines': ['NO_TCMALLOC'], | 2771 'defines': ['ALLOCATOR_SHIM'], |
2769 }], | 2772 }], |
2770 ], | 2773 ], |
2771 }], | 2774 }], |
2772 ['asan==1', { | 2775 ['asan==1', { |
2773 'defines': [ | 2776 'defines': [ |
2774 'ADDRESS_SANITIZER', | 2777 'ADDRESS_SANITIZER', |
2775 'MEMORY_TOOL_REPLACES_ALLOCATOR', | 2778 'MEMORY_TOOL_REPLACES_ALLOCATOR', |
2776 'MEMORY_SANITIZER_INITIAL_SIZE', | 2779 'MEMORY_SANITIZER_INITIAL_SIZE', |
2777 ], | 2780 ], |
2778 }], | 2781 }], |
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3416 'DYNAMIC_ANNOTATIONS_ENABLED=0', | 3419 'DYNAMIC_ANNOTATIONS_ENABLED=0', |
3417 ], | 3420 ], |
3418 }, { | 3421 }, { |
3419 'defines': [ | 3422 'defines': [ |
3420 'MEMORY_TOOL_REPLACES_ALLOCATOR', | 3423 'MEMORY_TOOL_REPLACES_ALLOCATOR', |
3421 'MEMORY_SANITIZER_INITIAL_SIZE', | 3424 'MEMORY_SANITIZER_INITIAL_SIZE', |
3422 'DYNAMIC_ANNOTATIONS_ENABLED=1', | 3425 'DYNAMIC_ANNOTATIONS_ENABLED=1', |
3423 'WTF_USE_DYNAMIC_ANNOTATIONS=1', | 3426 'WTF_USE_DYNAMIC_ANNOTATIONS=1', |
3424 ], | 3427 ], |
3425 }], | 3428 }], |
3426 ['OS=="win" and win_use_allocator_shim==0', { | 3429 ['OS=="win"', { |
3427 'defines': ['NO_TCMALLOC'], | 3430 'defines': ['NO_TCMALLOC'], |
3428 }], | 3431 }], |
3429 # _FORTIFY_SOURCE isn't really supported by Clang now, see | 3432 # _FORTIFY_SOURCE isn't really supported by Clang now, see |
3430 # http://llvm.org/bugs/show_bug.cgi?id=16821. | 3433 # http://llvm.org/bugs/show_bug.cgi?id=16821. |
3431 # It seems to work fine with Ubuntu 12 headers though, so use it | 3434 # It seems to work fine with Ubuntu 12 headers though, so use it |
3432 # in official builds. | 3435 # in official builds. |
3433 ['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")', { | 3436 ['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")', { |
3434 'target_conditions': [ | 3437 'target_conditions': [ |
3435 ['chromium_code==1', { | 3438 ['chromium_code==1', { |
3436 # Non-chromium code is not guaranteed to compile cleanly | 3439 # Non-chromium code is not guaranteed to compile cleanly |
(...skipping 2401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5838 # settings in target dicts. SYMROOT is a special case, because many other | 5841 # settings in target dicts. SYMROOT is a special case, because many other |
5839 # Xcode variables depend on it, including variables such as | 5842 # Xcode variables depend on it, including variables such as |
5840 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5843 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5841 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5844 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5842 # files to appear (when present) in the UI as actual files and not red | 5845 # files to appear (when present) in the UI as actual files and not red |
5843 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5846 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5844 # and therefore SYMROOT, needs to be set at the project level. | 5847 # and therefore SYMROOT, needs to be set at the project level. |
5845 'SYMROOT': '<(DEPTH)/xcodebuild', | 5848 'SYMROOT': '<(DEPTH)/xcodebuild', |
5846 }, | 5849 }, |
5847 } | 5850 } |
OLD | NEW |