* [Qemu-devel] [PATCH] Better version.rc patch @ 2008-02-08 20:14 C.W. Betts 2008-02-08 20:49 ` Johannes Schindelin 0 siblings, 1 reply; 5+ messages in thread From: C.W. Betts @ 2008-02-08 20:14 UTC (permalink / raw) To: qemu-devel [-- Attachment #1.1: Type: text/plain, Size: 85 bytes --] This is a better patch to make qemu on Windows show info when you go into properties. [-- Attachment #1.2: Type: text/html, Size: 405 bytes --] [-- Attachment #2: versionrc.diff --] [-- Type: application/octet-stream, Size: 1319 bytes --] Index: Makefile.target =================================================================== RCS file: /sources/qemu/qemu/Makefile.target,v retrieving revision 1.244 diff -u -r1.244 Makefile.target --- Makefile.target 3 Feb 2008 02:20:17 -0000 1.244 +++ Makefile.target 8 Feb 2008 18:09:33 -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 $@ $< --- /dev/null Fri Feb 8 11:11:54 2008 +++ version.rc Fri Feb 8 11:11:32 2008 @@ -0,0 +1,24 @@ +#include "config.h" +#include <windows.h> + +1 VERSIONINFO +FILEVERSION 0,9,1,0 +PRODUCTVERSION 0,9,1,0 +FILETYPE 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" +// VALUE "OriginalFilename", ORIGINAL_FILENAME //currently not working + } + } +BLOCK "VarFileInfo" + { + VALUE "Translation", 0x0409, 1252 + } +} ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] Better version.rc patch 2008-02-08 20:14 [Qemu-devel] [PATCH] Better version.rc patch C.W. Betts @ 2008-02-08 20:49 ` Johannes Schindelin 2008-02-08 22:53 ` C.W. Betts 0 siblings, 1 reply; 5+ messages in thread From: Johannes Schindelin @ 2008-02-08 20:49 UTC (permalink / raw) To: C.W. Betts; +Cc: qemu-devel Hi, On Fri, 8 Feb 2008, C.W. Betts wrote: > This is a better patch to make qemu on Windows show info when you go > into properties. It is _still_ a hassle to review your patch, since you did not inline it again. So I will comment without quoting any of your patch, which will leave others guessing as to what we're talking about. FILEVERSION and PRODUCTVERSION need to get a #define'd value, which you have to #define in ./configure in config-host.h, as I suggested already. Also, it seems as you have yet another line which is commented out, with a comment "currently not working". I'd appreciate it if it was left out, or fixed. Hth, Dscho ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] Better version.rc patch 2008-02-08 20:49 ` Johannes Schindelin @ 2008-02-08 22:53 ` C.W. Betts 2008-02-08 23:20 ` Johannes Schindelin 0 siblings, 1 reply; 5+ messages in thread From: C.W. Betts @ 2008-02-08 22:53 UTC (permalink / raw) To: qemu-devel [-- Attachment #1: Type: text/plain, Size: 2455 bytes --] Another patch. Thank you for your patience. Index: Makefile.target =================================================================== RCS file: /sources/qemu/qemu/Makefile.target,v retrieving revision 1.244 diff -u -r1.244 Makefile.target --- Makefile.target 3 Feb 2008 02:20:17 -0000 1.244 +++ Makefile.target 8 Feb 2008 22:48:27 -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. -c -o $< $@ + %.o: %.S $(CC) $(CPPFLAGS) -c -o $@ $< Index: configure =================================================================== RCS file: /sources/qemu/qemu/configure,v retrieving revision 1.187 diff -u -r1.187 configure --- configure 3 Feb 2008 19:20:13 -0000 1.187 +++ configure 8 Feb 2008 22:48:30 -0000 @@ -1065,6 +1065,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 0,9,1,0" >> $config_h +echo "#define QEMU_PRODUCTVERSION 0,9,1,0" >> $config_h +fi echo "include ../config-host.mak" >> $config_mak echo "#include \"../config-host.h\"" >> $config_h 0a1,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 > } > } ----- Original Message ----- From: "Johannes Schindelin" <Johannes.Schindelin@gmx.de> To: "C.W. Betts" <computers57@hotmail.com> Cc: <qemu-devel@nongnu.org> Sent: Friday, February 08, 2008 1:49 PM Subject: Re: [Qemu-devel] [PATCH] Better version.rc patch > Hi, > > On Fri, 8 Feb 2008, C.W. Betts wrote: > > > It is _still_ a hassle to review your patch, since you did not inline it > again. Sorry. I'm new. > > Also, it seems as you have yet another line which is commented out, with a > comment "currently not working". I'd appreciate it if it was left out, or > fixed. As I said, I'm new. > Hth, > Dscho > > > > [-- Attachment #2: versionrc.diff --] [-- Type: application/octet-stream, Size: 2024 bytes --] ? bxversion.rc ? qemuversion.rc.in ? version.rc ? versionrc.diff ? hw/ppc_actualrom ? hw/ppc_actualrom.c ? pc-bios/g3.rom Index: Makefile.target =================================================================== RCS file: /sources/qemu/qemu/Makefile.target,v retrieving revision 1.244 diff -u -r1.244 Makefile.target --- Makefile.target 3 Feb 2008 02:20:17 -0000 1.244 +++ Makefile.target 8 Feb 2008 22:48:27 -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.187 diff -u -r1.187 configure --- configure 3 Feb 2008 19:20:13 -0000 1.187 +++ configure 8 Feb 2008 22:48:30 -0000 @@ -1065,6 +1065,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 0,9,1,0" >> $config_h +echo "#define QEMU_PRODUCTVERSION 0,9,1,0" >> $config_h +fi echo "include ../config-host.mak" >> $config_mak echo "#include \"../config-host.h\"" >> $config_h 0a1,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 > } > } ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] Better version.rc patch 2008-02-08 22:53 ` C.W. Betts @ 2008-02-08 23:20 ` Johannes Schindelin 2008-02-09 0:37 ` Rob Landley 0 siblings, 1 reply; 5+ messages in thread From: Johannes Schindelin @ 2008-02-08 23:20 UTC (permalink / raw) To: C.W. Betts; +Cc: qemu-devel Hi, On Fri, 8 Feb 2008, C.W. Betts wrote: > Index: configure > =================================================================== > RCS file: /sources/qemu/qemu/configure,v > retrieving revision 1.187 > diff -u -r1.187 configure > --- configure 3 Feb 2008 19:20:13 -0000 1.187 > +++ configure 8 Feb 2008 22:48:30 -0000 > @@ -1065,6 +1065,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 0,9,1,0" >> $config_h > +echo "#define QEMU_PRODUCTVERSION 0,9,1,0" >> $config_h > +fi Well, that can go out of sync easily... why not something like +echo "#define QEMU_FILEVERSION $(tr . , < VERSION),0" >> $config_h Hmm? > 0a1,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 > > } > > } I see what you try to do, but I think this hunk lacks a proper diff header creating the file. Something like -- snip -- diff a/version.rc b/version.rc --- /dev/null +++ b/version.rc -- snap -- Also, I see that you cut down the version.rc (for example, OriginalFilename is lacking now)... what are the symptoms of this not working? Ciao, Dscho ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] Better version.rc patch 2008-02-08 23:20 ` Johannes Schindelin @ 2008-02-09 0:37 ` Rob Landley 0 siblings, 0 replies; 5+ messages in thread From: Rob Landley @ 2008-02-09 0:37 UTC (permalink / raw) To: qemu-devel; +Cc: C.W. Betts On Friday 08 February 2008 17:20:41 Johannes Schindelin wrote: > diff a/version.rc b/version.rc > --- /dev/null > +++ b/version.rc Is there some way to put easily separable windows-only files in a win32 subdirectory so the rest of us don't have to look at it? Rob -- "One of my most productive days was throwing away 1000 lines of code." - Ken Thompson. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-02-09 0:37 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-02-08 20:14 [Qemu-devel] [PATCH] Better version.rc patch C.W. Betts 2008-02-08 20:49 ` Johannes Schindelin 2008-02-08 22:53 ` C.W. Betts 2008-02-08 23:20 ` Johannes Schindelin 2008-02-09 0:37 ` Rob Landley
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).