win: Remove unused config variables

This commit is contained in:
Cheng Zhao 2015-04-09 13:30:21 +08:00
parent 794b459ccd
commit 9d921afff0

View file

@ -18,23 +18,6 @@
'libchromiumcontent_libraries%': '<(libchromiumcontent_static_libraries)', 'libchromiumcontent_libraries%': '<(libchromiumcontent_static_libraries)',
}], }],
], ],
# See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx
'win_release_Optimization%': '2', # 2 = /Os
'win_debug_Optimization%': '0', # 0 = /Od
# See http://msdn.microsoft.com/en-us/library/2kxx5t2c(v=vs.80).aspx
# Tri-state: blank is default, 1 on, 0 off
'win_release_OmitFramePointers%': '0',
# Tri-state: blank is default, 1 on, 0 off
'win_debug_OmitFramePointers%': '',
# See http://msdn.microsoft.com/en-us/library/8wtf2dfz(VS.71).aspx
'win_debug_RuntimeChecks%': '3', # 3 = all checks enabled, 0 = off
# See http://msdn.microsoft.com/en-us/library/47238hez(VS.71).aspx
'win_debug_InlineFunctionExpansion%': '', # empty = default, 0 = off,
'win_release_InlineFunctionExpansion%': '2', # 1 = only __inline, 2 = max
}, },
'target_defaults': { 'target_defaults': {
'includes': [ 'includes': [
@ -137,65 +120,27 @@
'msvs_settings': { 'msvs_settings': {
'VCCLCompilerTool': { 'VCCLCompilerTool': {
'RuntimeLibrary': '2', # /MD (nondebug DLL) 'RuntimeLibrary': '2', # /MD (nondebug DLL)
'Optimization': '<(win_debug_Optimization)', 'Optimization': '0', # 0 = /Od
'BasicRuntimeChecks': '<(win_debug_RuntimeChecks)', # See http://msdn.microsoft.com/en-us/library/8wtf2dfz(VS.71).aspx
'conditions': [ 'BasicRuntimeChecks': '3', # 3 = all checks enabled, 0 = off
# According to MSVS, InlineFunctionExpansion=0 means
# "default inlining", not "/Ob0".
# Thus, we have to handle InlineFunctionExpansion==0 separately.
['win_debug_InlineFunctionExpansion==0', {
'AdditionalOptions': ['/Ob0'],
}],
['win_debug_InlineFunctionExpansion!=""', {
'InlineFunctionExpansion':
'<(win_debug_InlineFunctionExpansion)',
}],
# if win_debug_OmitFramePointers is blank, leave as default
['win_debug_OmitFramePointers==1', {
'OmitFramePointers': 'true',
}],
['win_debug_OmitFramePointers==0', {
'OmitFramePointers': 'false',
# The above is not sufficient (http://crbug.com/106711): it
# simply eliminates an explicit "/Oy", but both /O2 and /Ox
# perform FPO regardless, so we must explicitly disable.
# We still want the false setting above to avoid having
# "/Oy /Oy-" and warnings about overriding.
'AdditionalOptions': ['/Oy-'],
}],
],
}, },
}, },
}, # Debug_Base }, # Debug_Base
'Release_Base': { 'Release_Base': {
'msvs_settings': { 'msvs_settings': {
'VCCLCompilerTool': { 'VCCLCompilerTool': {
'Optimization': '<(win_release_Optimization)', # See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx
'conditions': [ 'Optimization': '2', # 2 = /Os
# According to MSVS, InlineFunctionExpansion=0 means # See http://msdn.microsoft.com/en-us/library/47238hez(VS.71).aspx
# "default inlining", not "/Ob0". 'InlineFunctionExpansion': '2', # 2 = max
# Thus, we have to handle InlineFunctionExpansion==0 separately. # See http://msdn.microsoft.com/en-us/library/2kxx5t2c(v=vs.80).aspx
['win_release_InlineFunctionExpansion==0', { 'OmitFramePointers': 'false',
'AdditionalOptions': ['/Ob0'], # The above is not sufficient (http://crbug.com/106711): it
}], # simply eliminates an explicit "/Oy", but both /O2 and /Ox
['win_release_InlineFunctionExpansion!=""', { # perform FPO regardless, so we must explicitly disable.
'InlineFunctionExpansion': # We still want the false setting above to avoid having
'<(win_release_InlineFunctionExpansion)', # "/Oy /Oy-" and warnings about overriding.
}], 'AdditionalOptions': ['/Oy-'],
# if win_release_OmitFramePointers is blank, leave as default
['win_release_OmitFramePointers==1', {
'OmitFramePointers': 'true',
}],
['win_release_OmitFramePointers==0', {
'OmitFramePointers': 'false',
# The above is not sufficient (http://crbug.com/106711): it
# simply eliminates an explicit "/Oy", but both /O2 and /Ox
# perform FPO regardless, so we must explicitly disable.
# We still want the false setting above to avoid having
# "/Oy /Oy-" and warnings about overriding.
'AdditionalOptions': ['/Oy-'],
}],
],
}, },
}, },
'conditions': [ 'conditions': [