Ticket #7741: 0008-create_project-Update-for-VS2010-RTM.patch
File 0008-create_project-Update-for-VS2010-RTM.patch, 7.3 KB (added by , 15 years ago) |
---|
-
tools/create_msvc/create_msvc.cpp
1840 1840 1841 1841 #define OUTPUT_PROPERTIES_MSBUILD(config, properties) \ 1842 1842 project << "\t<ImportGroup Condition=\"'$(Configuration)|$(Platform)'=='" << config << "'\" Label=\"PropertySheets\">\n" \ 1843 "\t\t<Import Project=\"$(UserRootDir)\\Microsoft.Cpp.$(Platform).user.props\" Condition=\"exists('$(UserRootDir)\\Microsoft.Cpp.$(Platform).user.props')\" />\n" \1843 "\t\t<Import Project=\"$(UserRootDir)\\Microsoft.Cpp.$(Platform).user.props\" Condition=\"exists('$(UserRootDir)\\Microsoft.Cpp.$(Platform).user.props')\" Label=\"LocalAppDataPlatform\" />\n" \ 1844 1844 "\t\t<Import Project=\"" << properties << "\" />\n" \ 1845 1845 "\t</ImportGroup>\n" 1846 1846 … … 1890 1890 1891 1891 // Project version number 1892 1892 project << "\t<PropertyGroup>\n" 1893 "\t\t<_ProjectFileVersion>10.0. 21006.1</_ProjectFileVersion>\n"; // FIXME: update temporary entry _ProjectFileVersion1893 "\t\t<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>\n"; 1894 1894 1895 1895 if (name == "scummvm") 1896 1896 project << "<ExecutablePath>$(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)</ExecutablePath>\n" … … 2041 2041 project << "\t</ItemDefinitionGroup>\n"; 2042 2042 } 2043 2043 2044 void MSBuildProvider::outputGlobalPropFile(std::ofstream &properties, int bits, const std::string &defines, const std::string &prefix) { 2045 // FIXME: update temporary entries _ProjectFileVersion & _PropertySheetDisplayName 2044 void MSBuildProvider::outputGlobalPropFile(std::ofstream &properties, int bits, const std::string &defines, const std::string &prefix) { 2046 2045 properties << "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" 2047 2046 "<Project DefaultTargets=\"Build\" ToolsVersion=\"4.0\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">\n" 2048 2047 "<PropertyGroup>\n" 2049 "<_ProjectFileVersion>10.0. 21006.1</_ProjectFileVersion>\n"2048 "<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>\n" 2050 2049 "<_PropertySheetDisplayName>ScummVM_Global</_PropertySheetDisplayName>\n" 2051 2050 "<OutDir>$(Configuration)" << bits << "\\</OutDir>\n" 2052 2051 "<IntDir>$(Configuration)" << bits << "/$(ProjectName)\\</IntDir>\n" … … 2087 2086 if (!properties) 2088 2087 error("Could not open \"" + setup.outputDir + '/' + "ScummVM_" + outputType + (isWin32 ? "" : "64") + getPropertiesExtension() + "\" for writing"); 2089 2088 2090 // FIXME: update temporary entries _ProjectFileVersion & _PropertySheetDisplayName2091 2089 properties << "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" 2092 2090 "<Project DefaultTargets=\"Build\" ToolsVersion=\"4.0\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">\n" 2093 2091 "\t<ImportGroup Label=\"PropertySheets\">\n" 2094 2092 "\t\t<Import Project=\"ScummVM_Global" << (isWin32 ? "" : "64") << ".props\" />\n" 2095 2093 "\t</ImportGroup>\n" 2096 2094 "\t<PropertyGroup>\n" 2097 "\t\t<_ProjectFileVersion>10.0. 21006.1</_ProjectFileVersion>\n"2095 "\t\t<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>\n" 2098 2096 "\t\t<_PropertySheetDisplayName>ScummVM_" << outputType << outputBitness << "</_PropertySheetDisplayName>\n" 2099 2097 "\t\t<LinkIncremental>" << (isRelease ? "false" : "true") << "</LinkIncremental>\n" 2100 2098 "\t</PropertyGroup>\n" … … 2136 2134 } 2137 2135 2138 2136 #define OUTPUT_NASM_COMMAND_MSBUILD(config) \ 2139 projectFile << "\t\t\t<Command Condition=\"'$(Configuration)|$(Platform)'=='" << config << "|Win32'\">nasm.exe -f win32 -g -o \"$(IntDir)" << (isDuplicate ? (*entry).prefix : "") << "%(File Name).obj\" \"%(FullPath)\"</Command>\n" \2140 "\t\t\t<Outputs Condition=\"'$(Configuration)|$(Platform)'=='" << config << "|Win32'\">$(IntDir)" << (isDuplicate ? (*entry).prefix : "") << "%(File Name).obj;%(Outputs)</Outputs>\n";2137 projectFile << "\t\t\t<Command Condition=\"'$(Configuration)|$(Platform)'=='" << config << "|Win32'\">nasm.exe -f win32 -g -o \"$(IntDir)" << (isDuplicate ? (*entry).prefix : "") << "%(Filename).obj\" \"%(FullPath)\"</Command>\n" \ 2138 "\t\t\t<Outputs Condition=\"'$(Configuration)|$(Platform)'=='" << config << "|Win32'\">$(IntDir)" << (isDuplicate ? (*entry).prefix : "") << "%(Filename).obj;%(Outputs)</Outputs>\n"; 2141 2139 2142 2140 #define OUPUT_OBJECT_FILENAME_MSBUILD(config, platform, prefix) \ 2143 projectFile << "\t\t<ObjectFileName Condition=\"'$(Configuration)|$(Platform)'=='" << config << "|" << platform << "'\">$(IntDir)" << prefix << "%(File Name).obj</ObjectFileName>\n" \2144 "\t\t<XMLDocumentationFileName Condition=\"'$(Configuration)|$(Platform)'=='" << config << "|" << platform << "'\">$(IntDir)" << prefix << "%(File Name).xdc</XMLDocumentationFileName>\n";2141 projectFile << "\t\t<ObjectFileName Condition=\"'$(Configuration)|$(Platform)'=='" << config << "|" << platform << "'\">$(IntDir)" << prefix << "%(Filename).obj</ObjectFileName>\n" \ 2142 "\t\t<XMLDocumentationFileName Condition=\"'$(Configuration)|$(Platform)'=='" << config << "|" << platform << "'\">$(IntDir)" << prefix << "%(Filename).xdc</XMLDocumentationFileName>\n"; 2145 2143 2146 2144 #define OUPUT_FILES_MSBUILD(files, action) \ 2147 2145 if (!files.empty()) { \ -
tools/create_msvc/msvc10/create_msvc.vcxproj
28 28 <ImportGroup Label="ExtensionSettings"> 29 29 </ImportGroup> 30 30 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> 31 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />31 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 32 32 </ImportGroup> 33 33 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> 34 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" />34 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 35 35 </ImportGroup> 36 36 <PropertyGroup Label="UserMacros" /> 37 37 <PropertyGroup> 38 <_ProjectFileVersion>10.0. 21006.1</_ProjectFileVersion>38 <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion> 39 39 <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration)\</OutDir> 40 40 <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration)\</IntDir> 41 41 <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration)\</OutDir>