qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [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

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).