winewrap: cleanups

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ChangeLog
    Add "-wrap" to the wrapped app, to avoid possible name conflicts.
    Add the app dir to WINEDLLPATH.

Index: tools/winewrap.c
===================================================================
RCS file: /var/cvs/wine/tools/winewrap.c,v
retrieving revision 1.15
diff -u -r1.15 winewrap.c
--- tools/winewrap.c	9 Apr 2003 23:34:19 -0000	1.15
+++ tools/winewrap.c	12 Jul 2003 06:09:16 -0000
@@ -75,6 +75,8 @@
     "# figure out the full app path\n"
     "if [ -n \"$appdir\" ]; then\n"
     "    apppath=\"$appdir/$appname.exe.so\"\n"
+    "    WINEDLLPATH=\"$appdir:$WINEDLLPATH\"\n"
+    "    export WINEDLLPATH\n"
     "else\n"
     "    apppath=\"$appname.exe.so\"\n"
     "fi\n"
@@ -118,9 +120,9 @@
     "\n"
     "/**\n"
     " * This is the name of the library containing the application,\n"
-    " * e.g. 'hello.dll' if the application is called 'hello.exe'.\n"
+    " * e.g. 'hello-wrap.dll' if the application is called 'hello.exe'.\n"
     " */\n"
-    "static char* appName     = APPNAME \".dll\";\n"
+    "static char* appName     = APPNAME \"-wrap.dll\";\n"
     "\n"
     "/**\n"
     " * This is the name of the application's Windows module. If left NULL\n"
@@ -511,7 +513,7 @@
     if (create_wrapper)
     {
 	spec_args[j++] = "-F";
-	spec_args[j++] = strmake("%s.dll", base_name);
+	spec_args[j++] = strmake("%s-wrap.dll", base_name);
 	spec_args[j++] = "--spec";
 	spec_args[j++] = spec_name;
     }
@@ -551,7 +553,8 @@
     for (i = 0; i < nb_lib_files; i++)
 	link_args[j++] = lib_files[i];
     link_args[j++] = "-o";
-    link_args[j++] = strmake("%s.%s.so", base_file, create_wrapper ? "dll" : "exe");
+    if (create_wrapper) link_args[j++] = strmake("%s-wrap.dll.so", base_file);
+    else link_args[j++] = strmake("%s.exe.so", base_file);
     link_args[j++] = spec_o_name;
     for (i = 0; i < nb_obj_files; i++)
 	if (!is_resource(obj_files[i])) link_args[j++] = obj_files[i];


-- 
Dimi.



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux