[Tools] fix CPPDEFINES issue in vs

This commit is contained in:
Bernard Xiong 2017-01-08 10:01:48 +08:00
parent 370250afbe
commit 475a3b8b85
1 changed files with 8 additions and 1 deletions

View File

@ -108,6 +108,13 @@ def VSProject(target, script, program):
# write cppdefinitons flags
if building.Env.has_key('CPPDEFINES'):
CPPDEFINES = building.Env['CPPDEFINES']
definitions = []
if type(CPPDEFINES[0]) == type(()):
for item in CPPDEFINES:
definitions += [i for i in item]
definitions = ';'.join(definitions)
else:
definitions = ';'.join(building.Env['CPPDEFINES'])
elem.set('PreprocessorDefinitions', definitions)
# write link flags