1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5#include "nss.h"
6#include <winver.h>
7
8#define MY_LIBNAME "ssl"
9#define MY_FILEDESCRIPTION "NSS SSL Library"
10
11#define STRINGIZE(x) #x
12#define STRINGIZE2(x) STRINGIZE(x)
13#define NSS_VMAJOR_STR STRINGIZE2(NSS_VMAJOR)
14
15#ifdef _DEBUG
16#define MY_DEBUG_STR " (debug)"
17#define MY_FILEFLAGS_1 VS_FF_DEBUG
18#else
19#define MY_DEBUG_STR ""
20#define MY_FILEFLAGS_1 0x0L
21#endif
22#if NSS_BETA
23#define MY_FILEFLAGS_2 MY_FILEFLAGS_1|VS_FF_PRERELEASE
24#else
25#define MY_FILEFLAGS_2 MY_FILEFLAGS_1
26#endif
27
28#ifdef WINNT
29#define MY_FILEOS VOS_NT_WINDOWS32
30#else
31#define MY_FILEOS VOS__WINDOWS32
32#endif
33
34#define MY_INTERNAL_NAME MY_LIBNAME NSS_VMAJOR_STR
35
36/////////////////////////////////////////////////////////////////////////////
37//
38// Version-information resource
39//
40
41VS_VERSION_INFO VERSIONINFO
42 FILEVERSION NSS_VMAJOR,NSS_VMINOR,NSS_VPATCH,NSS_VBUILD
43 PRODUCTVERSION NSS_VMAJOR,NSS_VMINOR,NSS_VPATCH,NSS_VBUILD
44 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
45 FILEFLAGS MY_FILEFLAGS_2
46 FILEOS MY_FILEOS
47 FILETYPE VFT_DLL
48 FILESUBTYPE 0x0L // not used
49
50BEGIN
51    BLOCK "StringFileInfo"
52    BEGIN
53        BLOCK "040904B0" // Lang=US English, CharSet=Unicode
54        BEGIN
55            VALUE "CompanyName", "Mozilla Foundation\0"
56            VALUE "FileDescription", MY_FILEDESCRIPTION MY_DEBUG_STR "\0"
57            VALUE "FileVersion", NSS_VERSION "\0"
58            VALUE "InternalName", MY_INTERNAL_NAME "\0"
59            VALUE "OriginalFilename", MY_INTERNAL_NAME ".dll\0"
60            VALUE "ProductName", "Network Security Services\0"
61            VALUE "ProductVersion", NSS_VERSION "\0"
62        END
63    END
64    BLOCK "VarFileInfo"
65    BEGIN
66        VALUE "Translation", 0x409, 1200
67    END
68END
69