Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KjEb3-0006AQ-BY for qemu-devel@nongnu.org; Fri, 26 Sep 2008 10:47:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KjEb1-0006AC-Fr for qemu-devel@nongnu.org; Fri, 26 Sep 2008 10:47:04 -0400 Received: from [199.232.76.173] (port=46596 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KjEb1-0006A5-B5 for qemu-devel@nongnu.org; Fri, 26 Sep 2008 10:47:03 -0400 Received: from bay0-omc3-s40.bay0.hotmail.com ([65.54.246.240]:7939) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KjEHq-000735-Pm for qemu-devel@nongnu.org; Fri, 26 Sep 2008 10:27:15 -0400 Message-ID: Message-Id: <4D85C158-8A93-42F6-B004-D7059D406C12@hotmail.com> From: C.W. Betts In-Reply-To: <48DBFA61.5296ADA8@bttr-software.de> Content-Type: multipart/mixed; boundary=Apple-Mail-16--681130187 Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: [Qemu-devel] Makefile question Date: Fri, 26 Sep 2008 08:26:45 -0600 References: <48DBF7A9.1E3EB46@bttr-software.de> <48DBF8F4.3060701@codemonkey.ws> <48DBFA61.5296ADA8@bttr-software.de> 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, Robert Riebisch --Apple-Mail-16--681130187 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit I have made On Sep 25, 2008, at 2:53 PM, Robert Riebisch wrote: > Anthony Liguori wrote: > >> Where does the object file come from? > > Generated from .rc by `windres'. I have made a patch that uses windres to identify the version number of the app. The patch is in the attachments. Perhaps you can get some pointers from it. --Apple-Mail-16--681130187 Content-Disposition: attachment; filename=windowsrc.diff Content-Type: application/octet-stream; x-unix-mode=0644; x-mac-type=54455854; name="windowsrc.diff" Content-Transfer-Encoding: 7bit Index: Makefile.target =================================================================== --- Makefile.target (revision 5321) +++ Makefile.target (working copy) @@ -661,6 +665,7 @@ ifdef CONFIG_WIN32 SDL_LIBS := $(filter-out -mwindows, $(SDL_LIBS)) -mconsole +OBJS+=version.o endif # profiling code @@ -676,6 +681,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 =================================================================== --- configure (revision 5321) +++ configure (working copy) @@ -1319,6 +1319,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 . , < $source_path/VERSION),0" >> $config_h +echo "#define QEMU_PRODUCTVERSION $(tr . , < $source_path/VERSION),0" >> $config_h +fi echo "include ../config-host.mak" >> $config_mak echo "#include \"../config-host.h\"" >> $config_h Index: version.rc =================================================================== --- /dev/null 2008-09-25 21:38:10.000000000 -0600 +++ version.rc 2008-03-30 18:25:52.000000000 -0600 @@ -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 + } +} --Apple-Mail-16--681130187 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit --Apple-Mail-16--681130187--