mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 12:23:31 +00:00
MinGW backend.
svn path=/branches/xmlbuildsystem/; revision=12805
This commit is contained in:
@@ -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()
|
||||
{
|
||||
}
|
||||
@@ -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 */
|
||||
@@ -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)
|
||||
|
||||
@@ -7,6 +7,10 @@
|
||||
using std::string;
|
||||
using std::vector;
|
||||
|
||||
Project::Project()
|
||||
{
|
||||
}
|
||||
|
||||
Project::Project(string filename)
|
||||
{
|
||||
if ( !xmlfile.open ( filename ) )
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user