ref: 53a7ee34035f3d6cf151c87f54f1bf15f04a2460
parent: 1c85056909aee7989dd4484d0fd49e543b61c676
author: Simon Howard <[email protected]>
date: Tue Sep 20 17:20:16 EDT 2005
Generate chocolate-doom-res.rc with version and product info Subversion-branch: /trunk/chocolate-doom Subversion-revision: 118
--- a/configure.in
+++ b/configure.in
@@ -10,7 +10,6 @@
CFLAGS="-O3 $orig_CFLAGS"
fi
-
AM_PATH_SDL(1.1.3)
# Always build a console mode app
@@ -32,8 +31,11 @@
AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME,AC_PACKAGE_VERSION)
+WINDOWS_RC_VERSION=`echo $PACKAGE_VERSION.0 | sed 's/\./, /g' `
+
AM_CONFIG_HEADER(config.h:config.hin)
+AC_SUBST(WINDOWS_RC_VERSION)
AC_SUBST(SDLMIXER_CFLAGS)
AC_SUBST(SDLMIXER_LIBS)
@@ -45,5 +47,6 @@
AC_OUTPUT([
Makefile
src/Makefile
+src/chocolate-doom-res.rc
])
--- /dev/null
+++ b/src/chocolate-doom-res.rc.in
@@ -1,0 +1,22 @@
+1 ICON "..\\data\\chocolate-doom.ico"
+
+1 VERSIONINFO
+PRODUCTVERSION @WINDOWS_RC_VERSION@
+FILEVERSION @WINDOWS_RC_VERSION@
+FILETYPE 1
+{
+ BLOCK "StringFileInfo"
+ {
+ BLOCK "040904E4"
+ {
+ VALUE "FileVersion", "@PACKAGE_VERSION@"
+ VALUE "FileDescription", "@PACKAGE_STRING@"
+ VALUE "InternalName", "@PACKAGE_TARNAME@"
+ VALUE "CompanyName", "@PACKAGE_BUGREPORT@"
+ VALUE "LegalCopyright", "GNU General Public License"
+ VALUE "ProductName", "@PACKAGE_NAME@"
+ VALUE "ProductVersion", "@PACKAGE_VERSION@"
+ }
+ }
+}
+