- Properly set STDCALL as default convention, previous patch incorrectly set it as...
[reactos.git] / reactos / tools / rbuild / backend / msvc / msvc.cpp
index e270911..83421e0 100644 (file)
@@ -54,10 +54,21 @@ MSVCBackend::MSVCBackend(Project &project,
 void MSVCBackend::Process()\r
 {\r
        string filename_sln ( ProjectNode.name );\r
+       string filename_rules = "gccasm.rules";\r
+       \r
        if ( configuration.VSProjectVersion == "6.00" )\r
                filename_sln += ".dsw";\r
-       else\r
+       else {\r
                filename_sln += ".sln";\r
+\r
+               m_rulesFile = fopen ( filename_rules.c_str(), "wb" );\r
+               if ( m_rulesFile )\r
+               {\r
+                       _generate_rules_file ( m_rulesFile );\r
+               }\r
+               fclose ( m_rulesFile );\r
+       }\r
+\r
        printf ( "Creating MSVC workspace: %s\n", filename_sln.c_str() );\r
        \r
        ProcessModules();\r
@@ -198,7 +209,7 @@ std::string
 MSVCBackend::DspFileName ( const Module& module ) const\r
 {\r
        return DosSeparator(\r
-               ReplaceExtension ( module.GetPath(), ".dsp" )\r
+               ReplaceExtension ( module.GetPath(), "_auto.dsp" )\r
                );\r
 }\r
 \r
@@ -206,6 +217,6 @@ std::string
 MSVCBackend::VcprojFileName ( const Module& module ) const\r
 {\r
        return DosSeparator(\r
-               ReplaceExtension ( module.GetPath(), ".vcproj" )\r
+               ReplaceExtension ( module.GetPath(), "_auto.vcproj" )\r
                );\r
 }\r