mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:53:07 +00:00
attribute 'first' of <file> must be 'true' or 'false'
remove an obsolete comment svn path=/branches/xmlbuildsystem/; revision=13191
This commit is contained in:
parent
f7201d8993
commit
23a949dd32
3 changed files with 12 additions and 4 deletions
|
@ -29,7 +29,7 @@
|
|||
<directory name="ke">
|
||||
<if property="ARCH" value="i386">
|
||||
<directory name="i386">
|
||||
<file first="1">multiboot.S</file>
|
||||
<file first="true">multiboot.S</file>
|
||||
<file>bios.c</file>
|
||||
<file>brkpoint.c</file>
|
||||
<file>bthread.S</file>
|
||||
|
|
|
@ -628,7 +628,6 @@ XMLReadFile ( XMLFile& f, XMLElement& head, XMLIncludes& includes, const Path& p
|
|||
XMLElement*
|
||||
XMLLoadInclude ( XMLElement* e, const Path& path, XMLIncludes& includes )
|
||||
{
|
||||
// TODO FIXME
|
||||
XMLAttribute* att;
|
||||
att = e->GetAttribute("href",true);
|
||||
assert(att);
|
||||
|
|
|
@ -111,9 +111,18 @@ Module::ProcessXMLSubElement ( const XMLElement& e,
|
|||
string subpath ( path );
|
||||
if ( e.name == "file" && e.value.size () > 0 )
|
||||
{
|
||||
bool first = false;
|
||||
const XMLAttribute* att = e.GetAttribute ( "first", false );
|
||||
File* pFile = new File ( FixSeparator ( path + CSEP + e.value ),
|
||||
att && atoi(att->value.c_str()) != 0 );
|
||||
if ( att )
|
||||
{
|
||||
if ( !stricmp ( att->value.c_str(), "true" ) )
|
||||
first = true;
|
||||
else if ( stricmp ( att->value.c_str(), "false" ) )
|
||||
throw InvalidBuildFileException (
|
||||
e.location,
|
||||
"attribute 'first' of <file> element can only be 'true' or 'false'" );
|
||||
}
|
||||
File* pFile = new File ( FixSeparator ( path + CSEP + e.value ), first );
|
||||
if ( pIf )
|
||||
pIf->files.push_back ( pFile );
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue