{
'targets': [
{
'target_name': 'hello',
'type': 'executable',
'msvs_guid': '5ECEC9E5-8F23-47B6-93E0-C3B328B3BE65',#随便填
'sources': ['main.cc',],
},
],
'target_defaults': {
'configurations': {
'Debug': {
'defines': 'DEBUG',
'msvs_settings': {
'VCCLCompilerTool': {
'DebugInformationFormat': '3',#此处的定义 根据sln中格式
'Optimization': '0',#此处的定义 根据sln中<tool>格式
'conditions': [
['OS=="win"', {
'RuntimeLibrary': '3', # /MDd
}, {
'RuntimeLibrary': '1', # /MTd
}
],
],
},
'VCLinkerTool': {
'LinkIncremental': '2',
# For future reference, the stack size needs to be increased
# when building for Windows 64-bit, otherwise some test cases
# can cause stack overflow.
# 'StackReserveSize': '297152',
},
},
}, # Debug
'Release': {
}, # Release
}, # configurations
}, # target_defaults
}