From 53a7ee34035f3d6cf151c87f54f1bf15f04a2460 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 20 Sep 2005 21:20:16 +0000 Subject: Generate chocolate-doom-res.rc with version and product info Subversion-branch: /trunk/chocolate-doom Subversion-revision: 118 --- configure.in | 5 ++++- src/chocolate-doom-res.rc.in | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 src/chocolate-doom-res.rc.in diff --git a/configure.in b/configure.in index d825fd3c..0f81ef47 100644 --- a/configure.in +++ b/configure.in @@ -10,7 +10,6 @@ then CFLAGS="-O3 $orig_CFLAGS" fi - AM_PATH_SDL(1.1.3) # Always build a console mode app @@ -32,8 +31,11 @@ AM_CONDITIONAL(HAVE_WINDRES, which windres > /dev/null) 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_SUBST(ac_aux_dir) AC_OUTPUT([ Makefile src/Makefile +src/chocolate-doom-res.rc ]) diff --git a/src/chocolate-doom-res.rc.in b/src/chocolate-doom-res.rc.in new file mode 100644 index 00000000..a6635932 --- /dev/null +++ b/src/chocolate-doom-res.rc.in @@ -0,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@" + } + } +} + -- cgit v1.2.3