add . to list of include directories for all projects
[reactos.git] / reactos / tools / rbuild / backend / msvc / msvcmaker.cpp
index 2c64105..dac5942 100644 (file)
@@ -308,6 +308,7 @@ MSVCBackend::_generate_dsp ( const Module& module )
                        }
                }
 
+               fprintf ( OUT, " /I \".\"" );
                for ( i = 0; i < defines.size(); i++ )
                {
                        fprintf ( OUT, " /D \"%s\"", defines[i].c_str() );
@@ -406,6 +407,7 @@ MSVCBackend::_generate_dsp ( const Module& module )
                        }
                }
 
+               fprintf ( OUT, " /I \".\"" );
                for ( i = 0; i < defines2.size(); i++ )
                {
                        const string& define = defines2[i];
@@ -534,7 +536,7 @@ MSVCBackend::_generate_dsp ( const Module& module )
                fprintf ( OUT, "!ENDIF \r\n" );
                fprintf ( OUT, "\r\n" );
        }
-
+#if 0
        if ( module.name == "winebuild" )
        {
                fprintf ( OUT, "# Begin Special Build Tool\r\n" );
@@ -547,6 +549,7 @@ MSVCBackend::_generate_dsp ( const Module& module )
                        output_dir.c_str() );
                fprintf ( OUT, "# End Special Build Tool\r\n" );
        }
+#endif
        fprintf ( OUT, "# Begin Target\r\n" );
        fprintf ( OUT, "\r\n" );
        for ( i = 0; i < cfgs.size(); i++ )
@@ -566,7 +569,7 @@ MSVCBackend::_generate_dsp ( const Module& module )
                {
                        source_file = string(".\\") + source_file;
                }
-
+#if 0
                if ( !strcmp ( &source_file[source_file.size()-5], ".spec" ) )
                {
                        string basename = string ( source_file.c_str(), source_file.size() - 5 );
@@ -580,7 +583,7 @@ MSVCBackend::_generate_dsp ( const Module& module )
                        fprintf ( OUT, "SOURCE=%s\r\n", dbg_c_file.c_str() );
                        fprintf ( OUT, "# End Source File\r\n" );
                }
-
+#endif
                fprintf ( OUT, "# Begin Source File\r\n" );
                fprintf ( OUT, "\r\n" );
 
@@ -588,6 +591,7 @@ MSVCBackend::_generate_dsp ( const Module& module )
 
                if ( !strcmp ( &source_file[source_file.size()-5], ".spec" ) )
                {
+#if 0
                        string basename = string ( source_file.c_str(), source_file.size() - 5 );
 
                        string spec_file = source_file;
@@ -661,6 +665,7 @@ MSVCBackend::_generate_dsp ( const Module& module )
                        fprintf ( OUT, "\"%s\" : $(SOURCE) \"$(INTDIR)\" \"$(OUTDIR)\"\r\n", dbg_c_file.c_str() );
                        fprintf ( OUT, "   $(BuildCmds)\r\n" );
                        fprintf ( OUT, "# End Custom Build\r\n" );
+#endif
                }
                /*else if ( source_file =~ /([^\\]*?\.h)$/ )
                {
@@ -707,7 +712,6 @@ MSVCBackend::_generate_dsp ( const Module& module )
                fprintf ( OUT, "# End Source File\r\n" );
        }
        fprintf ( OUT, "# End Group\r\n" );
-
        fprintf ( OUT, "# Begin Group \"Header Files\"\r\n" );
        fprintf ( OUT, "\r\n" );
        fprintf ( OUT, "# PROP Default_Filter \"h;hpp;hxx;hm;inl\"\r\n" );