mirror of
https://github.com/reactos/reactos.git
synced 2024-10-15 13:45:58 +00:00
Autogenerate syssetup.inf file in intermediate directory
svn path=/trunk/; revision=28118
This commit is contained in:
parent
cfda12103c
commit
10cc6c5d40
|
@ -14,7 +14,7 @@
|
|||
<installfile base="inf">nettcpip.inf</installfile>
|
||||
<installfile base="inf">ports.inf</installfile>
|
||||
<installfile base="inf">scsi.inf</installfile>
|
||||
<installfile base="inf">syssetup.inf</installfile>
|
||||
<installfile base="inf" root="intermediate">syssetup.inf</installfile>
|
||||
<installfile base="inf">usbport.inf</installfile>
|
||||
<installfile base="inf">usbstor.inf</installfile>
|
||||
<installfile base="inf">xboxdisp.inf</installfile>
|
||||
|
|
|
@ -40,6 +40,23 @@ InstallFile::InstallFile ( const Project& project_,
|
|||
else
|
||||
newname = node.value;
|
||||
name = node.value;
|
||||
|
||||
att = node.GetAttribute ( "root", false );
|
||||
if ( att != NULL)
|
||||
{
|
||||
if ( att->value == "intermediate" )
|
||||
this->path = Environment::GetIntermediatePath () + sSep + path;
|
||||
else if ( att->value == "output" )
|
||||
this->path = Environment::GetOutputPath () + sSep + path;
|
||||
else
|
||||
{
|
||||
throw InvalidAttributeValueException (
|
||||
node.location,
|
||||
"root",
|
||||
att->value );
|
||||
}
|
||||
}
|
||||
else
|
||||
this->path = path;
|
||||
}
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ SysSetupGenerator::Generate ()
|
|||
unsigned long errorLine;
|
||||
|
||||
string syssetupTemplate = "media" + sSep + "inf" + sSep + "syssetup.inf.tpl";
|
||||
string syssetup = "media" + sSep + "inf" + sSep + "syssetup.inf";
|
||||
string syssetup = Environment::GetIntermediatePath() + sSep + "media" + sSep + "inf" + sSep + "syssetup.inf";
|
||||
|
||||
if ( 0 != InfHostOpenFile ( &inf, syssetupTemplate.c_str (), &errorLine ) )
|
||||
throw new FileNotFoundException ( syssetupTemplate );
|
||||
|
|
Loading…
Reference in a new issue