mirror of
https://github.com/reactos/reactos.git
synced 2026-07-06 22:54:25 +08:00
Don't hardcode "Reactos.xml" name
svn path=/branches/xmlbuildsystem/; revision=14715
This commit is contained in:
@@ -17,6 +17,7 @@ using std::string;
|
||||
using std::vector;
|
||||
|
||||
static string BuildSystem;
|
||||
static string RootXmlFile = "ReactOS.xml";
|
||||
static bool Verbose = false;
|
||||
|
||||
bool
|
||||
@@ -28,6 +29,9 @@ ParseSwitch ( int argc, char** argv, int index )
|
||||
case 'v':
|
||||
Verbose = true;
|
||||
break;
|
||||
case 'r':
|
||||
RootXmlFile = string(&argv[index][2]);
|
||||
break;
|
||||
default:
|
||||
printf ( "Unknown switch -%c",
|
||||
switchChar );
|
||||
@@ -62,9 +66,10 @@ main ( int argc, char** argv )
|
||||
if ( !ParseArguments ( argc, argv ) )
|
||||
{
|
||||
printf ( "Generates project files for buildsystems\n\n" );
|
||||
printf ( " rbuild [-v] buildsystem\n\n" );
|
||||
printf ( " rbuild [-v] [-rfile.xml] buildsystem\n\n" );
|
||||
printf ( "Switches:\n" );
|
||||
printf ( " -v Be verbose\n" );
|
||||
printf ( " -rfile.xml Name of the root xml file. Default is ReactOS.xml\n" );
|
||||
printf ( "\n" );
|
||||
printf ( " buildsystem Target build system. Can be one of:\n" );
|
||||
printf ( " mingw MinGW\n" );
|
||||
@@ -73,7 +78,7 @@ main ( int argc, char** argv )
|
||||
}
|
||||
try
|
||||
{
|
||||
string projectFilename ( "ReactOS.xml" );
|
||||
string projectFilename ( RootXmlFile );
|
||||
printf ( "Reading build files..." );
|
||||
Project project ( projectFilename );
|
||||
printf ( "done\n" );
|
||||
|
||||
Reference in New Issue
Block a user