summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Smith <robs@microsoft.com>2015-07-20 22:12:33 (GMT)
committerRob Smith <robs@microsoft.com>2015-07-20 22:12:33 (GMT)
commit2f8fdfd1097e76d9fa873788cd39b55a9fee6c0b (patch)
tree662b20cb07120a361b2ac886163bf7d06e9dfb59
parenta8fe6f3f7b5173d30e863aa602871f7f1c2503b6 (diff)
downloadSCons-2f8fdfd1097e76d9fa873788cd39b55a9fee6c0b.zip
SCons-2f8fdfd1097e76d9fa873788cd39b55a9fee6c0b.tar.gz
SCons-2f8fdfd1097e76d9fa873788cd39b55a9fee6c0b.tar.bz2
Add VS14 support to the solution generation code and fix the solution version number (12.0)
-rw-r--r--QMTest/TestSConsMSVS.py2
-rw-r--r--src/engine/SCons/Tool/msvs.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/QMTest/TestSConsMSVS.py b/QMTest/TestSConsMSVS.py
index 50a7956..65a09eb 100644
--- a/QMTest/TestSConsMSVS.py
+++ b/QMTest/TestSConsMSVS.py
@@ -515,7 +515,7 @@ EndGlobal
"""
expected_slnfile_14_0 = """\
-Microsoft Visual Studio Solution File, Format Version 14.00
+Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Test.vcxproj", "Test.vcxproj", "{39A97E1F-1A52-8954-A0B1-A10A8487545E}"
EndProject
diff --git a/src/engine/SCons/Tool/msvs.py b/src/engine/SCons/Tool/msvs.py
index d00413d..8b74cf4 100644
--- a/src/engine/SCons/Tool/msvs.py
+++ b/src/engine/SCons/Tool/msvs.py
@@ -1535,7 +1535,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 >= 11.0:
+ if self.version_num >= 12.0:
+ self.file.write('# Visual Studio 14\n')
+ elif self.version_num >= 11.0:
self.file.write('# Visual Studio 11\n')
elif self.version_num >= 10.0:
self.file.write('# Visual Studio 2010\n')