Fix separators for .rbuild files in the generated makefile
authorHervé Poussineau <hpoussin@reactos.org>
Fri, 18 Jan 2008 16:55:56 +0000 (16:55 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Fri, 18 Jan 2008 16:55:56 +0000 (16:55 +0000)
Add a 'don't care' value for types and host.

svn path=/trunk/; revision=31870

reactos/tools/rbuild/bootstrap.cpp
reactos/tools/rbuild/module.cpp
reactos/tools/rbuild/rbuild.h

index 9925108..277f867 100644 (file)
@@ -71,6 +71,8 @@ Bootstrap::IsSupportedModuleType ( ModuleType type )
                case EmbeddedTypeLib:
                case ElfExecutable:
                        return false;
+               case TypeDontCare:
+                       break;
        }
        throw InvalidOperationException ( __FILE__,
                                          __LINE__ );
index 51c0f2a..2b030ce 100644 (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__ );
index b2a7367..589fdfa 100644 (file)
@@ -300,13 +300,15 @@ enum ModuleType
        EmbeddedTypeLib = 26,
        ElfExecutable = 27,
        RpcProxy,
+       TypeDontCare,
 };
 
 enum HostType
 {
        HostFalse,
        HostDefault,
-       HostTrue
+       HostTrue,
+       HostDontCare,
 };
 
 class FileLocation