aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoind-res.rc
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2021-08-17 16:54:47 +0800
committerfanquake <fanquake@gmail.com>2021-08-17 16:54:47 +0800
commitf12fbad5a1852706184082c68655fafad4bb9fe1 (patch)
tree2550f39dcff43463e48827f5aa80ec41f6cbf636 /src/bitcoind-res.rc
parentfdd80b0a53b4af0b29cb6e03118e2456d053a757 (diff)
windres: use PACKAGE_VERSION rather than building more version numbers
Rather than defining more strings, reuse PACKAGE_VERSION, which is already available. We already use PACKAGE_VERSION for `ProductVersion` and `FileVersion` in setup.nsi.
Diffstat (limited to 'src/bitcoind-res.rc')
-rw-r--r--src/bitcoind-res.rc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/bitcoind-res.rc b/src/bitcoind-res.rc
index a98b50c899..353761dfa7 100644
--- a/src/bitcoind-res.rc
+++ b/src/bitcoind-res.rc
@@ -2,9 +2,7 @@
#include "clientversion.h" // holds the needed client version information
#define VER_PRODUCTVERSION CLIENT_VERSION_MAJOR,CLIENT_VERSION_MINOR,CLIENT_VERSION_BUILD
-#define VER_PRODUCTVERSION_STR STRINGIZE(CLIENT_VERSION_MAJOR) "." STRINGIZE(CLIENT_VERSION_MINOR) "." STRINGIZE(CLIENT_VERSION_BUILD)
#define VER_FILEVERSION VER_PRODUCTVERSION
-#define VER_FILEVERSION_STR VER_PRODUCTVERSION_STR
VS_VERSION_INFO VERSIONINFO
FILEVERSION VER_FILEVERSION
@@ -18,13 +16,13 @@ BEGIN
BEGIN
VALUE "CompanyName", "Bitcoin"
VALUE "FileDescription", "bitcoind (Bitcoin node with a JSON-RPC server)"
- VALUE "FileVersion", VER_FILEVERSION_STR
+ VALUE "FileVersion", PACKAGE_VERSION
VALUE "InternalName", "bitcoind"
VALUE "LegalCopyright", COPYRIGHT_STR
VALUE "LegalTrademarks1", "Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php."
VALUE "OriginalFilename", "bitcoind.exe"
VALUE "ProductName", "bitcoind"
- VALUE "ProductVersion", VER_PRODUCTVERSION_STR
+ VALUE "ProductVersion", PACKAGE_VERSION
END
END