pch.h can be used as pre-compiled header Modified: branches/xmlbuildsystem/reactos/tools/rbuild/XML.cpp Modified: branches/xmlbuildsystem/reactos/tools/rbuild/XML.h Modified: branches/xmlbuildsystem/reactos/tools/rbuild/backend/backend.cpp Modified: branches/xmlbuildsystem/reactos/tools/rbuild/backend/mingw/mingw.cpp Modified: branches/xmlbuildsystem/reactos/tools/rbuild/exception.cpp Modified: branches/xmlbuildsystem/reactos/tools/rbuild/exception.h Modified: branches/xmlbuildsystem/reactos/tools/rbuild/module.cpp Added: branches/xmlbuildsystem/reactos/tools/rbuild/pch.h Modified: branches/xmlbuildsystem/reactos/tools/rbuild/project.cpp Modified: branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.cpp Modified: branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.h Modified: branches/xmlbuildsystem/reactos/tools/rbuild/tests/alltests.cpp _____
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/XML.cpp --- branches/xmlbuildsystem/reactos/tools/rbuild/XML.cpp 2005-01-05 04:16:23 UTC (rev 12817) +++ branches/xmlbuildsystem/reactos/tools/rbuild/XML.cpp 2005-01-05 05:09:38 UTC (rev 12818) @@ -1,8 +1,6 @@
// XML.cpp
-#ifdef _MSC_VER -#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information -#endif//_MSC_VER +#include "pch.h"
#include <direct.h> #include <io.h> @@ -51,6 +49,8 @@
Path::Path() { + if ( !working_directory.size() ) + InitWorkingDirectory(); string s ( working_directory ); const char* p = strtok ( &s[0], "/\" ); while ( p ) _____
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/XML.h --- branches/xmlbuildsystem/reactos/tools/rbuild/XML.h 2005-01-05 04:16:23 UTC (rev 12817) +++ branches/xmlbuildsystem/reactos/tools/rbuild/XML.h 2005-01-05 05:09:38 UTC (rev 12818) @@ -1,10 +1,9 @@
// XML.h
-#ifndef __XML_H -#define __XML_H +#ifndef XML_H +#define XML_H
-#include <string> -#include <vector> +#include "pch.h"
void InitWorkingDirectory(); @@ -80,4 +79,4 @@ const Path& path, bool* pend_tag = NULL);
-#endif//__XML_H +#endif//XML_H _____
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/backend/backend.cpp --- branches/xmlbuildsystem/reactos/tools/rbuild/backend/backend.cpp 2005-01-05 04:16:23 UTC (rev 12817) +++ branches/xmlbuildsystem/reactos/tools/rbuild/backend/backend.cpp 2005-01-05 05:09:38 UTC (rev 12818) @@ -1,7 +1,6 @@
-#ifdef _MSC_VER -#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information -#endif//_MSC_VER
+#include "../pch.h" + #include "../Rbuild.h" #include "backend.h"
_____
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/backend/mingw/mingw.cpp --- branches/xmlbuildsystem/reactos/tools/rbuild/backend/mingw/mingw.cpp 2005-01-05 04:16:23 UTC (rev 12817) +++ branches/xmlbuildsystem/reactos/tools/rbuild/backend/mingw/mingw.cpp 2005-01-05 05:09:38 UTC (rev 12818) @@ -1,8 +1,6 @@
-#ifdef _MSC_VER -#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information -#endif//_MSC_VER
-//#include <stdlib.h> // mingw proves it's insanity once again +#include "../../pch.h" + #include "mingw.h"
MingwBackend::MingwBackend(Project& project) _____
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/exception.cpp --- branches/xmlbuildsystem/reactos/tools/rbuild/exception.cpp 2005-01-05 04:16:23 UTC (rev 12817) +++ branches/xmlbuildsystem/reactos/tools/rbuild/exception.cpp 2005-01-05 05:09:38 UTC (rev 12818) @@ -1,8 +1,6 @@
-#ifdef _MSC_VER -#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information -#endif//_MSC_VER
-#include <stdarg.h> +#include "pch.h" + #include "rbuild.h"
using std::string; _____
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/exception.h --- branches/xmlbuildsystem/reactos/tools/rbuild/exception.h 2005-01-05 04:16:23 UTC (rev 12817) +++ branches/xmlbuildsystem/reactos/tools/rbuild/exception.h 2005-01-05 05:09:38 UTC (rev 12818) @@ -1,7 +1,7 @@
#ifndef __EXCEPTION_H #define __EXCEPTION_H
-#include <string> +#include "pch.h"
class Exception { _____
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/module.cpp --- branches/xmlbuildsystem/reactos/tools/rbuild/module.cpp 2005-01-05 04:16:23 UTC (rev 12817) +++ branches/xmlbuildsystem/reactos/tools/rbuild/module.cpp 2005-01-05 05:09:38 UTC (rev 12818) @@ -1,8 +1,6 @@
// module.cpp
-#ifdef _MSC_VER -#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information -#endif//_MSC_VER +#include "pch.h"
#include "rbuild.h"
_____
Added: branches/xmlbuildsystem/reactos/tools/rbuild/pch.h --- branches/xmlbuildsystem/reactos/tools/rbuild/pch.h 2005-01-05 04:16:23 UTC (rev 12817) +++ branches/xmlbuildsystem/reactos/tools/rbuild/pch.h 2005-01-05 05:09:38 UTC (rev 12818) @@ -0,0 +1,15 @@
+// pre-compiled header stuff + +#ifndef PCH_H +#define PCH_H + +#ifdef _MSC_VER +#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information +#endif//_MSC_VER + +#include <string> +#include <vector> + +#include <stdarg.h> + +#endif//PCH_H _____
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/project.cpp --- branches/xmlbuildsystem/reactos/tools/rbuild/project.cpp 2005-01-05 04:16:23 UTC (rev 12817) +++ branches/xmlbuildsystem/reactos/tools/rbuild/project.cpp 2005-01-05 05:09:38 UTC (rev 12818) @@ -1,7 +1,6 @@
-#ifdef _MSC_VER -#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information -#endif//_MSC_VER
+#include "pch.h" + #include "rbuild.h"
using std::string; _____
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.cpp --- branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.cpp 2005-01-05 04:16:23 UTC (rev 12817) +++ branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.cpp 2005-01-05 05:09:38 UTC (rev 12818) @@ -1,12 +1,11 @@
// rbuild.cpp
-#ifdef _MSC_VER -#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information -#endif//_MSC_VER +#include "pch.h"
#include <stdio.h> #include <io.h> #include <assert.h> + #include "rbuild.h"
using std::string; @@ -15,8 +14,6 @@ int main ( int argc, char** argv ) { - InitWorkingDirectory(); - try { string projectFilename ( "ReactOS.xml" ); @@ -31,7 +28,8 @@ printf ( "\t%s in folder: %s\n", m.name.c_str(), m.path.c_str() ); - printf ( "\txml dependencies:\n\t\tReactOS.xml\n" ); + printf ( "\txml dependencies:\n\t\t%s\n", + projectFilename.c_str() ); const XMLElement* e = &m.node; while ( e ) { _____
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.h --- branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.h 2005-01-05 04:16:23 UTC (rev 12817) +++ branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.h 2005-01-05 05:09:38 UTC (rev 12818) @@ -1,8 +1,8 @@
#ifndef __RBUILD_H #define __RBUILD_H
-#include <string> -#include <vector> +#include "pch.h" + #include "ssprintf.h" #include "exception.h" #include "XML.h" _____
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/tests/alltests.cpp --- branches/xmlbuildsystem/reactos/tools/rbuild/tests/alltests.cpp 2005-01-05 04:16:23 UTC (rev 12817) +++ branches/xmlbuildsystem/reactos/tools/rbuild/tests/alltests.cpp 2005-01-05 05:09:38 UTC (rev 12818) @@ -1,4 +1,6 @@
-#include <stdarg.h> + +#include "pch.h" + #include "rbuild.h" #include "test.h"