--- trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp 2005-11-02 14:18:40 UTC (rev 18950)
+++ trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp 2005-11-02 15:32:05 UTC (rev 18951)
@@ -367,6 +367,24 @@
const string& source_file = DosSeparator(source_files[isrcfile]);
fprintf ( OUT, "\t\t\t<File\r\n" );
fprintf ( OUT, "\t\t\t\tRelativePath=\"%s\">\r\n", source_file.c_str() );
+
+ if (configuration.VSProjectVersion < "8.00") {
+ if (source_file.at(source_file.size() - 1) == 'S') {
+ for ( size_t iconfig = 0; iconfig < cfgs.size(); iconfig++ )
+ {
+ std::string& config = cfgs[iconfig];
+ fprintf ( OUT, "\t\t\t\t<FileConfiguration\r\n" );
+ fprintf ( OUT, "\t\t\t\t\tName=\"" );
+ fprintf ( OUT, config.c_str());
+ fprintf ( OUT, "|Win32\">\r\n" );
+ fprintf ( OUT, "\t\t\t\t\t<Tool\r\n" );
+ fprintf ( OUT, "\t\t\t\t\t\tName=\"VCCustomBuildTool\"\r\n" );
+ fprintf ( OUT, "\t\t\t\t\t\tCommandLine=\"cl /E "$(InputPath)" | as -o "$(OutDir)\\$(InputName).obj"\"\r\n" );
+ fprintf ( OUT, "\t\t\t\t\t\tOutputs=\"$(OutDir)\\$(InputName).obj\"/>\r\n" );
+ fprintf ( OUT, "\t\t\t\t</FileConfiguration>\r\n" );
+ }
+ }
+ }
fprintf ( OUT, "\t\t\t</File>\r\n" );
}
fprintf ( OUT, "\t\t</Filter>\r\n" );