add new file windows/winlevel.h and update windows/version.rc
[krb5.git] / src / windows / version.rc
1 #include <windows.h>
2 #include <winver.h>
3 #include "patchlevel.h"
4 #include "winlevel.h"
5
6 /*
7  * BEGIN COMMON VERSION INFO for GSS and Kerberos version resources
8  */
9
10 #define XSTR(x) #x
11 #define STR(x) XSTR(x)
12
13 #define MAJOR_MINOR STR(KRB5_MAJOR_RELEASE) "." STR(KRB5_MINOR_RELEASE)
14
15 #if KRB5_PATCH_LEVEL != 0
16 #define MAYBE_PATCH "." STR(KRB5_PATCHLEVEL)
17 #else
18 #define MAYBE_PATCH ""
19 #endif
20
21 #ifdef KRB5_RELTAIL
22 #define RELTAIL "-" KRB5_RELTAIL
23 #else
24 #define RELTAIL ""
25 #endif
26
27 #ifdef BETA
28 #define BETA_FLAG VS_FF_PRERELEASE
29 #else
30 #define BETA_FLAG 0
31 #endif
32
33 #if !defined(_WIN32)
34 #define Targ_OS VOS__WINDOWS16
35 #else
36 #define Targ_OS VOS__WINDOWS32
37 #endif
38
39 /* we're going to stamp all the DLLs with the same version number */
40
41 #define K5_PRODUCT_VERSION_STRING MAJOR_MINOR MAYBE_PATCH RELTAIL "\0"
42 #define K5_PRODUCT_VERSION        KRB5_MAJOR_RELEASE, KRB5_MINOR_RELEASE, KRB5_PATCHLEVEL, KRB5_BUILDLEVEL
43
44 #define K5_COPYRIGHT "Copyright (C) 1997-2006 by the Massachusetts Institute of Technology\0"
45 #define K5_COMPANY_NAME "Massachusetts Institute of Technology.\0"
46
47 /* 
48  * END COMMON VERSION INFO
49  */
50
51
52 /*
53  * BEGIN SPECIFIC VERSION INFO for GSS and Kerberos version resources
54  */
55
56 #ifdef SUPPORT_LIB
57 #define K5_DESCRIPTION "Kerberos v5 support - internal support code for MIT Kerberos v5 /GSS distribution"
58 #define K5_INTERNAL_NAME "krb5support\0"
59 #define K5_FILETYPE     VFT_DLL
60 #if !defined(_WIN32)
61 #error not win32??
62 #else
63 #define K5_ORIGINAL_NAME "k5sprt32.dll\0"
64 #endif
65 #endif /* support */
66
67 #ifdef CE_LIB
68 #define K5_DESCRIPTION "COM_ERR - Common Error Handler for MIT Kerberos v5 / GSS distribution\0"
69 #define K5_INTERNAL_NAME "comerr\0"
70 #define K5_FILETYPE     VFT_DLL
71 #if !defined(_WIN32)
72 #define K5_ORIGINAL_NAME "comerr16.dll\0"
73 #else
74 #define K5_ORIGINAL_NAME "comerr32.dll\0"
75 #endif
76 #endif /* comerr */
77
78 #ifdef PROF_LIB
79 #define K5_DESCRIPTION "PROFILE - Profile Library MIT Kerberos v5 / GSS distribution\0"
80 #define K5_INTERNAL_NAME "profile\0"
81 #define K5_FILETYPE     VFT_DLL
82 #if !defined(_WIN32)
83 #define K5_ORIGINAL_NAME "xpprof16.dll\0"
84 #else
85 #define K5_ORIGINAL_NAME "xpprof32.dll\0"
86 #endif
87 #endif /* profile */
88
89 #ifdef KRB5_LIB
90 #define K5_DESCRIPTION "Kerberos v5 - MIT GSS / Kerberos v5 distribution\0"
91 #define K5_INTERNAL_NAME "krb5\0"
92 #define K5_FILETYPE     VFT_DLL
93 #if !defined(_WIN32)
94 #define K5_ORIGINAL_NAME "krb5_16.dll\0"
95 #else
96 #define K5_ORIGINAL_NAME "krb5_32.dll\0"
97 #endif
98 #endif /* KRB5 */
99
100 #ifdef GSSAPI_LIB
101 #define K5_DESCRIPTION "GSSAPI - GSS API implementation for Kerberos 5 mechanism\0"
102 #define K5_INTERNAL_NAME "gssapi\0"
103 #define K5_FILETYPE     VFT_DLL
104 #if !defined(_WIN32)
105 #define K5_ORIGINAL_NAME "gssapi.dll\0"
106 #else
107 #define K5_ORIGINAL_NAME "gssapi32.dll\0"
108 #endif
109 #endif /* GSSAPI */
110
111 #ifdef KRB4_LIB
112 #define K5_DESCRIPTION "Kerberos v4 - MIT GSS / Kerberos v4 and v5 distribution\0"
113 #define K5_INTERNAL_NAME "krb4\0"
114 #define K5_FILETYPE     VFT_DLL
115 #if !defined(_WIN32)
116 #define K5_ORIGINAL_NAME "krb4_16.dll\0"
117 #else
118 #define K5_ORIGINAL_NAME "krb4_32.dll\0"
119 #endif
120 #endif /* KRB4 */
121
122 #ifdef SAPKRB_LIB
123 #define K5_DESCRIPTION "Kerberos v5 - MIT GSS / Kerberos v5 distribution (for SAP)\0"
124 #define K5_INTERNAL_NAME "sapkrb5\0"
125 #define K5_FILETYPE     VFT_DLL
126 #if !defined(_WIN32)
127 #define K5_ORIGINAL_NAME "sapkrb16.dll\0"
128 #else
129 #define K5_ORIGINAL_NAME "sapkrb32.dll\0"
130 #endif
131 #endif /* SAPKRB */
132
133 #ifdef SAPGSS_LIB
134 #define K5_DESCRIPTION "GSSAPI - GSS API implementation for Kerberos 5 mechanism(for SAP)\0"
135 #define K5_INTERNAL_NAME "sapgss\0"
136 #define K5_FILETYPE     VFT_DLL
137 #if !defined(_WIN32)
138 #define K5_ORIGINAL_NAME "sapgss16.dll\0"
139 #else
140 #define K5_ORIGINAL_NAME "sapgss32.dll\0"
141 #endif
142 #endif /* SAPGSS */
143
144 #ifdef KRB5_APP
145 #define K5_DESCRIPTION "KRB5 Ticket Manager - MIT GSS / Kerberos v5 distribution\0"
146 #define K5_FILETYPE     VFT_APP
147 #define K5_INTERNAL_NAME "KRB5\0"
148 #define K5_ORIGINAL_NAME "krb5.exe\0"
149 #endif /* KRB5_APP */
150
151 #ifdef GSS_APP
152 #define K5_DESCRIPTION "GSS - GSS Sample Application for MIT Kerberos v5 / GSS distribution\0"
153 #define K5_FILETYPE     VFT_APP
154 #define K5_INTERNAL_NAME "GSS\0"
155 #define K5_ORIGINAL_NAME "gss.exe\0"
156 #endif
157
158 #ifdef TELNET_APP
159 #define K5_DESCRIPTION "Telnet - Telnet Application for MIT Kerberos v5 / GSS distribution\0"
160 #define K5_FILETYPE     VFT_APP
161 #define K5_INTERNAL_NAME "TELNET\0"
162 #define K5_ORIGINAL_NAME "telnet.exe\0"
163 #endif
164
165 /* 
166  * END SPECIFIC VERSION INFO
167  */
168
169 VS_VERSION_INFO VERSIONINFO
170 FILEVERSION     K5_PRODUCT_VERSION
171 PRODUCTVERSION  K5_PRODUCT_VERSION
172 FILEFLAGSMASK   VS_FFI_FILEFLAGSMASK
173 FILEFLAGS       (VS_FF_DEBUG | VS_FF_PRIVATEBUILD | BETA_FLAG)
174 FILEOS          Targ_OS
175 FILETYPE        K5_FILETYPE
176 BEGIN
177     BLOCK "VarFileInfo"
178     BEGIN
179         VALUE "Translation", 0x0409, 1252
180     END
181
182     BLOCK "StringFileInfo"
183     BEGIN
184         BLOCK "040904E4"
185         BEGIN
186 #if defined(VER_EXTRA_LABEL) && defined(VER_EXTRA_VALUE)
187             VALUE VER_EXTRA_LABEL,   VER_EXTRA_VALUE
188 #endif
189 #ifdef VER_COMMENT
190             VALUE "Comment",         VER_COMMENT
191 #endif
192 #ifdef VER_USERNAME
193             VALUE "Built By",        VER_USERNAME
194 #endif
195 #ifdef VER_HOSTNAME
196             VALUE "Build Host",      VER_HOSTNAME
197 #endif
198 #ifdef VER_DATE
199             VALUE "Build Time",      VER_DATE
200 #endif
201 #ifdef VER_VENDOR
202             VALUE "Modified by Vendor",  VER_VENDOR
203 #endif
204             VALUE "CompanyName",        K5_COMPANY_NAME
205             VALUE "FileDescription",    K5_DESCRIPTION
206             VALUE "FileVersion",        K5_PRODUCT_VERSION_STRING
207             VALUE "InternalName",       K5_INTERNAL_NAME
208 #ifdef VER_LEGALTRADEMARK_STR
209             VALUE VER_LEGALTRADEMARK_STR
210 #else
211             VALUE "LegalTrademarks",    "\0"
212 #endif
213             VALUE "OriginalFilename",   K5_ORIGINAL_NAME
214             VALUE "ProductName",        K5_ORIGINAL_NAME
215             VALUE "ProductVersion",     K5_PRODUCT_VERSION_STRING
216
217             VALUE "LegalCopyright",     K5_COPYRIGHT
218 #ifdef VER_SPECIALBUILD
219             VALUE "SpecialBuild",       VER_SPECIALBUILD
220 #endif
221         END
222     END
223 END