static Configuration configuration;
bool
-ParseAutomaticDependencySwitch ( char switchChar2,
- char* switchStart )
+ParseAutomaticDependencySwitch (
+ char switchChar2,
+ char* switchStart )
{
switch ( switchChar2 )
{
}
bool
-ParseCompilationUnitSwitch ( char switchChar2,
- char* switchStart )
+ParseCompilationUnitSwitch (
+ char switchChar2,
+ char* switchStart )
{
switch ( switchChar2 )
{
}
bool
-ParseVCProjectSwitch ( char switchChar2,
- char* switchStart )
+ParseVCProjectSwitch (
+ char switchChar2,
+ char* switchStart )
{
switch ( switchChar2 )
{
{
case 'v':
if (switchChar2 == 's')
- return ParseVCProjectSwitch ( switchChar2,
- argv[index] );
+ {
+ return ParseVCProjectSwitch (
+ switchChar2,
+ argv[index] );
+ }
else
configuration.Verbose = true;
break;
configuration.CleanAsYouGo = true;
break;
case 'd':
- return ParseAutomaticDependencySwitch ( switchChar2,
- argv[index] );
+ return ParseAutomaticDependencySwitch (
+ switchChar2,
+ argv[index] );
case 'u':
- return ParseCompilationUnitSwitch ( switchChar2,
- argv[index] );
+ return ParseCompilationUnitSwitch (
+ switchChar2,
+ argv[index] );
case 'r':
RootXmlFile = string(&argv[index][2]);
break;
case 'p':
return ParseProxyMakefileSwitch ( switchChar2 );
default:
- printf ( "Unknown switch -%c\n",
- switchChar );
+ printf (
+ "Unknown switch -%c\n",
+ switchChar );
return false;
}
return true;
printf ( "done\n" );
project.WriteConfigurationFile ();
project.ExecuteInvocations ();
- Backend* backend = Backend::Factory::Create ( BuildSystem,
- project,
- configuration );
+ Backend* backend = Backend::Factory::Create (
+ BuildSystem,
+ project,
+ configuration );
backend->Process ();
delete backend;
return 0;
}
- catch (Exception& ex)
+ catch ( Exception& ex )
+ {
+ printf ( "%s\n", (*ex).c_str () );
+ return 1;
+ }
+ catch ( XMLException& ex )
{
- printf ( "%s\n",
- ex.Message.c_str () );
+ printf ( "%s\n", (*ex).c_str () );
return 1;
}
}