mirror of
https://github.com/reactos/reactos.git
synced 2025-07-05 19:31:22 +00:00
Add <module>_install target
svn path=/branches/xmlbuildsystem/; revision=15047
This commit is contained in:
parent
7dec8061f1
commit
e5c1f57b80
3 changed files with 23 additions and 0 deletions
|
@ -283,6 +283,7 @@ MingwBackend::ProcessModules ()
|
||||||
h.Process ();
|
h.Process ();
|
||||||
h.GenerateInvocations ();
|
h.GenerateInvocations ();
|
||||||
h.GenerateCleanTarget ();
|
h.GenerateCleanTarget ();
|
||||||
|
h.GenerateInstallTarget ();
|
||||||
delete v[i];
|
delete v[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -440,6 +440,27 @@ MingwModuleHandler::GenerateCleanTarget () const
|
||||||
fprintf ( fMakefile, "clean: %s_clean\n\n", module.name.c_str() );
|
fprintf ( fMakefile, "clean: %s_clean\n\n", module.name.c_str() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
MingwModuleHandler::GenerateInstallTarget () const
|
||||||
|
{
|
||||||
|
if ( module.installName.length () == 0 )
|
||||||
|
return;
|
||||||
|
fprintf ( fMakefile, ".PHONY: %s_install\n", module.name.c_str() );
|
||||||
|
fprintf ( fMakefile, "%s_install:\n", module.name.c_str() );
|
||||||
|
string sourceFilename = MingwModuleHandler::PassThruCacheDirectory (
|
||||||
|
NormalizeFilename ( module.GetPath () ),
|
||||||
|
backend->outputDirectory );
|
||||||
|
string normalizedTargetFilename = MingwModuleHandler::PassThruCacheDirectory (
|
||||||
|
NormalizeFilename ( module.installBase + SSEP + module.installName ),
|
||||||
|
backend->installDirectory );
|
||||||
|
fprintf ( fMakefile,
|
||||||
|
"\t$(ECHO_CP)\n" );
|
||||||
|
fprintf ( fMakefile,
|
||||||
|
"\t${cp} %s %s 1>$(NUL)\n",
|
||||||
|
sourceFilename.c_str (),
|
||||||
|
normalizedTargetFilename.c_str () );
|
||||||
|
}
|
||||||
|
|
||||||
string
|
string
|
||||||
MingwModuleHandler::GetObjectFilenames ()
|
MingwModuleHandler::GetObjectFilenames ()
|
||||||
{
|
{
|
||||||
|
|
|
@ -54,6 +54,7 @@ public:
|
||||||
virtual std::string TypeSpecificLinkerFlags() { return ""; }
|
virtual std::string TypeSpecificLinkerFlags() { return ""; }
|
||||||
void GenerateInvocations () const;
|
void GenerateInvocations () const;
|
||||||
void GenerateCleanTarget () const;
|
void GenerateCleanTarget () const;
|
||||||
|
void GenerateInstallTarget () const;
|
||||||
static bool ReferenceObjects ( const Module& module );
|
static bool ReferenceObjects ( const Module& module );
|
||||||
protected:
|
protected:
|
||||||
std::string GetWorkingDirectory () const;
|
std::string GetWorkingDirectory () const;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue