Author: hpoussin
Date: Mon Sep 24 17:21:31 2007
New Revision: 29186
URL:
http://svn.reactos.org/svn/reactos?rev=29186&view=rev
Log:
When depending of a module, also depends of its generated headers
Modified:
trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp
Modified: trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/backend/mingw…
==============================================================================
--- trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp (original)
+++ trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp Mon Sep 24 17:21:31 2007
@@ -386,7 +386,22 @@
{
string dep;
if ( ReferenceObjects ( importedModule ) )
+ {
+ const vector<CompilationUnit*>& compilationUnits =
importedModule.non_if_data.compilationUnits;
+ size_t i;
+
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
dep = backend->GetFullName ( *GetImportLibraryFilename ( importedModule, NULL ) );
return dep;