xref: /third_party/lzma/C/7zVersion.rc (revision 370b324c)
1370b324cSopenharmony_ci#define MY_VS_FFI_FILEFLAGSMASK  0x0000003FL
2370b324cSopenharmony_ci#define MY_VOS_NT_WINDOWS32  0x00040004L
3370b324cSopenharmony_ci#define MY_VOS_CE_WINDOWS32  0x00050004L
4370b324cSopenharmony_ci
5370b324cSopenharmony_ci#define MY_VFT_APP  0x00000001L
6370b324cSopenharmony_ci#define MY_VFT_DLL  0x00000002L
7370b324cSopenharmony_ci
8370b324cSopenharmony_ci// #include <WinVer.h>
9370b324cSopenharmony_ci
10370b324cSopenharmony_ci#ifndef MY_VERSION
11370b324cSopenharmony_ci#include "7zVersion.h"
12370b324cSopenharmony_ci#endif
13370b324cSopenharmony_ci
14370b324cSopenharmony_ci#define MY_VER MY_VER_MAJOR,MY_VER_MINOR,MY_VER_BUILD,0
15370b324cSopenharmony_ci
16370b324cSopenharmony_ci#ifdef DEBUG
17370b324cSopenharmony_ci#define DBG_FL VS_FF_DEBUG
18370b324cSopenharmony_ci#else
19370b324cSopenharmony_ci#define DBG_FL 0
20370b324cSopenharmony_ci#endif
21370b324cSopenharmony_ci
22370b324cSopenharmony_ci#define MY_VERSION_INFO(fileType, descr, intName, origName)  \
23370b324cSopenharmony_ciLANGUAGE 9, 1 \
24370b324cSopenharmony_ci1 VERSIONINFO \
25370b324cSopenharmony_ci  FILEVERSION MY_VER \
26370b324cSopenharmony_ci  PRODUCTVERSION MY_VER \
27370b324cSopenharmony_ci  FILEFLAGSMASK MY_VS_FFI_FILEFLAGSMASK \
28370b324cSopenharmony_ci  FILEFLAGS DBG_FL \
29370b324cSopenharmony_ci  FILEOS MY_VOS_NT_WINDOWS32 \
30370b324cSopenharmony_ci  FILETYPE fileType \
31370b324cSopenharmony_ci  FILESUBTYPE 0x0L \
32370b324cSopenharmony_ciBEGIN \
33370b324cSopenharmony_ci    BLOCK "StringFileInfo" \
34370b324cSopenharmony_ci    BEGIN  \
35370b324cSopenharmony_ci        BLOCK "040904b0" \
36370b324cSopenharmony_ci        BEGIN \
37370b324cSopenharmony_ci            VALUE "CompanyName", "Igor Pavlov" \
38370b324cSopenharmony_ci            VALUE "FileDescription", descr \
39370b324cSopenharmony_ci            VALUE "FileVersion", MY_VERSION  \
40370b324cSopenharmony_ci            VALUE "InternalName", intName \
41370b324cSopenharmony_ci            VALUE "LegalCopyright", MY_COPYRIGHT \
42370b324cSopenharmony_ci            VALUE "OriginalFilename", origName \
43370b324cSopenharmony_ci            VALUE "ProductName", "7-Zip" \
44370b324cSopenharmony_ci            VALUE "ProductVersion", MY_VERSION \
45370b324cSopenharmony_ci        END \
46370b324cSopenharmony_ci    END \
47370b324cSopenharmony_ci    BLOCK "VarFileInfo" \
48370b324cSopenharmony_ci    BEGIN \
49370b324cSopenharmony_ci        VALUE "Translation", 0x409, 1200 \
50370b324cSopenharmony_ci    END \
51370b324cSopenharmony_ciEND
52370b324cSopenharmony_ci
53370b324cSopenharmony_ci#define MY_VERSION_INFO_APP(descr, intName) MY_VERSION_INFO(MY_VFT_APP, descr, intName, intName ".exe")
54370b324cSopenharmony_ci
55370b324cSopenharmony_ci#define MY_VERSION_INFO_DLL(descr, intName) MY_VERSION_INFO(MY_VFT_DLL, descr, intName, intName ".dll")
56