diff options
author | Gary Oberbrunner <garyo@oberbrunner.com> | 2010-08-12 01:27:19 (GMT) |
---|---|---|
committer | Gary Oberbrunner <garyo@oberbrunner.com> | 2010-08-12 01:27:19 (GMT) |
commit | 3dbb30e02538ae489ba1fe65d2771f773906107d (patch) | |
tree | 990559378e301b5d9ca85ef9406859da6769a123 /src | |
parent | ecaa97dbf0b3c4d4b19efd23716d851b0e7a0e85 (diff) | |
download | SCons-3dbb30e02538ae489ba1fe65d2771f773906107d.zip SCons-3dbb30e02538ae489ba1fe65d2771f773906107d.tar.gz SCons-3dbb30e02538ae489ba1fe65d2771f773906107d.tar.bz2 |
Added generation of solution and projects for MSVS 2008 (Evgeny Podjachev)
Diffstat (limited to 'src')
-rw-r--r-- | src/CHANGES.txt | 5 | ||||
-rw-r--r-- | src/engine/SCons/Tool/msvs.py | 16 |
2 files changed, 16 insertions, 5 deletions
diff --git a/src/CHANGES.txt b/src/CHANGES.txt index cf28f38..4c1bc5b 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -7,6 +7,11 @@ RELEASE 2.1.0.alpha.yyyymmdd - NEW DATE WILL BE INSERTED HERE + From Evgeny Podjachev: + + - Support generation of Microsoft Visual Studio 2008 (9.0) + project and solution files. + From Ken Deeter: - Fix a problem when FS Entries which are actually Dirs have builders. diff --git a/src/engine/SCons/Tool/msvs.py b/src/engine/SCons/Tool/msvs.py index 59b2ffc..cc26500 100644 --- a/src/engine/SCons/Tool/msvs.py +++ b/src/engine/SCons/Tool/msvs.py @@ -620,7 +620,11 @@ class _GenerateV7DSP(_DSPGenerator): _DSPGenerator.__init__(self, dspfile, source, env) self.version = env['MSVS_VERSION'] self.version_num, self.suite = msvs_parse_version(self.version) - if self.version_num >= 8.0: + if self.version_num >= 9.0: + self.versionstr = '9.00' + self.dspheader = V8DSPHeader + self.dspconfiguration = V8DSPConfiguration + elif self.version_num >= 8.0: self.versionstr = '8.00' self.dspheader = V8DSPHeader self.dspconfiguration = V8DSPConfiguration @@ -892,12 +896,12 @@ class _GenerateV7DSW(_DSWGenerator): self.version = self.env['MSVS_VERSION'] self.version_num, self.suite = msvs_parse_version(self.version) self.versionstr = '7.00' - if self.version_num >= 8.0: + if self.version_num >= 9.0: + self.versionstr = '10.00' + elif self.version_num >= 8.0: self.versionstr = '9.00' elif self.version_num >= 7.1: self.versionstr = '8.00' - if self.version_num >= 8.0: - self.versionstr = '9.00' if 'slnguid' in env and env['slnguid']: self.slnguid = env['slnguid'] @@ -994,7 +998,9 @@ class _GenerateV7DSW(_DSWGenerator): def PrintSolution(self): """Writes a solution file""" self.file.write('Microsoft Visual Studio Solution File, Format Version %s\n' % self.versionstr ) - if self.version_num >= 8.0: + if self.version_num >= 9.0: + self.file.write('# Visual Studio 2008\n') + elif self.version_num >= 8.0: self.file.write('# Visual Studio 2005\n') for dspinfo in self.dspfiles_info: name = dspinfo['NAME'] |