Set window build flags (warn level 4, release optimization options, pdbs in release builds)

Review URL: http://codereview.appspot.com/5142050/



git-svn-id: http://skia.googlecode.com/svn/trunk@2346 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bsalomon@google.com 2011-09-28 14:32:01 +00:00
parent ade907bf98
commit 8b5abeca87

View File

@ -8,6 +8,7 @@
'defines': [ 'defines': [
'SK_BUILD_FOR_WIN32', 'SK_BUILD_FOR_WIN32',
'SK_IGNORE_STDINT_DOT_H', 'SK_IGNORE_STDINT_DOT_H',
'_CRT_SECURE_NO_WARNINGS',
], ],
'msvs_cygwin_shell': 0, 'msvs_cygwin_shell': 0,
'msvs_settings': { 'msvs_settings': {
@ -28,26 +29,40 @@
'Debug': { 'Debug': {
'msvs_settings': { 'msvs_settings': {
'VCCLCompilerTool': { 'VCCLCompilerTool': {
'DebugInformationFormat': '1', # debugOldStyleInfo (/Z7) 'DebugInformationFormat': '4', # editAndContiue (/ZI)
'ProgramDataBaseFileName': '$(OutDir)$(ProjectName).pdb',
'Optimization': '0', # optimizeDisabled (/Od) 'Optimization': '0', # optimizeDisabled (/Od)
'PreprocessorDefinitions': ['_DEBUG'], 'PreprocessorDefinitions': ['_DEBUG'],
'RuntimeLibrary': '3', # rtMultiThreadedDebugDLL (/MDd) 'RuntimeLibrary': '3', # rtMultiThreadedDebugDLL (/MDd)
'ExceptionHandling': '0',
'RuntimeTypeInfo': 'false', # /GR-
'WarningLevel': '3', # level3 (/W3)
}, },
'VCLinkerTool': { 'VCLinkerTool': {
'GenerateDebugInformation': 'true', 'GenerateDebugInformation': 'true', # /DEBUG
'LinkIncremental': '2', # /INCREMENTAL
}, },
}, },
}, },
'Release': { 'Release': {
'msvs_settings': { 'msvs_settings': {
'VCCLCompilerTool': { 'VCCLCompilerTool': {
'DebugInformationFormat': '0', # debugDisabled 'DebugInformationFormat': '3', # programDatabase (/Zi)
'Optimization': '2', # optimizeMaxSpeed (/O2) 'ProgramDataBaseFileName': '$(OutDir)$(ProjectName).pdb',
'Optimization': '3', # full (/Ox)
'WholeProgramOptimization': 'true', #/GL
# Changing the floating point model requires rebaseling gm images
#'FloatingPointModel': '2', # fast (/fp:fast)
'FavorSizeOrSpeed': '1', # speed (/Ot)
'PreprocessorDefinitions': ['NDEBUG'], 'PreprocessorDefinitions': ['NDEBUG'],
'RuntimeLibrary': '2', # rtMultiThreadedDLL (/MD) 'RuntimeLibrary': '2', # rtMultiThreadedDLL (/MD)
'ExceptionHandling': '0',
'RuntimeTypeInfo': 'false', # /GR-
'WarningLevel': '3', # level3 (/W3)
}, },
'VCLinkerTool': { 'VCLinkerTool': {
'GenerateDebugInformation': 'false', 'GenerateDebugInformation': 'true', # /DEBUG
'LinkTimeCodeGeneration': '1', # useLinkTimeCodeGeneration /LTCG
}, },
}, },
}, },