summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in5
-rw-r--r--src/chocolate-doom-res.rc.in22
2 files changed, 26 insertions, 1 deletions
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@"
+ }
+ }
+}
+