mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +00:00
Fix the build system, accidently broke it with r27269
svn path=/trunk/; revision=27276
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
<include>.</include>
|
||||
<include>include</include>
|
||||
<include>include/psdk</include>
|
||||
<include base="__intermediate">include/psdk</include>
|
||||
<include root="intermediate">include/psdk</include>
|
||||
<include>include/dxsdk</include>
|
||||
<include>include/crt</include>
|
||||
<include>include/ddk</include>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<importlibrary definition="hhctrl.ocx.spec.def" />
|
||||
<include base="hhctrl">.</include>
|
||||
<include base="ReactOS">include/reactos/wine</include>
|
||||
<include base="ReactOS" root="intermediate">include/reactos/wine</include>
|
||||
<define name="__REACTOS__" />
|
||||
<define name="__WINESRC__" />
|
||||
<define name="__USE_W32API" />
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<autoregister infsection="OleControlDlls" type="DllRegisterServer" />
|
||||
<importlibrary definition="ole32.spec.def" />
|
||||
<include base="ole32">.</include>
|
||||
<include base="ole32" root="intermediate">.</include>
|
||||
<include base="ReactOS">include/reactos/wine</include>
|
||||
<define name="__REACTOS__" />
|
||||
<define name="__WINESRC__" />
|
||||
|
||||
@@ -684,9 +684,9 @@ MingwModuleHandler::GenerateGccIncludeParametersFromVector ( const vector<Includ
|
||||
Include& include = *includes[i];
|
||||
if ( parameters.length () > 0 )
|
||||
parameters += " ";
|
||||
if ( include.baseValue == "__intermediate" )
|
||||
if ( include.root == "intermediate" )
|
||||
path_prefix = backend->intermediateDirectory->name + cSep;
|
||||
else if (include.baseValue == "__output" )
|
||||
else if (include.root == "output" )
|
||||
path_prefix = backend->outputDirectory->name + cSep;
|
||||
else
|
||||
path_prefix = "";
|
||||
@@ -797,7 +797,7 @@ MingwModuleHandler::GenerateMacro (
|
||||
for ( i = 0; i < data.includes.size(); i++ )
|
||||
{
|
||||
const Include& include = *data.includes[i];
|
||||
string includeDirectory;
|
||||
string includeDirectory, path_prefix;
|
||||
if ( include.baseModule != NULL &&
|
||||
( include.baseModule->type == RpcServer ||
|
||||
include.baseModule->type == RpcClient ||
|
||||
@@ -806,9 +806,18 @@ MingwModuleHandler::GenerateMacro (
|
||||
backend->intermediateDirectory );
|
||||
else
|
||||
includeDirectory = include.directory;
|
||||
|
||||
if ( include.root == "intermediate" )
|
||||
path_prefix = backend->intermediateDirectory->name + cSep;
|
||||
else if (include.root == "output" )
|
||||
path_prefix = backend->outputDirectory->name + cSep;
|
||||
else
|
||||
path_prefix = "";
|
||||
|
||||
fprintf (
|
||||
fMakefile,
|
||||
" -I%s",
|
||||
" -I%s%s",
|
||||
path_prefix.c_str(),
|
||||
includeDirectory.c_str() );
|
||||
}
|
||||
for ( i = 0; i < data.defines.size(); i++ )
|
||||
|
||||
@@ -52,7 +52,6 @@ Include::Include ( const Project& project,
|
||||
{
|
||||
this->directory = NormalizeFilename ( basePath + sSep + directory );
|
||||
this->basePath = NormalizeFilename ( basePath );
|
||||
this->baseValue = basePath;
|
||||
}
|
||||
|
||||
Include::~Include ()
|
||||
@@ -67,18 +66,12 @@ Include::ProcessXML()
|
||||
if ( att )
|
||||
{
|
||||
bool referenceResolved = false;
|
||||
baseValue = att->value;
|
||||
|
||||
if ( !module )
|
||||
{
|
||||
if ( att->value == "__intermediate" || att->value == "__output" )
|
||||
referenceResolved = true;
|
||||
else
|
||||
{
|
||||
throw XMLInvalidBuildFileException (
|
||||
node->location,
|
||||
"'base' attribute illegal from global <include>" );
|
||||
}
|
||||
throw XMLInvalidBuildFileException (
|
||||
node->location,
|
||||
"'base' attribute illegal from global <include>" );
|
||||
}
|
||||
|
||||
if ( !referenceResolved )
|
||||
@@ -109,4 +102,18 @@ Include::ProcessXML()
|
||||
}
|
||||
else
|
||||
directory = NormalizeFilename ( node->value );
|
||||
|
||||
att = node->GetAttribute ( "root", false );
|
||||
if ( att )
|
||||
{
|
||||
if ( att->value != "intermediate" && att->value != "output" )
|
||||
{
|
||||
throw InvalidAttributeValueException (
|
||||
node->location,
|
||||
"root",
|
||||
att->value );
|
||||
}
|
||||
|
||||
root = att->value;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -366,7 +366,7 @@ public:
|
||||
const Module* baseModule;
|
||||
std::string directory;
|
||||
std::string basePath;
|
||||
std::string baseValue;
|
||||
std::string root;
|
||||
|
||||
Include ( const Project& project,
|
||||
const XMLElement* includeNode );
|
||||
|
||||
Reference in New Issue
Block a user