winebuild -F option

Dimitrie O. Paun dpaun at rogers.com
Tue Dec 24 01:03:06 CST 2002


As agreed in the previous conversation...

ChangeLog
  Add the -F option to set a DLL's filename.

Index: tools/winebuild/main.c
===================================================================
RCS file: /var/cvs/wine/tools/winebuild/main.c,v
retrieving revision 1.43
diff -u -r1.43 main.c
--- tools/winebuild/main.c	12 Dec 2002 04:06:28 -0000	1.43
+++ tools/winebuild/main.c	24 Dec 2002 05:42:05 -0000
@@ -93,6 +93,8 @@
 {
     char *p;
 
+    if (*DLLFileName) return;
+
     if ((p = strrchr( name, '\\' ))) name = p + 1;
     if ((p = strrchr( name, '/' ))) name = p + 1;
     strcpy( DLLFileName, name );
@@ -132,6 +134,7 @@
 static void do_module( const char *arg );
 static void do_heap( const char *arg );
 static void do_name( const char *arg );
+static void do_file( const char *arg );
 static void do_entry( const char *arg );
 static void do_spec( const char *arg );
 static void do_def( const char *arg );
@@ -164,6 +167,7 @@
     { "-d",        1, do_dimport, "-d lib.dll       Delay-import the specified library" },
     { "-H",        1, do_heap,    "-H size          Set the heap size for a Win16 dll" },
     { "-N",        1, do_name,    "-N dllname       Set the DLL name (default: set from input file name)" },
+    { "-F",        1, do_file,    "-F dllfile       Set the DLL filename (default: set from input file name)" },
     { "-e",        1, do_entry,   "-e function      Set the DLL entry point function (default: DllMain)" },
     { "-r",        1, do_rsrc,    "-r rsrc.res      Load resources from rsrc.res" },
     { "-res",      1, do_rsrc,    NULL },  /* for backwards compatibility, will disappear */
@@ -263,6 +267,12 @@
 {
     strncpy( DLLName, arg, sizeof(DLLName) );
     DLLName[sizeof(DLLName) - 1] = 0;
+}
+
+static void do_file( const char *arg )
+{
+    strncpy( DLLFileName, arg, sizeof(DLLFileName) );
+    DLLFileName[sizeof(DLLFileName) - 1] = 0;
 }
 
 static void do_entry( const char *arg )



-- 
Dimi.




More information about the wine-patches mailing list