MinGW backend.

svn path=/branches/xmlbuildsystem/; revision=12805
This commit is contained in:
Casper Hornstrup
2005-01-04 22:40:08 +00:00
parent 6f22300491
commit 4e36b04d0d
7 changed files with 61 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
#ifdef _MSC_VER
#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information
#endif//_MSC_VER
#include "backend.h"
Backend::Backend()
{
}
+14
View File
@@ -0,0 +1,14 @@
#ifndef __BACKEND_H
#define __BACKEND_H
#include "../rbuild.h"
class Backend
{
public:
Backend();
protected:
Project ProjectNode;
};
#endif /* __BACKEND_H */
@@ -0,0 +1,11 @@
#ifdef _MSC_VER
#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information
#endif//_MSC_VER
#if 0
#include "mingw.h"
MingwBackend::MingwBackend(Project project)
: ProjectNode(project)
{
}
#endif
@@ -0,0 +1,12 @@
#ifndef __MINGW_H
#define __MINGW_H
#if 0
#include "backend.h"
class MingwBackend : public Backend
{
public:
MingwBackend();
};
#endif
#endif /* __MINGW_H */
+10 -2
View File
@@ -4,7 +4,15 @@ TARGET = rbuild$(EXE_POSTFIX)
all: $(TARGET)
BACKEND_MINGW_BASE_OBJECTS = \
backend/mingw/mingw.cpp
BACKEND_BASE_OBJECTS = \
$(BACKEND_MINGW_BASE_OBJECTS) \
backend/backend.cpp
BASE_OBJECTS = \
$(BACKEND_BASE_OBJECTS) \
exception.o \
module.o \
project.o \
@@ -19,7 +27,7 @@ TESTS = \
TEST_OBJECTS = $(BASE_OBJECTS) $(TESTS) tests/alltests.o
HOST_CFLAGS = -g -I. -Werror -Wall
HOST_CXXFLAGS = -g -I. -Werror -Wall
HOST_LFLAGS = -g
@@ -45,7 +53,7 @@ endif
%.o: %.cpp
$(HALFVERBOSEECHO) [CXX] $<
$(HOST_CXX) $(HOST_CFLAGS) -c $< -o $@
$(HOST_CXX) $(HOST_CXXFLAGS) -c $< -o $@
test: rbuild_tests$(EXE_POSTFIX)
$(EXE_PREFIX)rbuild_tests$(EXE_POSTFIX)
+4
View File
@@ -7,6 +7,10 @@
using std::string;
using std::vector;
Project::Project()
{
}
Project::Project(string filename)
{
if ( !xmlfile.open ( filename ) )
+1
View File
@@ -17,6 +17,7 @@ public:
std::string name;
std::vector<Module*> modules;
Project ();
Project ( string filename );
~Project ();
void ProcessXML ( const XMLElement& e, const std::string& path );