mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:23:05 +00:00
Factories for Backend creation
svn path=/branches/xmlbuildsystem/; revision=12845
This commit is contained in:
parent
8051633a4c
commit
477157b4d4
11 changed files with 176 additions and 46 deletions
|
@ -12,15 +12,17 @@ MingwModuleHandler::MingwModuleHandler ( FILE* fMakefile )
|
|||
{
|
||||
}
|
||||
|
||||
string MingwModuleHandler::GetModuleDependencies ( Module& module )
|
||||
string
|
||||
MingwModuleHandler::GetModuleDependencies ( Module& module )
|
||||
{
|
||||
string dependencies ( "" );
|
||||
|
||||
for ( size_t i = 0; i < module.libraries.size(); i++ )
|
||||
if ( !module.libraries.size() )
|
||||
return "";
|
||||
|
||||
string dependencies ( module.libraries[0]->name );
|
||||
|
||||
for ( size_t i = 1; i < module.libraries.size(); i++ )
|
||||
{
|
||||
if (dependencies.size () > 0)
|
||||
dependencies += " ";
|
||||
dependencies += module.libraries[i]->name;
|
||||
dependencies += " " + module.libraries[i]->name;
|
||||
}
|
||||
return dependencies;
|
||||
}
|
||||
|
@ -31,17 +33,20 @@ MingwKernelModuleHandler::MingwKernelModuleHandler ( FILE* fMakefile )
|
|||
{
|
||||
}
|
||||
|
||||
bool MingwKernelModuleHandler::CanHandleModule ( Module& module )
|
||||
bool
|
||||
MingwKernelModuleHandler::CanHandleModule ( Module& module )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void MingwKernelModuleHandler::Process ( Module& module )
|
||||
void
|
||||
MingwKernelModuleHandler::Process ( Module& module )
|
||||
{
|
||||
GenerateKernelModuleTarget ( module );
|
||||
}
|
||||
|
||||
void MingwKernelModuleHandler::GenerateKernelModuleTarget ( Module& module )
|
||||
void
|
||||
MingwKernelModuleHandler::GenerateKernelModuleTarget ( Module& module )
|
||||
{
|
||||
fprintf ( fMakefile, "%s: %s",
|
||||
module.name.c_str (),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue