Fix separators for .rbuild files in the generated makefile

Add a 'don't care' value for types and host.

svn path=/trunk/; revision=31870
This commit is contained in:
Hervé Poussineau 2008-01-18 16:55:56 +00:00
parent 462e70bed3
commit 83ea0639c1
3 changed files with 16 additions and 2 deletions

View file

@ -71,6 +71,8 @@ Bootstrap::IsSupportedModuleType ( ModuleType type )
case EmbeddedTypeLib:
case ElfExecutable:
return false;
case TypeDontCare:
break;
}
throw InvalidOperationException ( __FILE__,
__LINE__ );

View file

@ -254,7 +254,7 @@ Module::Module ( const Project& project,
__LINE__,
"Module created with non-<module> node" );
xmlbuildFile = Path::RelativeFromWorkingDirectory ( moduleNode.xmlFile->filename () );
xmlbuildFile = FixSeparator ( Path::RelativeFromWorkingDirectory ( moduleNode.xmlFile->filename () ) );
const XMLAttribute* att = moduleNode.GetAttribute ( "name", true );
assert(att);
@ -963,6 +963,8 @@ Module::GetTargetDirectoryTree () const
case Alias:
case IdlHeader:
return IntermediateDirectory;
case TypeDontCare:
break;
}
throw InvalidOperationException ( __FILE__,
__LINE__,
@ -1018,6 +1020,8 @@ Module::GetDefaultModuleExtension () const
return "";
case EmbeddedTypeLib:
return ".tlb";
case TypeDontCare:
break;
}
throw InvalidOperationException ( __FILE__,
__LINE__ );
@ -1070,6 +1074,8 @@ Module::GetDefaultModuleEntrypoint () const
case ElfExecutable:
case EmbeddedTypeLib:
return "";
case TypeDontCare:
break;
}
throw InvalidOperationException ( __FILE__,
__LINE__ );
@ -1115,6 +1121,8 @@ Module::GetDefaultModuleBaseaddress () const
case IdlHeader:
case EmbeddedTypeLib:
return "";
case TypeDontCare:
break;
}
throw InvalidOperationException ( __FILE__,
__LINE__ );
@ -1161,6 +1169,8 @@ Module::IsDLL () const
case EmbeddedTypeLib:
case ElfExecutable:
return false;
case TypeDontCare:
break;
}
throw InvalidOperationException ( __FILE__,
__LINE__ );

View file

@ -300,13 +300,15 @@ enum ModuleType
EmbeddedTypeLib = 26,
ElfExecutable = 27,
RpcProxy,
TypeDontCare,
};
enum HostType
{
HostFalse,
HostDefault,
HostTrue
HostTrue,
HostDontCare,
};
class FileLocation