xref: /isa-l/isa-l.rc (revision 066940a9a78dd208081d15e8ec33ccf536cd0259)
1 /**********************************************************************
2   Copyright(c) 2021 Intel Corporation All rights reserved.
3 
4   Redistribution and use in source and binary forms, with or without
5   modification, are permitted provided that the following conditions
6   are met:
7     * Redistributions of source code must retain the above copyright
8       notice, this list of conditions and the following disclaimer.
9     * Redistributions in binary form must reproduce the above copyright
10       notice, this list of conditions and the following disclaimer in
11       the documentation and/or other materials provided with the
12       distribution.
13     * Neither the name of Intel Corporation nor the names of its
14       contributors may be used to endorse or promote products derived
15       from this software without specific prior written permission.
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 FOR
20   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 **********************************************************************/
29 
30 #include <windows.h>
31 #include "isa-l.h"
32 
33 #define _MAKE_VER_STRING(major, minor, patch, buildnum) \
34     #major "."                                          \
35     #minor "."                                          \
36     #patch "."                                          \
37     #buildnum
38 #define MAKE_VER_STRING(major, minor, patch, buildnum)  _MAKE_VER_STRING(major, minor, patch, buildnum)
39 
40 #define VER_FILEVERSION             ISAL_MAJOR_VERSION,ISAL_MINOR_VERSION,ISAL_PATCH_VERSION,0
41 #define VER_FILEVERSION_STR         MAKE_VER_STRING(ISAL_MAJOR_VERSION, ISAL_MINOR_VERSION, ISAL_PATCH_VERSION, 0)
42 
43 #define VER_PRODUCTVERSION          VER_FILEVERSION
44 #define VER_PRODUCTVERSION_STR      VER_FILEVERSION_STR
45 
46 #define VER_COMPANYNAME_STR         "Intel Corporation"
47 #define VER_FILEDESCRIPTION_STR     "Intel(R) Intelligent Storage Acceleration Library"
48 #define VER_INTERNALNAME_STR        "Intel(R) Intelligent Storage Acceleration Library"
49 #define VER_LEGALCOPYRIGHT_STR      "Copyright (C) Intel Corporation 2021"
50 #define VER_LEGALTRADEMARKS1_STR    "All Rights Reserved"
51 #define VER_ORIGINALFILENAME_STR    "isa-l.dll"
52 #define VER_PRODUCTNAME_STR         VER_FILEDESCRIPTION_STR
53 
54 VS_VERSION_INFO VERSIONINFO
55 FILEVERSION     VER_FILEVERSION
56 PRODUCTVERSION  VER_PRODUCTVERSION
57 BEGIN
58     BLOCK "StringFileInfo"
59     BEGIN
60         BLOCK "040904B0"
61         BEGIN
62             VALUE "CompanyName",        VER_COMPANYNAME_STR
63             VALUE "FileDescription",    VER_FILEDESCRIPTION_STR
64             VALUE "FileVersion",        VER_FILEVERSION_STR
65             VALUE "InternalName",       VER_INTERNALNAME_STR
66             VALUE "LegalCopyright",     VER_LEGALCOPYRIGHT_STR
67             VALUE "LegalTrademarks1",   VER_LEGALTRADEMARKS1_STR
68             VALUE "OriginalFilename",   VER_ORIGINALFILENAME_STR
69             VALUE "ProductName",        VER_PRODUCTNAME_STR
70             VALUE "ProductVersion",     VER_PRODUCTVERSION_STR
71         END
72     END
73 
74     BLOCK "VarFileInfo"
75     BEGIN
76         VALUE "Translation", 0x409, 0x04B0
77     END
78 END
79