2 * Standard Windows version information.
\r
3 * (For inclusion in other .rc files with appropriate macro definitions.)
\r
4 * FIXME: This file is called '.rc2' rather than '.rc' to avoid MSVC trying
\r
5 * to compile it on its own when using the project files. Nicer solutions
\r
10 * Binary versions in Windows are major.minor.build.revision. Each
\r
11 * component is 16-bit.
\r
14 * PuTTY version number (e.g. 0.58). (We've made a policy decision
\r
15 * that these will be numeric from now on.)
\r
16 * Present in releases and snapshots (for the sake of monotonicity
\r
17 * in version numbers).
\r
19 * In releases, always 0.
\r
20 * In snapshots, nearest Subversion revision. (It shouldn't be
\r
21 * assumed that only one binary will have a given build number, of
\r
24 * Reserved; always 0.
\r
26 * Examples of these version numbers:
\r
27 * Release: 0.58.0.0 (but 0.58 didn't have a VERSIONINFO resource)
\r
28 * Snapshot: 0.58.6356.0 (between 0.58 and the next release)
\r
33 * Mechanics of version naming/numbering.
\r
34 * (This is a ripoff of ../version.c.)
\r
38 #define STR(x) STR1(x)
\r
40 /* We keep this around even for snapshots, for monotonicity of version
\r
41 * numbering. It needs to be kept up to date. NB _comma_-separated. */
\r
42 #define BASE_VERSION 0,61
\r
44 #if defined SNAPSHOT
\r
46 /* Make SVN_REV mandatory for snapshots, to avoid issuing binary
\r
47 * version numbers that look like full releases. */
\r
49 #error SVN_REV not defined/nonzero for snapshot build
\r
52 #define VERSION_TEXT "Development snapshot " STR(SNAPSHOT) ":r" STR(SVN_REV)
\r
54 #define BINARY_VERSION 0,0,0,0
\r
56 #define BINARY_VERSION BASE_VERSION,SVN_REV,0
\r
59 #elif defined RELEASE
\r
61 #define VERSION_TEXT "Release " STR(RELEASE)
\r
62 #define BINARY_VERSION BASE_VERSION,0,0
\r
64 #elif defined SVN_REV
\r
66 #define VERSION_TEXT "Custom build r" STR(SVN_REV)
\r
68 #define BINARY_VERSION 0,0,0,0
\r
70 #define BINARY_VERSION BASE_VERSION,SVN_REV,0
\r
75 /* We can't reliably get the same date and time as version.c, so
\r
76 * we won't bother trying. */
\r
77 #define VERSION_TEXT "Unidentified build"
\r
78 #define BINARY_VERSION 0,0,0,0
\r
83 * The actual VERSIONINFO resource.
\r
85 VS_VERSION_INFO VERSIONINFO
\r
86 /* (None of this "fixed" info appears to be trivially user-visible on
\r
87 * Win98SE. The binary version does show up on Win2K.) */
\r
88 FILEVERSION BINARY_VERSION
\r
89 PRODUCTVERSION BINARY_VERSION /* version of whole suite */
\r
90 FILEFLAGSMASK VS_FF_DEBUG | VS_FF_PRERELEASE | VS_FF_PRIVATEBUILD
\r
95 #if defined SNAPSHOT
\r
97 #elif !defined RELEASE
\r
98 | VS_FF_PRIVATEBUILD
\r
100 FILEOS VOS__WINDOWS32
\r
102 FILESUBTYPE 0x0L /* n/a for VFT_APP */
\r
104 /* (On Win98SE and Win2K, we can see most of this on the Version tab
\r
105 * in the file properties in Explorer.) */
\r
106 BLOCK "StringFileInfo"
\r
108 /* "lang-charset" LLLLCCCC = (UK English, Unicode) */
\r
111 VALUE "CompanyName", "Simon Tatham" /* required :/ */
\r
112 VALUE "ProductName", "PuTTY suite"
\r
113 VALUE "FileDescription", APPDESC
\r
114 VALUE "InternalName", APPNAME
\r
115 VALUE "OriginalFilename", APPNAME
\r
116 VALUE "FileVersion", VERSION_TEXT
\r
117 VALUE "ProductVersion", VERSION_TEXT
\r
118 VALUE "LegalCopyright", "Copyright \251 1997-2011 Simon Tatham."
\r
119 #if (!defined SNAPSHOT) && (!defined RELEASE)
\r
120 /* Only if VS_FF_PRIVATEBUILD. */
\r
121 VALUE "PrivateBuild", VERSION_TEXT /* NBI */
\r
125 BLOCK "VarFileInfo"
\r
127 /* Once again -- same meanings -- apparently necessary */
\r
128 VALUE "Translation", 0x809, 1200
\r
132 #undef VERSION_TEXT
\r
133 #undef BASE_VERSION
\r
134 #undef BINARY_VERSION
\r