mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 09:23:06 +00:00
Preprocess kernel .spec files
svn path=/trunk/; revision=34830
This commit is contained in:
parent
f9299e18b2
commit
127f001ffc
2 changed files with 16 additions and 8 deletions
|
@ -334,13 +334,6 @@ MingwModuleHandler::GetModuleArchiveFilename () const
|
||||||
ReplaceExtension ( module.name, ".temp.a" ) );
|
ReplaceExtension ( module.name, ".temp.a" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
|
||||||
MingwModuleHandler::IsGeneratedFile ( const File& file ) const
|
|
||||||
{
|
|
||||||
string extension = GetExtension ( file.file );
|
|
||||||
return ( extension == ".spec" || extension == ".SPEC" );
|
|
||||||
}
|
|
||||||
|
|
||||||
/*static*/ bool
|
/*static*/ bool
|
||||||
MingwModuleHandler::ReferenceObjects (
|
MingwModuleHandler::ReferenceObjects (
|
||||||
const Module& module )
|
const Module& module )
|
||||||
|
@ -1201,6 +1194,20 @@ Rule wmcRule ( "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext).rc
|
||||||
"$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext).rc",
|
"$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext).rc",
|
||||||
"$(INTERMEDIATE)$(SEP)include$(SEP)reactos$(SEP)$(source_name_noext).h",
|
"$(INTERMEDIATE)$(SEP)include$(SEP)reactos$(SEP)$(source_name_noext).h",
|
||||||
"$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)", NULL );
|
"$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)", NULL );
|
||||||
|
Rule winebuildKMRule ( "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext).spec.def: $(source)$(dependencies) $(WINEBUILD_TARGET) | $(INTERMEDIATE)$(SEP)$(source_dir)\n"
|
||||||
|
"\t$(ECHO_WINEBLD)\n"
|
||||||
|
"\t${gcc} -xc -E $(source) -I. > $(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext).spec\n"
|
||||||
|
"\t$(Q)$(WINEBUILD_TARGET) $(WINEBUILD_FLAGS) -o $(INTERMEDIATE)$(SEP)$(source_path)$(SEP)$(source_name_noext).spec.def --def -E $(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext).spec\n"
|
||||||
|
"$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext).stubs.c:\n"
|
||||||
|
"\t${cp} $(NUL) $@ 1>$(NUL)\n"
|
||||||
|
"$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext).stubs.o: $(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext).stubs.c$(dependencies) | $(INTERMEDIATE)$(SEP)$(source_dir)\n"
|
||||||
|
"\t$(ECHO_CC)\n"
|
||||||
|
"\t${gcc} -o $@ $($(module_name)_CFLAGS)$(compiler_flags) -c $<\n",
|
||||||
|
"$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext).spec",
|
||||||
|
"$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext).spec.def",
|
||||||
|
"$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext).stubs.c",
|
||||||
|
"$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext).stubs.o",
|
||||||
|
"$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)", NULL );
|
||||||
Rule winebuildRule ( "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext).spec.def: $(source)$(dependencies) $(WINEBUILD_TARGET) | $(INTERMEDIATE)$(SEP)$(source_dir)\n"
|
Rule winebuildRule ( "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext).spec.def: $(source)$(dependencies) $(WINEBUILD_TARGET) | $(INTERMEDIATE)$(SEP)$(source_dir)\n"
|
||||||
"\t$(ECHO_WINEBLD)\n"
|
"\t$(ECHO_WINEBLD)\n"
|
||||||
"\t$(Q)$(WINEBUILD_TARGET) $(WINEBUILD_FLAGS) -o $(INTERMEDIATE)$(SEP)$(source_path)$(SEP)$(source_name_noext).spec.def --def -E $(source)\n"
|
"\t$(Q)$(WINEBUILD_TARGET) $(WINEBUILD_FLAGS) -o $(INTERMEDIATE)$(SEP)$(source_path)$(SEP)$(source_name_noext).spec.def --def -E $(source)\n"
|
||||||
|
@ -1384,6 +1391,8 @@ MingwModuleHandler::GenerateCommands (
|
||||||
{ HostDontCare, TypeDontCare, ".asm", &nasmRule },
|
{ HostDontCare, TypeDontCare, ".asm", &nasmRule },
|
||||||
{ HostDontCare, TypeDontCare, ".rc", &windresRule },
|
{ HostDontCare, TypeDontCare, ".rc", &windresRule },
|
||||||
{ HostDontCare, TypeDontCare, ".mc", &wmcRule },
|
{ HostDontCare, TypeDontCare, ".mc", &wmcRule },
|
||||||
|
{ HostFalse, Kernel, ".spec", &winebuildKMRule },
|
||||||
|
{ HostFalse, KernelModeDLL, ".spec", &winebuildKMRule },
|
||||||
{ HostDontCare, TypeDontCare, ".spec", &winebuildRule },
|
{ HostDontCare, TypeDontCare, ".spec", &winebuildRule },
|
||||||
{ HostDontCare, RpcServer, ".idl", &widlServerRule },
|
{ HostDontCare, RpcServer, ".idl", &widlServerRule },
|
||||||
{ HostDontCare, RpcClient, ".idl", &widlClientRule },
|
{ HostDontCare, RpcClient, ".idl", &widlClientRule },
|
||||||
|
|
|
@ -87,7 +87,6 @@ protected:
|
||||||
std::string GetExtraDependencies ( const FileLocation *file ) const;
|
std::string GetExtraDependencies ( const FileLocation *file ) const;
|
||||||
std::string GetCompilationUnitDependencies ( const CompilationUnit& compilationUnit ) const;
|
std::string GetCompilationUnitDependencies ( const CompilationUnit& compilationUnit ) const;
|
||||||
const FileLocation* GetModuleArchiveFilename () const;
|
const FileLocation* GetModuleArchiveFilename () const;
|
||||||
bool IsGeneratedFile ( const File& file ) const;
|
|
||||||
std::string GetImportLibraryDependency ( const Module& importedModule );
|
std::string GetImportLibraryDependency ( const Module& importedModule );
|
||||||
void GetTargets ( const Module& dependencyModule,
|
void GetTargets ( const Module& dependencyModule,
|
||||||
string_list& targets );
|
string_list& targets );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue