aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorThomas la Cour <tlc@hyrtwol.dk>2024-08-20 18:43:40 +0200
committerThomas la Cour <tlc@hyrtwol.dk>2024-08-21 16:26:10 +0200
commit171d917b7e4d0c488f5807fd5ae5928f4b7c625c (patch)
tree4d3dfd4c72a34e7db85be5c2f9f3115db1da064d /examples
parent63cd9a031a76220dc31ef8c009b47ace9fc2b0fd (diff)
odin manifest file
Diffstat (limited to 'examples')
-rw-r--r--examples/demo/demo.rc75
1 files changed, 75 insertions, 0 deletions
diff --git a/examples/demo/demo.rc b/examples/demo/demo.rc
new file mode 100644
index 000000000..ef3ec2fec
--- /dev/null
+++ b/examples/demo/demo.rc
@@ -0,0 +1,75 @@
+
+#define Filename "demo.exe"
+#define FileDescription "Odin demo project."
+#define ProductName "Odin Programming Language Demo"
+
+#include "winres.h"
+
+LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
+#pragma code_page(65001)
+
+#define IDI_ICON1 101
+
+#define Q(x) #x
+#define QUOTE(x) Q(x)
+#define FMTVER(x,y,z,w) QUOTE(x.y.z.w)
+
+#ifndef V1
+#define V1 1
+#endif
+#ifndef V2
+#define V2 0
+#endif
+#ifndef V3
+#define V3 0
+#endif
+#ifndef V4
+#define V4 0
+#endif
+#ifndef ODIN_VERSION
+#define ODIN_VERSION FMTVER(V1,V2,V3,V4)
+#endif
+#ifndef GIT_SHA
+#define GIT_SHA _
+#endif
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION V1,V2,V3,V4
+ PRODUCTVERSION V1,V2,V3,V4
+ FILEFLAGSMASK 0x3fL
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x40004L
+ FILETYPE 0x1L
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "0409FDE9"
+ BEGIN
+ VALUE "CompanyName", "https://odin-lang.org/"
+ VALUE "FileDescription", "Odin Demo"
+ VALUE "FileVersion", FMTVER(V1,V2,V3,V4)
+ VALUE "InternalName", "demo.exe"
+ VALUE "LegalCopyright", "Copyright (c) 2016-2024 Ginger Bill. All rights reserved."
+ VALUE "OriginalFilename", "demo.exe"
+ VALUE "ProductName", "Odin Programming Language Demo"
+ VALUE "ProductVersion", QUOTE(ODIN_VERSION)
+ VALUE "Comments", QUOTE(ODIN_VERSION)
+ // PrivateBuild
+ // SpecialBuild
+ // custom values
+ VALUE "GitSha", QUOTE(GIT_SHA)
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ //0xFDE9=65001=CP_UTF8
+ VALUE "Translation", 0x0409, 0xFDE9
+ END
+END
+
+IDI_ICON1 ICON "..\\..\\misc\\sourcefile.ico"