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 2826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2837 }], # dcheck_always_on!=0 | 2837 }], # dcheck_always_on!=0 |
2838 ['tracing_like_official_build!=0', { | 2838 ['tracing_like_official_build!=0', { |
2839 'defines': ['TRACING_IS_OFFICIAL_BUILD=1'], | 2839 'defines': ['TRACING_IS_OFFICIAL_BUILD=1'], |
2840 }], # tracing_like_official_build!=0 | 2840 }], # tracing_like_official_build!=0 |
2841 ['fieldtrial_testing_like_official_build==0 and branding!="Chrome"', { | 2841 ['fieldtrial_testing_like_official_build==0 and branding!="Chrome"', { |
2842 'defines': ['FIELDTRIAL_TESTING_ENABLED'], | 2842 'defines': ['FIELDTRIAL_TESTING_ENABLED'], |
2843 }], # fieldtrial_testing_like_official_build==0 and branding!="Chrome" | 2843 }], # fieldtrial_testing_like_official_build==0 and branding!="Chrome" |
2844 ['OS=="win"', { | 2844 ['OS=="win"', { |
2845 'defines': ['NO_TCMALLOC'], | 2845 'defines': ['NO_TCMALLOC'], |
2846 }], | 2846 }], |
2847 ['asan==1', { | |
2848 'defines': [ | |
2849 'ADDRESS_SANITIZER', | |
2850 'MEMORY_TOOL_REPLACES_ALLOCATOR', | |
2851 'MEMORY_SANITIZER_INITIAL_SIZE', | |
2852 ], | |
2853 }], | |
2854 ['syzyasan==1', { | 2847 ['syzyasan==1', { |
2855 # SyzyAsan needs /PROFILE turned on to produce appropriate pdbs. | 2848 # SyzyAsan needs /PROFILE turned on to produce appropriate pdbs. |
2856 'msvs_settings': { | 2849 'msvs_settings': { |
2857 'VCLinkerTool': { | 2850 'VCLinkerTool': { |
2858 'Profile': 'true', | 2851 'Profile': 'true', |
2859 }, | 2852 }, |
2860 }, | 2853 }, |
2861 'defines': [ | 2854 'defines': [ |
2862 'SYZYASAN', | 2855 'SYZYASAN', |
2863 'MEMORY_TOOL_REPLACES_ALLOCATOR', | 2856 'MEMORY_TOOL_REPLACES_ALLOCATOR', |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3071 }], | 3064 }], |
3072 ['<(use_nss_certs)==1 and >(nacl_untrusted_build)==0', { | 3065 ['<(use_nss_certs)==1 and >(nacl_untrusted_build)==0', { |
3073 'defines': ['USE_NSS_CERTS=1'], | 3066 'defines': ['USE_NSS_CERTS=1'], |
3074 }], | 3067 }], |
3075 ['<(use_nss_verifier)==1 and >(nacl_untrusted_build)==0', { | 3068 ['<(use_nss_verifier)==1 and >(nacl_untrusted_build)==0', { |
3076 'defines': ['USE_NSS_VERIFIER=1'], | 3069 'defines': ['USE_NSS_VERIFIER=1'], |
3077 }], | 3070 }], |
3078 ['<(chromeos)==1 and >(nacl_untrusted_build)==0', { | 3071 ['<(chromeos)==1 and >(nacl_untrusted_build)==0', { |
3079 'defines': ['OS_CHROMEOS=1'], | 3072 'defines': ['OS_CHROMEOS=1'], |
3080 }], | 3073 }], |
| 3074 ['<(asan)==1 and >(nacl_untrusted_build)==0', { |
| 3075 'defines': [ |
| 3076 'ADDRESS_SANITIZER', |
| 3077 'MEMORY_TOOL_REPLACES_ALLOCATOR', |
| 3078 'MEMORY_SANITIZER_INITIAL_SIZE', |
| 3079 ], |
| 3080 }], |
3081 ['enable_wexit_time_destructors==1 and OS!="win"', { | 3081 ['enable_wexit_time_destructors==1 and OS!="win"', { |
3082 # TODO: Enable on Windows too, http://crbug.com/404525 | 3082 # TODO: Enable on Windows too, http://crbug.com/404525 |
3083 'variables': { 'clang_warning_flags': ['-Wexit-time-destructors']}, | 3083 'variables': { 'clang_warning_flags': ['-Wexit-time-destructors']}, |
3084 }], | 3084 }], |
3085 ['chromium_code==0', { | 3085 ['chromium_code==0', { |
3086 'variables': { | 3086 'variables': { |
3087 'clang_warning_flags': [ | 3087 'clang_warning_flags': [ |
3088 # Lots of third-party libraries have unused variables. Instead of | 3088 # Lots of third-party libraries have unused variables. Instead of |
3089 # suppressing them individually, we just blanket suppress them here. | 3089 # suppressing them individually, we just blanket suppress them here. |
3090 '-Wno-unused-variable', | 3090 '-Wno-unused-variable', |
(...skipping 3274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6365 # settings in target dicts. SYMROOT is a special case, because many other | 6365 # settings in target dicts. SYMROOT is a special case, because many other |
6366 # Xcode variables depend on it, including variables such as | 6366 # Xcode variables depend on it, including variables such as |
6367 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6367 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
6368 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6368 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
6369 # files to appear (when present) in the UI as actual files and not red | 6369 # files to appear (when present) in the UI as actual files and not red |
6370 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6370 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
6371 # and therefore SYMROOT, needs to be set at the project level. | 6371 # and therefore SYMROOT, needs to be set at the project level. |
6372 'SYMROOT': '<(DEPTH)/xcodebuild', | 6372 'SYMROOT': '<(DEPTH)/xcodebuild', |
6373 }, | 6373 }, |
6374 } | 6374 } |
OLD | NEW |