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 |
|
---|
127 | #ifdef RC_FILE_COMMENT_0409
|
---|
128 | VALUE "Comments", RC_FILE_COMMENT_0409
|
---|
129 | #endif
|
---|
130 | VALUE "FileDescription", RC_FILE_DESC_0409
|
---|
131 | VALUE "FileVersion", RC_FILE_VER_0409
|
---|
132 | VALUE "InternalName", RC_FILE_INTERNAL_0409
|
---|
133 | VALUE "OriginalFilename", RC_FILE_ORIG_0409
|
---|
134 | #ifdef VER_PRIVATE
|
---|
135 | VALUE "PrivateBuild", VER_PRIVATE
|
---|
136 | #endif
|
---|
137 | #ifdef VER_SPECIAL
|
---|
138 | VALUE "SpecialBuild", VER_SPECIAL
|
---|
139 | #endif
|
---|
140 | END
|
---|
141 | END
|
---|
142 |
|
---|
143 | BLOCK "VarFileInfo"
|
---|
144 | BEGIN
|
---|
145 | VALUE "Translation", 0x0409 /* US English */, 1252 /* Multilingual */
|
---|
146 | END
|
---|
147 | END
|
---|