* compile .S files with MSVC2002/2003 too
authorChristoph von Wittich <christoph_vw@reactos.org>
Wed, 2 Nov 2005 15:32:05 +0000 (15:32 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Wed, 2 Nov 2005 15:32:05 +0000 (15:32 +0000)
svn path=/trunk/; revision=18951

reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp

index feae037..5c1a7bb 100644 (file)
@@ -367,6 +367,24 @@ MSVCBackend::_generate_vcproj ( const Module& module )
                const string& source_file = DosSeparator(source_files[isrcfile]);\r
                fprintf ( OUT, "\t\t\t<File\r\n" );\r
                fprintf ( OUT, "\t\t\t\tRelativePath=\"%s\">\r\n", source_file.c_str() );\r
+\r
+               if (configuration.VSProjectVersion < "8.00") {\r
+                       if (source_file.at(source_file.size() - 1) == 'S') {\r
+                               for ( size_t iconfig = 0; iconfig < cfgs.size(); iconfig++ )\r
+                               {\r
+                                       std::string& config = cfgs[iconfig];\r
+                                       fprintf ( OUT, "\t\t\t\t<FileConfiguration\r\n" );\r
+                                       fprintf ( OUT, "\t\t\t\t\tName=\"" );\r
+                                       fprintf ( OUT, config.c_str());\r
+                                       fprintf ( OUT, "|Win32\">\r\n" );\r
+                                       fprintf ( OUT, "\t\t\t\t\t<Tool\r\n" );\r
+                                       fprintf ( OUT, "\t\t\t\t\t\tName=\"VCCustomBuildTool\"\r\n" );\r
+                                       fprintf ( OUT, "\t\t\t\t\t\tCommandLine=\"cl /E &quot;$(InputPath)&quot; | as -o &quot;$(OutDir)\\$(InputName).obj&quot;\"\r\n" );\r
+                                       fprintf ( OUT, "\t\t\t\t\t\tOutputs=\"$(OutDir)\\$(InputName).obj\"/>\r\n" );\r
+                                       fprintf ( OUT, "\t\t\t\t</FileConfiguration>\r\n" );\r
+                               }\r
+                       }\r
+               }\r
                fprintf ( OUT, "\t\t\t</File>\r\n" );\r
        }\r
        fprintf ( OUT, "\t\t</Filter>\r\n" );\r