-
-
Notifications
You must be signed in to change notification settings - Fork 575
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
181 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -266,6 +266,9 @@ bin/ | |
*.exe | ||
*.obj | ||
*.pdb | ||
*.res | ||
desktop.ini | ||
Thumbs.db | ||
|
||
# - Linux/MacOS | ||
odin | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version='1.0' encoding='UTF-8' standalone='yes'?> | ||
<assembly xmlns='urn:schemas-microsoft-com:asm.v3' manifestVersion='1.0'> | ||
<application> | ||
<windowsSettings xmlns="http://schemas.microsoft.com/SMI/2019/WindowsSettings"> | ||
<activeCodePage>UTF-8</activeCodePage> | ||
</windowsSettings> | ||
</application> | ||
</assembly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
|
||
#include "winres.h" | ||
|
||
// https://learn.microsoft.com/en-us/windows/win32/menurc/stringfileinfo-block | ||
|
||
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT | ||
#pragma code_page(65001) // CP_UTF8 | ||
|
||
#define IDI_ICON1 101 | ||
#define IDI_ICON2 102 | ||
|
||
#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 VF | ||
#define VF "1.0.0.0" | ||
#endif | ||
#ifndef VP | ||
#define VP "1.0.0.0" | ||
#endif | ||
#ifndef GIT_SHA | ||
#define GIT_SHA 0 | ||
#endif | ||
|
||
#define Q(x) #x | ||
#define QUOTE(x) Q(x) | ||
|
||
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 general-purpose programming language." // note this is shown in the task manager | ||
VALUE "FileVersion", QUOTE(VF) | ||
VALUE "InternalName", "odin.exe" | ||
VALUE "LegalCopyright", "Copyright (c) 2016-2024 Ginger Bill. All rights reserved." | ||
VALUE "OriginalFilename", "odin.exe" | ||
VALUE "ProductName", "The Odin Programming Language" | ||
VALUE "ProductVersion", QUOTE(VP) | ||
VALUE "Comments", QUOTE(git-sha: GIT_SHA) | ||
// 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 "emblem.ico" | ||
IDI_ICON2 ICON "sourcefile.ico" |
Binary file not shown.