don't use VCToolsFile anymore because of different include dirs for subprojects
[reactos.git] / reactos / tools / rbuild / backend / msvc / msvc.cpp
index 3f0d8c0..e7581bf 100644 (file)
@@ -53,8 +53,22 @@ MSVCBackend::MSVCBackend(Project &project,
 \r
 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
+               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
-       string filename_sln = ProjectNode.name + ".sln";\r
        printf ( "Creating MSVC workspace: %s\n", filename_sln.c_str() );\r
        \r
        ProcessModules();\r
@@ -66,7 +80,11 @@ void MSVCBackend::Process()
                return;\r
        }\r
 \r
-       _generate_sln ( m_slnFile );\r
+       if ( configuration.VSProjectVersion == "6.00" )\r
+               _generate_wine_dsw ( m_slnFile );\r
+       else\r
+               _generate_sln ( m_slnFile );\r
+\r
        fclose ( m_slnFile );\r
        printf ( "Done.\n" );\r
 }\r
@@ -191,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
@@ -199,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