Debian Codegraph @

windows/version.rc

raw
1 /***********************************************************************
2 * Copyright (c) 2010, Secure Endpoints Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * - Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * - Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in
14 * the documentation and/or other materials provided with the
15 * distribution.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
20 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
21 * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
22 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
26 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
28 * OF THE POSSIBILITY OF SUCH DAMAGE.
29 *
30 **********************************************************************/
31
32 /*
33 * This version script is not meant to be used as-is. It requires the
34 * following parameters that must be supplied using preprocessor
35 * macros:
36 *
37 * RC_FILE_TYPE (Set to either VFT_DLL or VFT_APP)
38 * RC_FILE_DESC_0409 (File description (English))
39 * RC_FILE_ORIG_0409 (Original file name (English))
40 *
41 * The following macros are optional:
42 *
43 * RC_FILE_SUBTYPE (File subtype. See MSDN.)
44 * RC_FILEVER_C (Comma separated file version, if different from
45 * product version)
46 * RC_FILE_COMMENT_0409 (File comment (English))
47 */
48
49 #include<windows.h>
50 #include<config.h>
51
52 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
53 #pragma code_page(1252)
54
55 #ifdef VER_PRIVATE
56 #define P_PRIVATE VS_FF_PRIVATEBUILD
57 #else
58 #define P_PRIVATE 0
59 #endif
60
61 #ifdef VER_SPECIAL
62 #define P_SPECIAL VS_FF_SPECIALBUILD
63 #else
64 #define P_SPECIAL 0
65 #endif
66
67 #ifdef VER_PRERELEASE
68 #define P_PRE VS_FF_PRERELEASE
69 #else
70 #define P_PRE 0
71 #endif
72
73 #ifdef VER_DEBUG
74 #define P_DEBUG VS_FF_DEBUG
75 #else
76 #define P_DEBUG 0
77 #endif
78
79 /* If some per-file values aren't specified, we use the application
80 values as a substitute */
81
82 #ifndef RC_FILEVER_C
83 #define RC_FILEVER_C RC_PRODVER_C
84 #define RC_FILE_VER_0409 RC_PRODUCT_VER_0409
85 #endif
86
87 #ifndef RC_FILE_INTERNAL_0409
88 #define RC_FILE_INTERNAL_0409 RC_FILE_ORIG_0409
89 #endif
90
91 #ifndef RC_FILE_PRODUCT_NAME_0409
92 #define RC_FILE_PRODUCT_NAME_0409 RC_PRODUCT_NAME_0409
93 #endif
94
95 #ifndef RC_FILE_PRODUCT_VER_0409
96 #define RC_FILE_PRODUCT_VER_0409 RC_PRODUCT_VER_0409
97 #endif
98
99 #ifndef RC_FILE_COMPANY_0409
100 #define RC_FILE_COMPANY_0409 RC_COMPANY_0409
101 #endif
102
103 #ifndef RC_FILE_COPYRIGHT_0409
104 #define RC_FILE_COPYRIGHT_0409 RC_COPYRIGHT_0409
105 #endif
106
107 1 VERSIONINFO
108 FILEVERSION RC_FILEVER_C
109 PRODUCTVERSION RC_PRODVER_C
110 FILEFLAGSMASK (VS_FF_DEBUG|VS_FF_PRERELEASE|VS_FF_PRIVATEBUILD|VS_FF_SPECIALBUILD)
111 FILEFLAGS (P_DEBUG|P_PRE|P_PRIVATE|P_SPECIAL)
112 FILEOS VOS_NT
113 FILETYPE RC_FILE_TYPE
114 #ifdef RC_FILE_SUBTYPE
115 FILESUBTYPE RC_FILE_SUBTYPE
116 #endif
117 BEGIN
118 BLOCK "StringFileInfo"
119 BEGIN
120 BLOCK "040904E4"
121 BEGIN
122 VALUE "ProductName", RC_FILE_PRODUCT_NAME_0409
123 VALUE "ProductVersion", RC_FILE_PRODUCT_VER_0409
124 VALUE "CompanyName", RC_FILE_COMPANY_0409
125 VALUE "LegalCopyright", RC_FILE_COPYRIGHT_0409
126 #ifdef RC_FILE_TRADEMARK_0409
127 VALUE "LegalTrademark", RC_FILE_TRADEMARK_0409
128 #endif
129 #ifdef RC_FILE_COMMENT_0409
130 VALUE "Comments", RC_FILE_COMMENT_0409
131 #endif
132 VALUE "FileDescription", RC_FILE_DESC_0409
133 VALUE "FileVersion", RC_FILE_VER_0409
134 VALUE "InternalName", RC_FILE_INTERNAL_0409
135 VALUE "OriginalFilename", RC_FILE_ORIG_0409
136 #ifdef VER_PRIVATE
137 VALUE "PrivateBuild", VER_PRIVATE
138 #endif
139 #ifdef VER_SPECIAL
140 VALUE "SpecialBuild", VER_SPECIAL
141 #endif
142 END
143 END
144
145 BLOCK "VarFileInfo"
146 BEGIN
147 VALUE "Translation", 0x0409 /* US English */, 1252 /* Multilingual */
148 END
149 END