From aa6217223bca3940f1342d35628733c868400be1 Mon Sep 17 00:00:00 2001
From: Johannes Schickel
Date: Thu, 29 Apr 2010 15:30:09 +0000
Subject: Final patch from #2891357 "create_msvc: Add support for MSVC10".
svn-id: r48855
---
tools/create_msvc/create_msvc.cpp | 20 +++++++++-----------
tools/create_msvc/msvc10/create_msvc.vcxproj | 6 +++---
2 files changed, 12 insertions(+), 14 deletions(-)
diff --git a/tools/create_msvc/create_msvc.cpp b/tools/create_msvc/create_msvc.cpp
index 5dd4b05ffb..c2934562d4 100644
--- a/tools/create_msvc/create_msvc.cpp
+++ b/tools/create_msvc/create_msvc.cpp
@@ -1840,7 +1840,7 @@ int MSBuildProvider::getVisualStudioVersion() {
#define OUTPUT_PROPERTIES_MSBUILD(config, properties) \
project << "\t\n" \
- "\t\t\n" \
+ "\t\t\n" \
"\t\t\n" \
"\t\n"
@@ -1890,7 +1890,7 @@ void MSBuildProvider::createProjectFile(const std::string &name, const std::stri
// Project version number
project << "\t\n"
- "\t\t<_ProjectFileVersion>10.0.21006.1\n"; // FIXME: update temporary entry _ProjectFileVersion
+ "\t\t<_ProjectFileVersion>10.0.30319.1\n";
if (name == "scummvm")
project << "$(SCUMMVM_LIBS)\\bin;$(VCInstallDir)bin;$(WindowsSdkDir)bin\\NETFX 4.0 Tools;$(WindowsSdkDir)bin;$(VSInstallDir)Common7\\Tools\\bin;$(VSInstallDir)Common7\\tools;$(VSInstallDir)Common7\\ide;$(ProgramFiles)\\HTML Help Workshop;$(FrameworkSDKDir)\\bin;$(MSBuildToolsPath32);$(VSInstallDir);$(SystemRoot)\\SysWow64;$(FxCopDir);$(PATH)\n"
@@ -2041,12 +2041,11 @@ void MSBuildProvider::outputProjectSettings(std::ofstream &project, const std::s
project << "\t\n";
}
-void MSBuildProvider::outputGlobalPropFile(std::ofstream &properties, int bits, const std::string &defines, const std::string &prefix) {
- // FIXME: update temporary entries _ProjectFileVersion & _PropertySheetDisplayName
+void MSBuildProvider::outputGlobalPropFile(std::ofstream &properties, int bits, const std::string &defines, const std::string &prefix) {
properties << "\n"
"\n"
"\n"
- "<_ProjectFileVersion>10.0.21006.1\n"
+ "<_ProjectFileVersion>10.0.30319.1\n"
"<_PropertySheetDisplayName>ScummVM_Global\n"
"$(Configuration)" << bits << "\\\n"
"$(Configuration)" << bits << "/$(ProjectName)\\\n"
@@ -2087,14 +2086,13 @@ void MSBuildProvider::createBuildProp(const BuildSetup &setup, bool isRelease, b
if (!properties)
error("Could not open \"" + setup.outputDir + '/' + "ScummVM_" + outputType + (isWin32 ? "" : "64") + getPropertiesExtension() + "\" for writing");
- // FIXME: update temporary entries _ProjectFileVersion & _PropertySheetDisplayName
properties << "\n"
"\n"
"\t\n"
"\t\t\n"
"\t\n"
"\t\n"
- "\t\t<_ProjectFileVersion>10.0.21006.1\n"
+ "\t\t<_ProjectFileVersion>10.0.30319.1\n"
"\t\t<_PropertySheetDisplayName>ScummVM_" << outputType << outputBitness << "\n"
"\t\t" << (isRelease ? "false" : "true") << "\n"
"\t\n"
@@ -2136,12 +2134,12 @@ void MSBuildProvider::createBuildProp(const BuildSetup &setup, bool isRelease, b
}
#define OUTPUT_NASM_COMMAND_MSBUILD(config) \
- projectFile << "\t\t\tnasm.exe -f win32 -g -o \"$(IntDir)" << (isDuplicate ? (*entry).prefix : "") << "%(FileName).obj\" \"%(FullPath)\"\n" \
- "\t\t\t$(IntDir)" << (isDuplicate ? (*entry).prefix : "") << "%(FileName).obj;%(Outputs)\n";
+ projectFile << "\t\t\tnasm.exe -f win32 -g -o \"$(IntDir)" << (isDuplicate ? (*entry).prefix : "") << "%(Filename).obj\" \"%(FullPath)\"\n" \
+ "\t\t\t$(IntDir)" << (isDuplicate ? (*entry).prefix : "") << "%(Filename).obj;%(Outputs)\n";
#define OUPUT_OBJECT_FILENAME_MSBUILD(config, platform, prefix) \
- projectFile << "\t\t$(IntDir)" << prefix << "%(FileName).obj\n" \
- "\t\t$(IntDir)" << prefix << "%(FileName).xdc\n";
+ projectFile << "\t\t$(IntDir)" << prefix << "%(Filename).obj\n" \
+ "\t\t$(IntDir)" << prefix << "%(Filename).xdc\n";
#define OUPUT_FILES_MSBUILD(files, action) \
if (!files.empty()) { \
diff --git a/tools/create_msvc/msvc10/create_msvc.vcxproj b/tools/create_msvc/msvc10/create_msvc.vcxproj
index 27b3ea4e9d..371c4b7514 100644
--- a/tools/create_msvc/msvc10/create_msvc.vcxproj
+++ b/tools/create_msvc/msvc10/create_msvc.vcxproj
@@ -28,14 +28,14 @@
-
+
-
+
- <_ProjectFileVersion>10.0.21006.1
+ <_ProjectFileVersion>10.0.30319.1
$(SolutionDir)$(Configuration)\
$(Configuration)\
$(SolutionDir)$(Configuration)\
--
cgit v1.2.3