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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
339 'use_libjpeg_turbo%': 1, | 339 'use_libjpeg_turbo%': 1, |
340 | 340 |
341 # Use system libjpeg. Note that the system's libjepg will be used even if | 341 # Use system libjpeg. Note that the system's libjepg will be used even if |
342 # use_libjpeg_turbo is set. | 342 # use_libjpeg_turbo is set. |
343 'use_system_libjpeg%': 0, | 343 'use_system_libjpeg%': 0, |
344 | 344 |
345 # By default, component is set to static_library and it can be overriden | 345 # By default, component is set to static_library and it can be overriden |
346 # by the GYP command line or by ~/.gyp/include.gypi. | 346 # by the GYP command line or by ~/.gyp/include.gypi. |
347 'component%': 'static_library', | 347 'component%': 'static_library', |
348 | 348 |
349 # /analyze is off by default on Windows because it is very slow and noisy. | |
350 # Enable with GYP_DEFINES=win_analyze=1 | |
351 'win_analyze%': 0, | |
352 | |
349 # Set to select the Title Case versions of strings in GRD files. | 353 # Set to select the Title Case versions of strings in GRD files. |
350 'use_titlecase_in_grd%': 0, | 354 'use_titlecase_in_grd%': 0, |
351 | 355 |
352 # Use translations provided by volunteers at launchpad.net. This | 356 # Use translations provided by volunteers at launchpad.net. This |
353 # currently only works on Linux. | 357 # currently only works on Linux. |
354 'use_third_party_translations%': 0, | 358 'use_third_party_translations%': 0, |
355 | 359 |
356 # Remoting compilation is enabled by default. Set to 0 to disable. | 360 # Remoting compilation is enabled by default. Set to 0 to disable. |
357 'remoting%': 1, | 361 'remoting%': 1, |
358 | 362 |
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1101 'win_z7%': '<(win_z7)', | 1105 'win_z7%': '<(win_z7)', |
1102 'dcheck_always_on%': '<(dcheck_always_on)', | 1106 'dcheck_always_on%': '<(dcheck_always_on)', |
1103 'tracing_like_official_build%': '<(tracing_like_official_build)', | 1107 'tracing_like_official_build%': '<(tracing_like_official_build)', |
1104 'arm_version%': '<(arm_version)', | 1108 'arm_version%': '<(arm_version)', |
1105 'arm_neon%': '<(arm_neon)', | 1109 'arm_neon%': '<(arm_neon)', |
1106 'arm_neon_optional%': '<(arm_neon_optional)', | 1110 'arm_neon_optional%': '<(arm_neon_optional)', |
1107 'sysroot%': '<(sysroot)', | 1111 'sysroot%': '<(sysroot)', |
1108 'chroot_cmd%': '<(chroot_cmd)', | 1112 'chroot_cmd%': '<(chroot_cmd)', |
1109 'system_libdir%': '<(system_libdir)', | 1113 'system_libdir%': '<(system_libdir)', |
1110 'component%': '<(component)', | 1114 'component%': '<(component)', |
1115 'win_analyze%': '<(win_analyze)', | |
1111 'enable_resource_whitelist_generation%': '<(enable_resource_whitelist_genera tion)', | 1116 'enable_resource_whitelist_generation%': '<(enable_resource_whitelist_genera tion)', |
1112 'use_titlecase_in_grd%': '<(use_titlecase_in_grd)', | 1117 'use_titlecase_in_grd%': '<(use_titlecase_in_grd)', |
1113 'use_third_party_translations%': '<(use_third_party_translations)', | 1118 'use_third_party_translations%': '<(use_third_party_translations)', |
1114 'remoting%': '<(remoting)', | 1119 'remoting%': '<(remoting)', |
1115 'enable_one_click_signin%': '<(enable_one_click_signin)', | 1120 'enable_one_click_signin%': '<(enable_one_click_signin)', |
1116 'enable_pre_sync_backup%': '<(enable_pre_sync_backup)', | 1121 'enable_pre_sync_backup%': '<(enable_pre_sync_backup)', |
1117 'enable_webrtc%': '<(enable_webrtc)', | 1122 'enable_webrtc%': '<(enable_webrtc)', |
1118 'chromium_win_pch%': '<(chromium_win_pch)', | 1123 'chromium_win_pch%': '<(chromium_win_pch)', |
1119 'configuration_policy%': '<(configuration_policy)', | 1124 'configuration_policy%': '<(configuration_policy)', |
1120 'safe_browsing%': '<(safe_browsing)', | 1125 'safe_browsing%': '<(safe_browsing)', |
(...skipping 1675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2796 ['win_z7!=0', { | 2801 ['win_z7!=0', { |
2797 'msvs_settings': { | 2802 'msvs_settings': { |
2798 # Generates debug info when win_z7=1 | 2803 # Generates debug info when win_z7=1 |
2799 # even if fastbuild=1 (that makes GenerateDebugInformation false). | 2804 # even if fastbuild=1 (that makes GenerateDebugInformation false). |
2800 'VCLinkerTool': { | 2805 'VCLinkerTool': { |
2801 'GenerateDebugInformation': 'true', | 2806 'GenerateDebugInformation': 'true', |
2802 }, | 2807 }, |
2803 'VCCLCompilerTool': { | 2808 'VCCLCompilerTool': { |
2804 'DebugInformationFormat': '1', | 2809 'DebugInformationFormat': '1', |
2805 } | 2810 } |
2806 } | 2811 } # win_z7!=0 |
2807 }], | 2812 }], |
2808 ], # win_z7!=0 | 2813 ['win_analyze', { |
2814 'defines!': [ | |
2815 # This is prohibited when running /analyze. | |
2816 '_USING_V110_SDK71_', | |
2817 ], | |
2818 }], # win_analyze | |
2819 ], | |
2809 }], # OS==win | 2820 }], # OS==win |
2810 ['chromecast==1', { | 2821 ['chromecast==1', { |
2811 'defines': [ | 2822 'defines': [ |
2812 'LOG_DISABLED=0', | 2823 'LOG_DISABLED=0', |
2813 ], | 2824 ], |
2814 'conditions': [ | 2825 'conditions': [ |
2815 ['target_arch=="arm"', { | 2826 ['target_arch=="arm"', { |
2816 'defines': [ | 2827 'defines': [ |
2817 # TODO(lcwu): Work around an error when building Chromium | 2828 # TODO(lcwu): Work around an error when building Chromium |
2818 # with gcc-4.5.3 (e.g. v8/src/platform-linux.cc). Remove | 2829 # with gcc-4.5.3 (e.g. v8/src/platform-linux.cc). Remove |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3203 }], | 3214 }], |
3204 ['win_debug_OmitFramePointers==0', { | 3215 ['win_debug_OmitFramePointers==0', { |
3205 'OmitFramePointers': 'false', | 3216 'OmitFramePointers': 'false', |
3206 # The above is not sufficient (http://crbug.com/106711): it | 3217 # The above is not sufficient (http://crbug.com/106711): it |
3207 # simply eliminates an explicit "/Oy", but both /O2 and /Ox | 3218 # simply eliminates an explicit "/Oy", but both /O2 and /Ox |
3208 # perform FPO regardless, so we must explicitly disable. | 3219 # perform FPO regardless, so we must explicitly disable. |
3209 # We still want the false setting above to avoid having | 3220 # We still want the false setting above to avoid having |
3210 # "/Oy /Oy-" and warnings about overriding. | 3221 # "/Oy /Oy-" and warnings about overriding. |
3211 'AdditionalOptions': ['/Oy-'], | 3222 'AdditionalOptions': ['/Oy-'], |
3212 }], | 3223 }], |
3224 ['win_analyze', { | |
scottmg
2014/10/28 00:36:14
do you mean for this to be inside Debug_Base? (i w
| |
3225 # Set WarnAsError to false to disable this setting for most | |
3226 # projects so that compilation continues. | |
3227 'WarnAsError': 'false', | |
3228 # When win_analye is specified add the /analyze switch. | |
scottmg
2014/10/28 00:38:38
"win_analye" -> "win_analyze"
| |
3229 # Also add /WX- to force-disable WarnAsError for projects that | |
3230 # override WarnAsError. | |
3231 # Also, disable various noisy warnings that have low value. | |
3232 'AdditionalOptions': [ | |
3233 '/analyze', | |
3234 '/WX-', | |
3235 '/wd6011', # Dereferencing NULL pointer | |
3236 '/wd6312', # Possible infinite loop: use of the constant | |
3237 # EXCEPTION_CONTINUE_EXECUTION in the exception-filter | |
3238 '/wd6326', # Potential comparison of constant with constant | |
3239 '/wd28159', # Consider using 'GetTickCount64' | |
3240 '/wd28204', # Inconsistent SAL annotations | |
3241 '/wd28251', # Inconsistent SAL annotations | |
3242 '/wd28252', # Inconsistent SAL annotations | |
3243 '/wd28253', # Inconsistent SAL annotations | |
3244 '/wd28196', # The precondition is not satisfied | |
3245 '/wd28301', # Inconsistent SAL annotations | |
3246 '/wd6340', # Sign mismatch in function parameter | |
3247 '/wd28182', # Dereferencing NULL pointer | |
3248 ], | |
3249 }], | |
3213 ], | 3250 ], |
3214 'AdditionalOptions': [ '<@(win_debug_extra_cflags)', ], | 3251 'AdditionalOptions': [ '<@(win_debug_extra_cflags)', ], |
3215 }, | 3252 }, |
3216 'VCLinkerTool': { | 3253 'VCLinkerTool': { |
3217 'LinkIncremental': '<(msvs_debug_link_incremental)', | 3254 'LinkIncremental': '<(msvs_debug_link_incremental)', |
3218 # ASLR makes debugging with windbg difficult because Chrome.exe and | 3255 # ASLR makes debugging with windbg difficult because Chrome.exe and |
3219 # Chrome.dll share the same base name. As result, windbg will | 3256 # Chrome.dll share the same base name. As result, windbg will |
3220 # name the Chrome.dll module like chrome_<base address>, where | 3257 # name the Chrome.dll module like chrome_<base address>, where |
3221 # <base address> typically changes with each launch. This in turn | 3258 # <base address> typically changes with each launch. This in turn |
3222 # means that breakpoints in Chrome.dll don't stick from one launch | 3259 # means that breakpoints in Chrome.dll don't stick from one launch |
(...skipping 2615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5838 # settings in target dicts. SYMROOT is a special case, because many other | 5875 # settings in target dicts. SYMROOT is a special case, because many other |
5839 # Xcode variables depend on it, including variables such as | 5876 # Xcode variables depend on it, including variables such as |
5840 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5877 # 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 | 5878 # 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 | 5879 # 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, | 5880 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5844 # and therefore SYMROOT, needs to be set at the project level. | 5881 # and therefore SYMROOT, needs to be set at the project level. |
5845 'SYMROOT': '<(DEPTH)/xcodebuild', | 5882 'SYMROOT': '<(DEPTH)/xcodebuild', |
5846 }, | 5883 }, |
5847 } | 5884 } |
OLD | NEW |