Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JOGvE-0004Of-FG for qemu-devel@nongnu.org; Sun, 10 Feb 2008 13:29:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JOGvC-0004O2-Ix for qemu-devel@nongnu.org; Sun, 10 Feb 2008 13:29:00 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOGvC-0004Nt-Cr for qemu-devel@nongnu.org; Sun, 10 Feb 2008 13:28:58 -0500 Received: from bay0-omc3-s18.bay0.hotmail.com ([65.54.246.218]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JOGvC-0001hP-1q for qemu-devel@nongnu.org; Sun, 10 Feb 2008 13:28:58 -0500 Message-ID: From: "C.W. Betts" Date: Sun, 10 Feb 2008 11:28:53 -0700 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0039_01C86BD8.1DAC53C0" Subject: [Qemu-devel] [PATCH]version.rc patch Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. ------=_NextPart_000_0039_01C86BD8.1DAC53C0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit First of all, I'd like to thank Johannes Schindelin for all the help and patience when dealing with a newbie like me. This is a patch that will add version information to the Windows executable. Index: Makefile.target =================================================================== RCS file: /sources/qemu/qemu/Makefile.target,v retrieving revision 1.245 diff -u -r1.245 Makefile.target --- Makefile.target 10 Feb 2008 16:33:12 -0000 1.245 +++ Makefile.target 10 Feb 2008 18:08:44 -0000 @@ -638,6 +638,7 @@ ifdef CONFIG_WIN32 SDL_LIBS := $(filter-out -mwindows, $(SDL_LIBS)) -mconsole +OBJS+=version.o endif # profiling code @@ -654,6 +655,9 @@ %.o: %.c $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< +%.o: %.rc + windres -I. -DORIGINAL_FILENAME=\"$(QEMU_PROG)\" -c -o $< $@ + %.o: %.S $(CC) $(CPPFLAGS) -c -o $@ $< Index: configure =================================================================== RCS file: /sources/qemu/qemu/configure,v retrieving revision 1.188 diff -u -r1.188 configure --- configure 10 Feb 2008 16:33:12 -0000 1.188 +++ configure 10 Feb 2008 18:08:45 -0000 @@ -1089,6 +1089,10 @@ echo "# Automatically generated by configure - do not modify" > $config_mak echo "/* Automatically generated by configure - do not modify */" > $config_h +if test "$mingw32" = "yes" ; then +echo "#define QEMU_FILEVERSION $(tr . , < VERSION),0" >> $config_h +echo "#define QEMU_PRODUCTVERSION $(tr . , < VERSION),0" >> $config_h +fi echo "include ../config-host.mak" >> $config_mak echo "#include \"../config-host.h\"" >> $config_h Index: version.rc =================================================================== diff -u /dev/null version.rc --- /dev/null Sun Feb 10 11:08:50 2008 +++ version.rc Fri Feb 8 15:41:46 2008 @@ -0,0 +1,22 @@ +#include "config.h" + +1 VERSIONINFO +FILEVERSION QEMU_FILEVERSION +PRODUCTVERSION QEMU_PRODUCTVERSION +FILETYPE 0x1 //VFT_APP + { +BLOCK "StringFileInfo" + { + BLOCK "040904E4" + { + VALUE "FileDescription", "Qemu System emulator, " TARGET_ARCH " version" + VALUE "FileVersion", QEMU_VERSION + VALUE "LegalCopyright", "GNU General Public License" + VALUE "ProductName", "Qemu" + } + } +BLOCK "VarFileInfo" + { + VALUE "Translation", 0x0409, 1252 + } +} ------=_NextPart_000_0039_01C86BD8.1DAC53C0 Content-Type: application/octet-stream; name="versionrc.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="versionrc.diff" Index: Makefile.target=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: /sources/qemu/qemu/Makefile.target,v=0A= retrieving revision 1.245=0A= diff -u -r1.245 Makefile.target=0A= --- Makefile.target 10 Feb 2008 16:33:12 -0000 1.245=0A= +++ Makefile.target 10 Feb 2008 18:08:44 -0000=0A= @@ -638,6 +638,7 @@=0A= =0A= ifdef CONFIG_WIN32=0A= SDL_LIBS :=3D $(filter-out -mwindows, $(SDL_LIBS)) -mconsole=0A= +OBJS+=3Dversion.o=0A= endif=0A= =0A= # profiling code=0A= @@ -654,6 +655,9 @@=0A= %.o: %.c=0A= $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<=0A= =0A= +%.o: %.rc=0A= + windres -I. -DORIGINAL_FILENAME=3D\"$(QEMU_PROG)\" -c -o $< $@=0A= +=0A= %.o: %.S=0A= $(CC) $(CPPFLAGS) -c -o $@ $<=0A= =0A= Index: configure=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: /sources/qemu/qemu/configure,v=0A= retrieving revision 1.188=0A= diff -u -r1.188 configure=0A= --- configure 10 Feb 2008 16:33:12 -0000 1.188=0A= +++ configure 10 Feb 2008 18:08:45 -0000=0A= @@ -1089,6 +1089,10 @@=0A= echo "# Automatically generated by configure - do not modify" > = $config_mak=0A= echo "/* Automatically generated by configure - do not modify */" > = $config_h=0A= =0A= +if test "$mingw32" =3D "yes" ; then=0A= +echo "#define QEMU_FILEVERSION $(tr . , < VERSION),0" >> $config_h=0A= +echo "#define QEMU_PRODUCTVERSION $(tr . , < VERSION),0" >> $config_h=0A= +fi=0A= =0A= echo "include ../config-host.mak" >> $config_mak=0A= echo "#include \"../config-host.h\"" >> $config_h=0A= Index: version.rc=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= diff -u /dev/null version.rc=0A= --- /dev/null Sun Feb 10 11:08:50 2008=0A= +++ version.rc Fri Feb 8 15:41:46 2008=0A= @@ -0,0 +1,22 @@=0A= +#include "config.h"=0A= +=0A= +1 VERSIONINFO=0A= +FILEVERSION QEMU_FILEVERSION=0A= +PRODUCTVERSION QEMU_PRODUCTVERSION=0A= +FILETYPE 0x1 //VFT_APP=0A= + {=0A= +BLOCK "StringFileInfo"=0A= + {=0A= + BLOCK "040904E4"=0A= + {=0A= + VALUE "FileDescription", "Qemu System emulator, " TARGET_ARCH " = version"=0A= + VALUE "FileVersion", QEMU_VERSION=0A= + VALUE "LegalCopyright", "GNU General Public License"=0A= + VALUE "ProductName", "Qemu"=0A= + }=0A= + }=0A= +BLOCK "VarFileInfo"=0A= + {=0A= + VALUE "Translation", 0x0409, 1252=0A= + }=0A= +}=0A= ------=_NextPart_000_0039_01C86BD8.1DAC53C0--