Winebuild 1/2
Dimitrie O. Paun
dpaun at rogers.com
Wed Sep 11 00:57:08 CDT 2002
ChangeLog
Add support for naming the DLL from the command line.
Index: tools/winebuild/main.c
===================================================================
RCS file: /var/cvs/wine/tools/winebuild/main.c,v
retrieving revision 1.35
diff -u -r1.35 main.c
--- tools/winebuild/main.c 31 Aug 2002 19:04:14 -0000 1.35
+++ tools/winebuild/main.c 11 Sep 2002 05:18:11 -0000
@@ -122,6 +122,7 @@
static void do_k_flags( const char *arg );
static void do_exe_mode( const char *arg );
static void do_module( const char *arg );
+static void do_name( const char *arg );
static void do_spec( const char *arg );
static void do_def( const char *arg );
static void do_exe( const char *arg );
@@ -152,6 +153,7 @@
{ "-dl", 1, do_dimport, "-dl lib.dll Delay-import the specified library" },
{ "-res", 1, do_rsrc, "-res rsrc.res Load resources from rsrc.res" },
{ "-o", 1, do_output, "-o name Set the output file name (default: stdout)\n" },
+ { "-name", 1, do_name, "-name dllname Set the DLL name (default: set from executable name)" },
{ "-sym", 0, do_sym, NULL }, /* ignored for backwards compatibility */
{ "-spec", 1, do_spec, "-spec file.spec Build a .c file from a spec file" },
{ "-def", 1, do_def, "-def file.spec Build a .def file from a spec file" },
@@ -217,6 +219,13 @@
/* Ignored, because cc generates correct code. */
/* if (!strcmp( arg, "PIC" )) UsePIC = 1; */
/* ignore all other flags */
+}
+
+static void do_name( const char *arg )
+{
+ if (exec_mode != MODE_NONE || !arg[0]) do_usage();
+ strncpy( DLLName, arg, sizeof(DLLName) );
+ DLLName[sizeof(DLLName) - 1] = 0;
}
static void do_spec( const char *arg )
More information about the wine-patches
mailing list