[CMAKE]
[reactos.git] / include / reactos / version.rc
1 /* $Id$
2 *
3 * Inspired by Wine file include/wine_common_ver.rc
4 * Copyright 2001 Dmitry Timoshkov
5 *
6 * Most version components are set to reasonable defaults here.
7 * If you're including this for a .DLL, #define REACTOS_VERSION_DLL before the #include.
8 * Other things to #define:
9 * REACTOS_STR_FILE_DESCRIPTION
10 * REACTOS_STR_INTERNAL_NAME
11 * REACTOS_STR_ORIGINAL_FILENAME
12 *
13 */
14
15 #include "winver.h"
16 #include "version.h"
17 #include "buildno.h"
18
19 /* Define some defaults (shouldn't be overwritten by applications */
20 #define REACTOS_DEFAULT_STR_COMPANY_NAME "ReactOS Development Team\0"
21 #define REACTOS_DEFAULT_STR_DESCRIPTION "ReactOS Core Component\0"
22 #define REACTOS_DEFAULT_STR_INTERNAL_NAME "\0"
23 #define REACTOS_DEFAULT_STR_LEGAL_COPYRIGHT "Copyright 1998-" COPYRIGHT_YEAR " ReactOS Team\0"
24 #define REACTOS_DEFAULT_STR_PRODUCT_NAME "ReactOS Operating System\0"
25
26 /* Set defaults for everything, unless overridden */
27 #ifndef REACTOS_FILEVERSION
28 #ifdef REACTOS_VERSION_DLL
29 #define REACTOS_FILEVERSION REACTOS_DLL_VERSION_MAJOR,KERNEL_VERSION_MINOR,KERNEL_VERSION_PATCH_LEVEL,0
30 #else
31 #define REACTOS_FILEVERSION KERNEL_VERSION_MAJOR,KERNEL_VERSION_MINOR,KERNEL_VERSION_PATCH_LEVEL,0
32 #endif /* REACTOS_VERSION_DLL */
33 #endif /* REACTOS_FILEVERSION */
34
35 #ifndef REACTOS_PRODUCTVERSION
36 #define REACTOS_PRODUCTVERSION KERNEL_VERSION_MAJOR,KERNEL_VERSION_MINOR,KERNEL_VERSION_PATCH_LEVEL,0
37 #endif /* REACTOS_PRODUCTVERSION */
38
39 #ifndef REACTOS_FILEFLAGSMASK
40 #define REACTOS_FILEFLAGSMASK 0x3fL
41 #endif /* REACTOS_FILEFLAGSMASK */
42
43 #ifndef REACTOS_FILEFLAGS
44 #ifdef _DEBUG
45 #define REACTOS_FILEFLAGS VS_FF_DEBUG
46 #else
47 #define REACTOS_FILEFLAGS 0x0L
48 #endif /* _DEBUG */
49 #endif /* REACTOS_FILEFLAGS */
50
51 #ifndef REACTOS_FILEOS
52 #define REACTOS_FILEOS VOS_NT_WINDOWS32
53 #endif /* REACTOS_FILEOS */
54
55 #ifndef REACTOS_FILETYPE
56 #ifdef REACTOS_VERSION_DLL
57 #define REACTOS_FILETYPE VFT_DLL
58 #else
59 #define REACTOS_FILETYPE VFT_APP
60 #endif /* REACTOS_VERSION_DLL */
61 #endif /* REACTOS_FILETYPE */
62
63 #ifndef REACTOS_FILESUBTYPE
64 #define REACTOS_FILESUBTYPE VFT2_UNKNOWN
65 #endif /* REACTOS_FILESUBTYPE */
66
67 #ifndef REACTOS_STR_COMPANY_NAME
68 #define REACTOS_STR_COMPANY_NAME REACTOS_DEFAULT_STR_COMPANY_NAME
69 #endif /* REACTOS_STR_COMPANY_NAME */
70
71 #ifndef REACTOS_STR_FILE_DESCRIPTION
72 #define REACTOS_STR_FILE_DESCRIPTION REACTOS_DEFAULT_STR_FILE_DESCRIPTION
73 #endif /* REACTOS_STR_FILE_DESCRIPTION */
74
75 #ifndef REACTOS_STR_FILE_VERSION
76 #ifdef REACTOS_VERSION_DLL
77 #define REACTOS_STR_FILE_VERSION REACTOS_DLL_VERSION_RC
78 #else
79 #define REACTOS_STR_FILE_VERSION KERNEL_VERSION_RC
80 #endif /* REACTOS_VERSION_DLL */
81 #endif /* REACTOS_STR_FILE_VERSION */
82
83 #ifndef REACTOS_STR_INTERNAL_NAME
84 #define REACTOS_STR_INTERNAL_NAME REACTOS_DEFAULT_STR_INTERNAL_NAME
85 #endif /* REACTOS_STR_INTERNAL_NAME */
86
87 #ifndef REACTOS_STR_LEGAL_COPYRIGHT
88 #define REACTOS_STR_LEGAL_COPYRIGHT REACTOS_DEFAULT_STR_LEGAL_COPYRIGHT
89 #endif /* REACTOS_STR_LEGAL_COPYRIGHT */
90
91 #ifndef REACTOS_STR_ORIGINAL_FILENAME
92 #define REACTOS_STR_ORIGINAL_FILENAME "\0"
93 #endif /* REACTOS_STR_ORIGINAL_FILENAME */
94
95 #ifndef REACTOS_STR_PRODUCT_NAME
96 #define REACTOS_STR_PRODUCT_NAME REACTOS_DEFAULT_STR_PRODUCT_NAME
97 #endif /* REACTOS_STR_PRODUCT_NAME */
98
99 #ifndef REACTOS_STR_PRODUCT_VERSION
100 #define REACTOS_STR_PRODUCT_VERSION KERNEL_VERSION_RC
101 #endif /* REACTOS_STR_PRODUCT_VERSION */
102
103 #ifndef REACTOS_STR_PRODUCT_BUILD
104 #define REACTOS_STR_PRODUCT_BUILD KERNEL_VERSION_BUILD_RC
105 #endif /* REACTOS_STR_PRODUCT_BUILD */
106
107 /* The version resource itself */
108 VS_VERSION_INFO VERSIONINFO
109 FILEVERSION REACTOS_FILEVERSION
110 PRODUCTVERSION REACTOS_PRODUCTVERSION
111 FILEFLAGSMASK REACTOS_FILEFLAGSMASK
112 FILEFLAGS REACTOS_FILEFLAGS
113 FILEOS REACTOS_FILEOS
114 FILETYPE REACTOS_FILETYPE
115 FILESUBTYPE REACTOS_FILESUBTYPE
116 BEGIN
117 BLOCK "StringFileInfo"
118 BEGIN
119 BLOCK "040904b0"
120 BEGIN
121 VALUE "CompanyName", REACTOS_STR_COMPANY_NAME
122 VALUE "FileDescription", REACTOS_STR_FILE_DESCRIPTION
123 VALUE "FileVersion", REACTOS_STR_FILE_VERSION
124 VALUE "InternalName", REACTOS_STR_INTERNAL_NAME
125 #ifdef REACTOS_STR_ORIGINAL_COPYRIGHT
126 VALUE "OriginalCopyright", REACTOS_STR_ORIGINAL_COPYRIGHT
127 #endif /* REACTOS_STR_ORIGINAL_COPYRIGHT */
128 VALUE "LegalCopyright", REACTOS_STR_LEGAL_COPYRIGHT
129 VALUE "OriginalFilename", REACTOS_STR_ORIGINAL_FILENAME
130 VALUE "ProductName", REACTOS_STR_PRODUCT_NAME
131 VALUE "ProductVersion", REACTOS_STR_PRODUCT_VERSION
132 #ifdef REACTOS_OLESELFREGISTER
133 VALUE "OLESelfRegister", ""
134 #endif /* REACTOS_OLESELFREGISTER */
135 END
136 END
137 BLOCK "VarFileInfo"
138 BEGIN
139 VALUE "Translation", 0x409, 1200
140 END
141 END