mirror of
https://github.com/reactos/reactos.git
synced 2025-07-26 23:23:39 +00:00
pch.h can be used as pre-compiled header
svn path=/branches/xmlbuildsystem/; revision=12818
This commit is contained in:
parent
4ee64fd1b7
commit
039d7779de
12 changed files with 41 additions and 35 deletions
|
@ -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 @@ filelen ( FILE* f )
|
|||
|
||||
Path::Path()
|
||||
{
|
||||
if ( !working_directory.size() )
|
||||
InitWorkingDirectory();
|
||||
string s ( working_directory );
|
||||
const char* p = strtok ( &s[0], "/\\" );
|
||||
while ( p )
|
||||
|
|
|
@ -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 @@ XMLParse(XMLFile& f,
|
|||
const Path& path,
|
||||
bool* pend_tag = NULL);
|
||||
|
||||
#endif//__XML_H
|
||||
#endif//XML_H
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#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"
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef __EXCEPTION_H
|
||||
#define __EXCEPTION_H
|
||||
|
||||
#include <string>
|
||||
#include "pch.h"
|
||||
|
||||
class Exception
|
||||
{
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
15
reactos/tools/rbuild/pch.h
Normal file
15
reactos/tools/rbuild/pch.h
Normal file
|
@ -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
|
|
@ -1,6 +1,5 @@
|
|||
#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"
|
||||
|
||||
|
|
|
@ -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 @@ using std::vector;
|
|||
int
|
||||
main ( int argc, char** argv )
|
||||
{
|
||||
InitWorkingDirectory();
|
||||
|
||||
try
|
||||
{
|
||||
string projectFilename ( "ReactOS.xml" );
|
||||
|
@ -31,7 +28,8 @@ main ( int argc, char** argv )
|
|||
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 )
|
||||
{
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
#include <stdarg.h>
|
||||
|
||||
#include "pch.h"
|
||||
|
||||
#include "rbuild.h"
|
||||
#include "test.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue