diff options
| author | Bernard Xiong <[email protected]> | 2017-01-08 10:01:48 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2017-01-08 10:01:48 +0800 |
| commit | 475a3b8b8596a79d2dd7cf089e6461d460cef0d5 (patch) | |
| tree | 3f6ae3cfc36aede334637f324c9fe5360a780bb2 /tools/vs.py | |
| parent | 370250afbec434f2c75514ea80b326c96d0858dd (diff) | |
[Tools] fix CPPDEFINES issue in vs
Diffstat (limited to 'tools/vs.py')
| -rw-r--r-- | tools/vs.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/vs.py b/tools/vs.py index bd1c7a4b24..958d166d2d 100644 --- a/tools/vs.py +++ b/tools/vs.py @@ -108,7 +108,14 @@ def VSProject(target, script, program): # write cppdefinitons flags if building.Env.has_key('CPPDEFINES'): - definitions = ';'.join(building.Env['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 |
