mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 20:22:05 +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
|
// XML.cpp
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#include "pch.h"
|
||||||
#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information
|
|
||||||
#endif//_MSC_VER
|
|
||||||
|
|
||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
|
@ -51,6 +49,8 @@ filelen ( FILE* f )
|
||||||
|
|
||||||
Path::Path()
|
Path::Path()
|
||||||
{
|
{
|
||||||
|
if ( !working_directory.size() )
|
||||||
|
InitWorkingDirectory();
|
||||||
string s ( working_directory );
|
string s ( working_directory );
|
||||||
const char* p = strtok ( &s[0], "/\\" );
|
const char* p = strtok ( &s[0], "/\\" );
|
||||||
while ( p )
|
while ( p )
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
// XML.h
|
// XML.h
|
||||||
|
|
||||||
#ifndef __XML_H
|
#ifndef XML_H
|
||||||
#define __XML_H
|
#define XML_H
|
||||||
|
|
||||||
#include <string>
|
#include "pch.h"
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
void
|
void
|
||||||
InitWorkingDirectory();
|
InitWorkingDirectory();
|
||||||
|
@ -80,4 +79,4 @@ XMLParse(XMLFile& f,
|
||||||
const Path& path,
|
const Path& path,
|
||||||
bool* pend_tag = NULL);
|
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
|
#include "../pch.h"
|
||||||
#endif//_MSC_VER
|
|
||||||
|
|
||||||
#include "../Rbuild.h"
|
#include "../Rbuild.h"
|
||||||
#include "backend.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"
|
#include "mingw.h"
|
||||||
|
|
||||||
MingwBackend::MingwBackend(Project& project)
|
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"
|
#include "rbuild.h"
|
||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef __EXCEPTION_H
|
#ifndef __EXCEPTION_H
|
||||||
#define __EXCEPTION_H
|
#define __EXCEPTION_H
|
||||||
|
|
||||||
#include <string>
|
#include "pch.h"
|
||||||
|
|
||||||
class Exception
|
class Exception
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
// module.cpp
|
// module.cpp
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#include "pch.h"
|
||||||
#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information
|
|
||||||
#endif//_MSC_VER
|
|
||||||
|
|
||||||
#include "rbuild.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
|
#include "pch.h"
|
||||||
#endif//_MSC_VER
|
|
||||||
|
|
||||||
#include "rbuild.h"
|
#include "rbuild.h"
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
// rbuild.cpp
|
// rbuild.cpp
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#include "pch.h"
|
||||||
#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information
|
|
||||||
#endif//_MSC_VER
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include "rbuild.h"
|
#include "rbuild.h"
|
||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
|
@ -15,8 +14,6 @@ using std::vector;
|
||||||
int
|
int
|
||||||
main ( int argc, char** argv )
|
main ( int argc, char** argv )
|
||||||
{
|
{
|
||||||
InitWorkingDirectory();
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string projectFilename ( "ReactOS.xml" );
|
string projectFilename ( "ReactOS.xml" );
|
||||||
|
@ -31,7 +28,8 @@ main ( int argc, char** argv )
|
||||||
printf ( "\t%s in folder: %s\n",
|
printf ( "\t%s in folder: %s\n",
|
||||||
m.name.c_str(),
|
m.name.c_str(),
|
||||||
m.path.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;
|
const XMLElement* e = &m.node;
|
||||||
while ( e )
|
while ( e )
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#ifndef __RBUILD_H
|
#ifndef __RBUILD_H
|
||||||
#define __RBUILD_H
|
#define __RBUILD_H
|
||||||
|
|
||||||
#include <string>
|
#include "pch.h"
|
||||||
#include <vector>
|
|
||||||
#include "ssprintf.h"
|
#include "ssprintf.h"
|
||||||
#include "exception.h"
|
#include "exception.h"
|
||||||
#include "XML.h"
|
#include "XML.h"
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#include <stdarg.h>
|
|
||||||
|
#include "pch.h"
|
||||||
|
|
||||||
#include "rbuild.h"
|
#include "rbuild.h"
|
||||||
#include "test.h"
|
#include "test.h"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue