-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathVersionInfo.rc.in
54 lines (49 loc) · 1.62 KB
/
VersionInfo.rc.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include <Windows.h>
/* UTF-8 */
#pragma code_page(65001)
#cmakedefine AC_ADDON_FOR_DISTRIBUTION
#ifdef AC_ADDON_FOR_DISTRIBUTION
#define PRERELEASE_FLAGS 0
#else
#define PRERELEASE_FLAGS VS_FF_PRIVATEBUILD|VS_FF_PRERELEASE
#endif
/* https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros */
#ifdef _DEBUG
#define DEBUG_FLAG VS_FF_DEBUG
#else
#define DEBUG_FLAG 0
#endif
/* https://learn.microsoft.com/en-us/windows/win32/menurc/versioninfo-resource */
VS_VERSION_INFO VERSIONINFO
FILEVERSION @versionComma@
PRODUCTVERSION 0,@acVersion@,0,@gsBuildNum@
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS (PRERELEASE_FLAGS|DEBUG_FLAG)
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_DLL
FILESUBTYPE VFT2_UNKNOWN
BEGIN
/* https://learn.microsoft.com/en-us/windows/win32/menurc/stringfileinfo-block */
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "CompanyName", "@addOnCompanyName@"
VALUE "FileDescription", "Example Archicad addon"
VALUE "FileVersion", "@version@"
VALUE "InternalName", "@addOnName@"
VALUE "LegalCopyright", "@copyright@"
VALUE "OriginalFilename", "@addOnName@.apx"
#ifndef AC_ADDON_FOR_DISTRIBUTION
VALUE "PrivateBuild", "Not for distribution"
#endif
VALUE "ProductName", "@addOnName@"
VALUE "ProductVersion", "@version@"
END
END
/* https://learn.microsoft.com/en-us/windows/win32/menurc/varfileinfo-block */
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0409, 1200
END
END