mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 05:55:45 +00:00
Rebuild import library if definition file is modified
svn path=/branches/xmlbuildsystem/; revision=15221
This commit is contained in:
parent
1513e26e14
commit
7dfdcabef9
1 changed files with 6 additions and 4 deletions
|
@ -1833,14 +1833,16 @@ MingwModuleHandler::GenerateImportLibraryTargetIfNeeded ()
|
||||||
{
|
{
|
||||||
string library_target (
|
string library_target (
|
||||||
GetImportLibraryFilename ( module, &clean_files ) );
|
GetImportLibraryFilename ( module, &clean_files ) );
|
||||||
|
string defFilename = GetDefinitionFilename ();
|
||||||
|
|
||||||
string_list deps;
|
string_list deps;
|
||||||
GetDefinitionDependencies ( deps );
|
GetDefinitionDependencies ( deps );
|
||||||
|
|
||||||
fprintf ( fMakefile, "# IMPORT LIBRARY RULE:\n" );
|
fprintf ( fMakefile, "# IMPORT LIBRARY RULE:\n" );
|
||||||
|
|
||||||
fprintf ( fMakefile, "%s:",
|
fprintf ( fMakefile, "%s: %s",
|
||||||
library_target.c_str () );
|
library_target.c_str (),
|
||||||
|
defFilename.c_str () );
|
||||||
|
|
||||||
size_t i, iend = deps.size();
|
size_t i, iend = deps.size();
|
||||||
for ( i = 0; i < iend; i++ )
|
for ( i = 0; i < iend; i++ )
|
||||||
|
@ -1856,7 +1858,7 @@ MingwModuleHandler::GenerateImportLibraryTargetIfNeeded ()
|
||||||
fprintf ( fMakefile,
|
fprintf ( fMakefile,
|
||||||
"\t${dlltool} --dllname %s --def %s --output-lib %s %s\n\n",
|
"\t${dlltool} --dllname %s --def %s --output-lib %s %s\n\n",
|
||||||
module.GetTargetName ().c_str (),
|
module.GetTargetName ().c_str (),
|
||||||
GetDefinitionFilename ().c_str (),
|
defFilename.c_str (),
|
||||||
library_target.c_str (),
|
library_target.c_str (),
|
||||||
killAt.c_str () );
|
killAt.c_str () );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue