// XML.cpp\r
\r
-#ifdef _MSC_VER\r
-#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information\r
-#endif//_MSC_VER\r
+#include "pch.h"\r
\r
#include <direct.h>\r
#include <io.h>\r
\r
Path::Path()\r
{\r
+ if ( !working_directory.size() )\r
+ InitWorkingDirectory();\r
string s ( working_directory );\r
const char* p = strtok ( &s[0], "/\\" );\r
while ( p )\r
// XML.h\r
\r
-#ifndef __XML_H\r
-#define __XML_H\r
+#ifndef XML_H\r
+#define XML_H\r
\r
-#include <string>\r
-#include <vector>\r
+#include "pch.h"\r
\r
void\r
InitWorkingDirectory();\r
const Path& path,\r
bool* pend_tag = NULL);\r
\r
-#endif//__XML_H\r
+#endif//XML_H\r
-#ifdef _MSC_VER\r
-#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information\r
-#endif//_MSC_VER\r
+\r
+#include "../pch.h"\r
\r
#include "../Rbuild.h"\r
#include "backend.h"\r
-#ifdef _MSC_VER\r
-#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information\r
-#endif//_MSC_VER\r
\r
-//#include <stdlib.h> // mingw proves it's insanity once again\r
+#include "../../pch.h"\r
+\r
#include "mingw.h"\r
\r
MingwBackend::MingwBackend(Project& project)\r
-#ifdef _MSC_VER\r
-#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information\r
-#endif//_MSC_VER\r
\r
-#include <stdarg.h>\r
+#include "pch.h"\r
+\r
#include "rbuild.h"\r
\r
using std::string;\r
#ifndef __EXCEPTION_H\r
#define __EXCEPTION_H\r
\r
-#include <string>\r
+#include "pch.h"\r
\r
class Exception\r
{\r
// module.cpp\r
\r
-#ifdef _MSC_VER\r
-#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information\r
-#endif//_MSC_VER\r
+#include "pch.h"\r
\r
#include "rbuild.h"\r
\r
--- /dev/null
+// pre-compiled header stuff\r
+\r
+#ifndef PCH_H\r
+#define PCH_H\r
+\r
+#ifdef _MSC_VER\r
+#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information\r
+#endif//_MSC_VER\r
+\r
+#include <string>\r
+#include <vector>\r
+\r
+#include <stdarg.h>\r
+\r
+#endif//PCH_H\r
-#ifdef _MSC_VER\r
-#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information\r
-#endif//_MSC_VER\r
+\r
+#include "pch.h"\r
\r
#include "rbuild.h"\r
\r
// rbuild.cpp\r
\r
-#ifdef _MSC_VER\r
-#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information\r
-#endif//_MSC_VER\r
+#include "pch.h"\r
\r
#include <stdio.h>\r
#include <io.h>\r
#include <assert.h>\r
+\r
#include "rbuild.h"\r
\r
using std::string;\r
int\r
main ( int argc, char** argv )\r
{\r
- InitWorkingDirectory();\r
-\r
try\r
{\r
string projectFilename ( "ReactOS.xml" );\r
printf ( "\t%s in folder: %s\n",\r
m.name.c_str(),\r
m.path.c_str() );\r
- printf ( "\txml dependencies:\n\t\tReactOS.xml\n" );\r
+ printf ( "\txml dependencies:\n\t\t%s\n",\r
+ projectFilename.c_str() );\r
const XMLElement* e = &m.node;\r
while ( e )\r
{\r
#ifndef __RBUILD_H\r
#define __RBUILD_H\r
\r
-#include <string>\r
-#include <vector>\r
+#include "pch.h"\r
+\r
#include "ssprintf.h"\r
#include "exception.h"\r
#include "XML.h"\r
-#include <stdarg.h>\r
+\r
+#include "pch.h"\r
+\r
#include "rbuild.h"\r
#include "test.h"\r
\r