Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: build/common.gypi

Issue 676743003: Adding /analyze support to common.gypi through GYP_DEFINES=win_analyze=1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after
2779 ], 2784 ],
2780 }], 2785 }],
2781 ['OS=="win"', { 2786 ['OS=="win"', {
2782 'defines': [ 2787 'defines': [
2783 '__STD_C', 2788 '__STD_C',
2784 '_CRT_SECURE_NO_DEPRECATE', 2789 '_CRT_SECURE_NO_DEPRECATE',
2785 '_SCL_SECURE_NO_DEPRECATE', 2790 '_SCL_SECURE_NO_DEPRECATE',
2786 # This define is required to pull in the new Win8 interfaces from 2791 # This define is required to pull in the new Win8 interfaces from
2787 # system headers like ShObjIdl.h. 2792 # system headers like ShObjIdl.h.
2788 'NTDDI_VERSION=0x06020000', 2793 'NTDDI_VERSION=0x06020000',
2789 # This is required for ATL to use XP-safe versions of its functions.
2790 '_USING_V110_SDK71_',
2791 ], 2794 ],
2792 'include_dirs': [ 2795 'include_dirs': [
2793 '<(DEPTH)/third_party/wtl/include', 2796 '<(DEPTH)/third_party/wtl/include',
2794 ], 2797 ],
2795 'conditions': [ 2798 'conditions': [
2799 ['win_analyze==0', {
scottmg 2014/10/27 17:47:02 i think it would be better to do 'win_analyze':
2800 # This is required for ATL to use XP-safe versions of its functions.
2801 # However it is prohibited when running /analyze.
2802 'defines': [
2803 '_USING_V110_SDK71_',
2804 ],
2805 }],
2796 ['win_z7!=0', { 2806 ['win_z7!=0', {
2797 'msvs_settings': { 2807 'msvs_settings': {
2798 # Generates debug info when win_z7=1 2808 # Generates debug info when win_z7=1
2799 # even if fastbuild=1 (that makes GenerateDebugInformation false). 2809 # even if fastbuild=1 (that makes GenerateDebugInformation false).
2800 'VCLinkerTool': { 2810 'VCLinkerTool': {
2801 'GenerateDebugInformation': 'true', 2811 'GenerateDebugInformation': 'true',
2802 }, 2812 },
2803 'VCCLCompilerTool': { 2813 'VCCLCompilerTool': {
2804 'DebugInformationFormat': '1', 2814 'DebugInformationFormat': '1',
2805 } 2815 }
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
3203 }], 3213 }],
3204 ['win_debug_OmitFramePointers==0', { 3214 ['win_debug_OmitFramePointers==0', {
3205 'OmitFramePointers': 'false', 3215 'OmitFramePointers': 'false',
3206 # The above is not sufficient (http://crbug.com/106711): it 3216 # The above is not sufficient (http://crbug.com/106711): it
3207 # simply eliminates an explicit "/Oy", but both /O2 and /Ox 3217 # simply eliminates an explicit "/Oy", but both /O2 and /Ox
3208 # perform FPO regardless, so we must explicitly disable. 3218 # perform FPO regardless, so we must explicitly disable.
3209 # We still want the false setting above to avoid having 3219 # We still want the false setting above to avoid having
3210 # "/Oy /Oy-" and warnings about overriding. 3220 # "/Oy /Oy-" and warnings about overriding.
3211 'AdditionalOptions': ['/Oy-'], 3221 'AdditionalOptions': ['/Oy-'],
3212 }], 3222 }],
3223 ['win_analyze!=0', {
scottmg 2014/10/27 17:47:03 just 'win_analyze' is fine.
3224 # When win_analye is specified add the /analyze switch. There wi ll be many
scottmg 2014/10/27 17:47:02 rewrap to 80col
3225 # warnings do disable warnings-as-errors. Putting it on addition a-options
3226 # is the only practical way to do it for all projects.
3227 # Also, disable various noisy warnings that have low value.
3228 'AdditionalOptions': ['/analyze /WX- /wd6312 /wd6326 /wd28159 /w d28204 /wd28251 /wd28301 /wd28252 /wd28196 /wd6340 /wd6334 /wd6011 /wd6246 /wd62 44 /wd28182'],
scottmg 2014/10/27 17:47:02 make these separate items in a list, i.e. 'Additi
3229 # 6340 6334 6011 6246 6244 28182
3230 # /analyze related warnings
3231 #6312, # Possible infinite loop: use of the constant EXCEPTION_C ONTINUE_EXECUTION in the exception-filter expression of a try-except
3232 #6326, # Potential comparison of a constant with another constan t.
3233 #28159, # Consider using 'GetTickCount64' instead of 'GetTickCou nt'.
3234 #28204, # Inconsistent SAL annotations
3235 #28251, # Inconsistent SAL annotations
3236 #28252, # Inconsistent SAL annotations
3237 #28301, # Inconsistent SAL annotations
3238 #28196, # The requirement that (precondition) is not satisfied.
3239 # 6340 6334 6011 6246 6244 28182
3240 }],
3213 ], 3241 ],
3214 'AdditionalOptions': [ '<@(win_debug_extra_cflags)', ], 3242 'AdditionalOptions': [ '<@(win_debug_extra_cflags)', ],
3215 }, 3243 },
3216 'VCLinkerTool': { 3244 'VCLinkerTool': {
3217 'LinkIncremental': '<(msvs_debug_link_incremental)', 3245 'LinkIncremental': '<(msvs_debug_link_incremental)',
3218 # ASLR makes debugging with windbg difficult because Chrome.exe and 3246 # ASLR makes debugging with windbg difficult because Chrome.exe and
3219 # Chrome.dll share the same base name. As result, windbg will 3247 # Chrome.dll share the same base name. As result, windbg will
3220 # name the Chrome.dll module like chrome_<base address>, where 3248 # name the Chrome.dll module like chrome_<base address>, where
3221 # <base address> typically changes with each launch. This in turn 3249 # <base address> typically changes with each launch. This in turn
3222 # means that breakpoints in Chrome.dll don't stick from one launch 3250 # means that breakpoints in Chrome.dll don't stick from one launch
(...skipping 2615 matching lines...) Expand 10 before | Expand all | Expand 10 after
5838 # settings in target dicts. SYMROOT is a special case, because many other 5866 # settings in target dicts. SYMROOT is a special case, because many other
5839 # Xcode variables depend on it, including variables such as 5867 # Xcode variables depend on it, including variables such as
5840 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5868 # 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 5869 # 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 5870 # 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, 5871 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5844 # and therefore SYMROOT, needs to be set at the project level. 5872 # and therefore SYMROOT, needs to be set at the project level.
5845 'SYMROOT': '<(DEPTH)/xcodebuild', 5873 'SYMROOT': '<(DEPTH)/xcodebuild',
5846 }, 5874 },
5847 } 5875 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698