diff options
author | Gary Oberbrunner <garyo@oberbrunner.com> | 2011-05-17 01:43:07 (GMT) |
---|---|---|
committer | Gary Oberbrunner <garyo@oberbrunner.com> | 2011-05-17 01:43:07 (GMT) |
commit | e50a61e499e80ce85376484da6d9eff0787342a6 (patch) | |
tree | 3fcaedf546cac151be66f87d59d0590e4f23c74e /src | |
parent | 821b65928a47a2b96e4569c6d06e6ce2b0099c62 (diff) | |
download | SCons-e50a61e499e80ce85376484da6d9eff0787342a6.zip SCons-e50a61e499e80ce85376484da6d9eff0787342a6.tar.gz SCons-e50a61e499e80ce85376484da6d9eff0787342a6.tar.bz2 |
msvs: prev commit missed VS10 case. Fixed here.
Diffstat (limited to 'src')
-rw-r--r-- | src/engine/SCons/Tool/msvs.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/msvs.py b/src/engine/SCons/Tool/msvs.py index 5414ada..6c273a7 100644 --- a/src/engine/SCons/Tool/msvs.py +++ b/src/engine/SCons/Tool/msvs.py @@ -1015,8 +1015,12 @@ class _GenerateV10DSP(_DSPGenerator): rebuildcmd = xmlify(starting + self.env.subst('$MSVSREBUILDCOM', 1) + cmdargs) cleancmd = xmlify(starting + self.env.subst('$MSVSCLEANCOM', 1) + cmdargs) + # This isn't perfect; CPPDEFINES and CPPPATH can contain $TARGET and $SOURCE, + # so they could vary depending on the command being generated. This code + # assumes they don't. preprocdefs = xmlify(';'.join(processDefines(self.env.get('CPPDEFINES', [])))) - includepath = xmlify(';'.join(self.env.get('CPPPATH', []))) + includepath_Dirs = processIncludes(self.env.get('CPPPATH', []), self.env, None, None) + includepath = xmlify(';'.join([str(x) for x in includepath_Dirs])) if not env_has_buildtarget: del self.env['MSVSBUILDTARGET'] |