aboutsummaryrefslogtreecommitdiff
path: root/windows/common.rc
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-02-13 18:02:05 +0200
committerLasse Collin <lasse.collin@tukaani.org>2009-02-13 18:02:05 +0200
commit0dae8b7751d09e9c5a482d5519daaee4800ce203 (patch)
tree49a3cad06ef89a865a98bb902f6780f9d69f536c /windows/common.rc
parentChanged how the version number is specified in various places. (diff)
downloadxz-0dae8b7751d09e9c5a482d5519daaee4800ce203.tar.xz
Windows port: Take advantage of the version number macros.
Now the version number is not duplicated in the Windows-specific files anymore.
Diffstat (limited to 'windows/common.rc')
-rw-r--r--windows/common.rc16
1 files changed, 8 insertions, 8 deletions
diff --git a/windows/common.rc b/windows/common.rc
index 18bc6c13..0142d15a 100644
--- a/windows/common.rc
+++ b/windows/common.rc
@@ -1,13 +1,13 @@
#include <winresrc.h>
#include "config.h"
+#define LZMA_H_INTERNAL
+#define LZMA_H_INTERNAL_RC
+#include "lzma/version.h"
-#define MY_VER_MAJOR 4
-#define MY_VER_MINOR 999
-#define MY_VER_PATCH 8
-#ifndef MY_VER_BUILD
-# define MY_VER_BUILD 0
+#ifndef MY_BUILD
+# define MY_BUILD 0
#endif
-#define MY_VERSION MY_VER_MAJOR,MY_VER_MINOR,MY_VER_PATCH,MY_VER_BUILD
+#define MY_VERSION LZMA_VERSION_MAJOR,LZMA_VERSION_MINOR,LZMA_VERSION_PATCH,MY_BUILD
#define MY_FILENAME MY_NAME MY_SUFFIX
#define MY_COMPANY "Lasse Collin and Igor Pavlov"
@@ -31,12 +31,12 @@ BEGIN
VALUE "Comments", MY_COMMENTS
VALUE "CompanyName", MY_COMPANY
VALUE "FileDescription", MY_DESC
- VALUE "FileVersion", PACKAGE_VERSION
+ VALUE "FileVersion", LZMA_VERSION_STRING
VALUE "InternalName", MY_NAME
VALUE "LegalCopyright", MY_COPYRIGHT
VALUE "OriginalFilename", MY_FILENAME
VALUE "ProductName", PACKAGE_NAME
- VALUE "ProductVersion", PACKAGE_VERSION
+ VALUE "ProductVersion", LZMA_VERSION_STRING
END
END
BLOCK "VarFileInfo"