create only the project files specified on cmdline
authorChristoph von Wittich <christoph_vw@reactos.org>
Thu, 20 Oct 2005 14:27:02 +0000 (14:27 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Thu, 20 Oct 2005 14:27:02 +0000 (14:27 +0000)
svn path=/trunk/; revision=18631

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

index 39c7839..4ddc2a1 100644 (file)
@@ -92,8 +92,11 @@ void MSVCBackend::ProcessModules()
                Module &module = *ProjectNode.modules[i];\r
 \r
                module.guid = _gen_guid();\r
                Module &module = *ProjectNode.modules[i];\r
 \r
                module.guid = _gen_guid();\r
-               this->_generate_dsp ( module );\r
-               this->_generate_vcproj ( module );\r
+\r
+               if (configuration.VSProjectVersion == "6.00")\r
+                       this->_generate_dsp ( module );\r
+               else\r
+                       this->_generate_vcproj ( module );\r
 \r
 \r
                /*for(size_t k = 0; k < module.non_if_data.files.size(); k++)\r
 \r
 \r
                /*for(size_t k = 0; k < module.non_if_data.files.size(); k++)\r
index 8ac3a25..aa53c04 100644 (file)
@@ -419,13 +419,13 @@ MSVCBackend::_generate_sln_header ( FILE* OUT )
     string version;\r
 \r
     if (configuration.VSProjectVersion == "7.00")\r
     string version;\r
 \r
     if (configuration.VSProjectVersion == "7.00")\r
-       version = "7.00";\r
+               version = "7.00";\r
 \r
     if (configuration.VSProjectVersion == "7.10")\r
 \r
     if (configuration.VSProjectVersion == "7.10")\r
-       version = "8.00";\r
+               version = "8.00";\r
 \r
     if (configuration.VSProjectVersion == "8.00")\r
 \r
     if (configuration.VSProjectVersion == "8.00")\r
-       version = "9.00";\r
+               version = "9.00";\r
 \r
     fprintf ( OUT, "Microsoft Visual Studio Solution File, Format Version %s\r\n", version.c_str() );\r
     fprintf ( OUT, "# Visual Studio 2005\r\n" );\r
 \r
     fprintf ( OUT, "Microsoft Visual Studio Solution File, Format Version %s\r\n", version.c_str() );\r
     fprintf ( OUT, "# Visual Studio 2005\r\n" );\r
index 4b335df..377e6f5 100644 (file)
@@ -189,8 +189,7 @@ main ( int argc, char** argv )
        if ( !ParseArguments ( argc, argv ) )
        {
                printf ( "Generates project files for buildsystems\n\n" );
        if ( !ParseArguments ( argc, argv ) )
        {
                printf ( "Generates project files for buildsystems\n\n" );
-               printf ( "  rbuild [switches] buildsystem\n" );
-               printf ( "  rbuild msvc\n" );
+               printf ( "  rbuild [switches] buildsystem\n\n" );
                printf ( "Switches:\n" );
                printf ( "  -v            Be verbose.\n" );
                printf ( "  -c            Clean as you go. Delete generated files as soon as they are not\n" );
                printf ( "Switches:\n" );
                printf ( "  -v            Be verbose.\n" );
                printf ( "  -c            Clean as you go. Delete generated files as soon as they are not\n" );