Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JNTYy-0000YV-8F for qemu-devel@nongnu.org; Fri, 08 Feb 2008 08:46:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JNTYv-0000YF-Th for qemu-devel@nongnu.org; Fri, 08 Feb 2008 08:46:42 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JNTYv-0000YC-LE for qemu-devel@nongnu.org; Fri, 08 Feb 2008 08:46:41 -0500 Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JNTYv-0008Da-5R for qemu-devel@nongnu.org; Fri, 08 Feb 2008 08:46:41 -0500 Date: Fri, 8 Feb 2008 13:46:48 +0000 (GMT) From: Johannes Schindelin Subject: Re: [Qemu-devel] [PATCH] Windows: put version and file info into exe In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "C.W. Betts" Cc: qemu-devel@nongnu.org Hi, On Thu, 7 Feb 2008, C.W. Betts wrote: > This patch will make an .rc file that will put the version info as well > as a brief discription of the app for Windows. It would have been easier to comment on the patch if you would have inlined it. >diff -u -r1.187 configure >--- configure 3 Feb 2008 19:20:13 -0000 1.187 >+++ configure 7 Feb 2008 18:11:27 -0000 >@@ -677,7 +677,7 @@ > > if test "$mingw32" = "yes" ; then > if test -z "$prefix" ; then >- prefix="/c/Program Files/Qemu" >+ prefix=/c/Program\ Files/Qemu > fi > mansuffix="" > datasuffix="" Why not go the full nine yards and use $PROGRAMFILES, being nice to non-English users? Besides, how is this change related to your subject? Is it even necessary? >+echo " VALUE \"LegalCopyright\", \"GNU Lesser General Public >License\"" >> $version_rc This is actively wrong: LICENSE states 1) QEMU as a whole is released under the GNU General Public License >+#echo " VALUE \"ProductVersion\", \"@REL_STRING@\"" > $version_rc You don't want that to be committed. Overall: would it not be nicer to have the version.rc file tracked, instead of written by configure? You'd only need to add a #define for the WINDOWS_VERSION (a la QEMU_VERSION) in config-host.h. Then use it in version.rc. TARGET_ARCH is already #defined in $target/config.h, and for the OriginalFilename, you could change the Makefile rule from + +%.o: %.rc + windres -c -o $< $@ to + +%.o: %.rc + windres -DORIGINAL_FILENAME=\"$(QEMU_PROG)\" -c -o $< $@ Hth, Dscho