Alexandre Julliard : makedep: Add support for dll registration files.
Alexandre Julliard
julliard at winehq.org
Tue Nov 30 11:01:09 CST 2010
Module: wine
Branch: master
Commit: 1787e8f05eec50d00737b89aa0d2d6d9f23948a0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1787e8f05eec50d00737b89aa0d2d6d9f23948a0
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Nov 30 11:54:41 2010 +0100
makedep: Add support for dll registration files.
---
tools/makedep.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/tools/makedep.c b/tools/makedep.c
index 4fb1ac5..32b7f05 100644
--- a/tools/makedep.c
+++ b/tools/makedep.c
@@ -761,8 +761,9 @@ static void parse_file( INCL_FILE *pFile, int src )
return;
}
- /* don't try to open .tlb files */
- if (strendswith( pFile->name, ".tlb" ))
+ /* don't try to open .tlb or .res files */
+ if (strendswith( pFile->name, ".tlb" ) ||
+ strendswith( pFile->name, ".res" ))
{
pFile->filename = xstrdup( pFile->name );
return;
@@ -885,9 +886,14 @@ static int output_src( FILE *file, INCL_FILE *pFile, int *column )
free( name );
suffix++;
}
+
+ name = strmake( "%s_r.res", obj );
+ if (find_src_file( name )) *column += fprintf( file, " %s", name );
+ free( name );
+
*column += fprintf( file, ": %s", pFile->filename );
}
- else if (!strcmp( ext, "tlb" ))
+ else if (!strcmp( ext, "tlb" ) || !strcmp( ext, "res" ))
{
return 0; /* nothing to do for typelib files */
}
More information about the wine-cvs
mailing list