mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 16:36:07 +00:00
When depending of a module, also depends of its generated headers
svn path=/trunk/; revision=29186
This commit is contained in:
parent
7e0ebf1fc6
commit
a7396c359e
1 changed files with 15 additions and 0 deletions
|
@ -386,7 +386,22 @@ MingwModuleHandler::GetImportLibraryDependency (
|
||||||
{
|
{
|
||||||
string dep;
|
string dep;
|
||||||
if ( ReferenceObjects ( importedModule ) )
|
if ( ReferenceObjects ( importedModule ) )
|
||||||
|
{
|
||||||
|
const vector<CompilationUnit*>& compilationUnits = importedModule.non_if_data.compilationUnits;
|
||||||
|
size_t i;
|
||||||
|
|
||||||
dep = GetTargetMacro ( importedModule );
|
dep = GetTargetMacro ( importedModule );
|
||||||
|
for ( i = 0; i < compilationUnits.size (); i++ )
|
||||||
|
{
|
||||||
|
CompilationUnit& compilationUnit = *compilationUnits[i];
|
||||||
|
const FileLocation *objectFilename = GetObjectFilename ( compilationUnit.GetFilename (), NULL );
|
||||||
|
if ( GetExtension ( *objectFilename ) == ".h" )
|
||||||
|
{
|
||||||
|
dep += ssprintf ( " $(%s_HEADERS)", importedModule.name.c_str () );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
dep = backend->GetFullName ( *GetImportLibraryFilename ( importedModule, NULL ) );
|
dep = backend->GetFullName ( *GetImportLibraryFilename ( importedModule, NULL ) );
|
||||||
return dep;
|
return dep;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue