summaryrefslogtreecommitdiff
path: root/xW/xW.rc
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-07-15 23:34:37 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-07-15 23:35:46 +0200
commit90859107c8686c8798bff26aeb8ff17cea54bee1 (patch)
treeaeba2ab0ff6645fa5fda5d346246280d18113e35 /xW/xW.rc
parent0219dbd02615498f4a931e33ef2337e0bbf9b526 (diff)
downloadxK-90859107c8686c8798bff26aeb8ff17cea54bee1.tar.gz
xK-90859107c8686c8798bff26aeb8ff17cea54bee1.tar.xz
xK-90859107c8686c8798bff26aeb8ff17cea54bee1.zip
xW: set version information
Diffstat (limited to 'xW/xW.rc')
-rw-r--r--xW/xW.rc32
1 files changed, 32 insertions, 0 deletions
diff --git a/xW/xW.rc b/xW/xW.rc
index 858b104..f041995 100644
--- a/xW/xW.rc
+++ b/xW/xW.rc
@@ -1,6 +1,12 @@
#include <windows.h>
#include "xW-resources.h"
+// https://devblogs.microsoft.com/oldnewthing/20190607-00/?p=102569
+// For UTF-8 literals to work in both MinGW and Microsoft resource compilers,
+// the pragma needs to be in this file, and before they're included.
+#pragma code_page(65001)
+#include "config.h"
+
// Beware of this madness https://gitlab.kitware.com/cmake/cmake/-/issues/23066
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "xW.manifest"
@@ -21,3 +27,29 @@ BEGIN
"H", ID_TOGGLE_UNIMPORTANT, ALT
"h", ID_DISPLAY_FULL_LOG, ALT
END
+
+VS_VERSION_INFO VERSIONINFO
+FILEVERSION PROJECT_MAJOR, PROJECT_MINOR, PROJECT_PATCH, PROJECT_TWEAK
+PRODUCTVERSION PROJECT_MAJOR, PROJECT_MINOR, PROJECT_PATCH, PROJECT_TWEAK
+FILETYPE VFT_APP
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040904B0"
+ BEGIN
+ VALUE "CompanyName", PROJECT_AUTHOR
+ VALUE "FileDescription", PROJECT_DESCRIPTION
+ VALUE "FileVersion", PROJECT_VERSION
+ VALUE "InternalName", PROJECT_NAME
+ VALUE "LegalCopyright", PROJECT_AUTHOR
+ VALUE "OriginalFilename", PROJECT_NAME ".exe"
+ VALUE "ProductName", PROJECT_NAME
+ VALUE "ProductVersion", PROJECT_VERSION
+ END
+ END
+
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x409, 1200
+ END
+END