| 1 |
/* |
| 2 |
* For Windows: input this file to the Resource Compiler to produce a binary |
| 3 |
* .res file. This is then embedded in the resultant library (like any other |
| 4 |
* compilation object). |
| 5 |
* The information can then be queried using standard APIs and can also be |
| 6 |
* viewed with utilities such as Windows Explorer. |
| 7 |
*/ |
| 8 |
#include "winresrc.h" |
| 9 |
|
| 10 |
#include "version.h" |
| 11 |
#ifndef LIBUSB_VERSIONSTRING |
| 12 |
#define LU_STR(s) #s |
| 13 |
#define LU_XSTR(s) LU_STR(s) |
| 14 |
#define LIBUSB_VERSIONSTRING \ |
| 15 |
LU_XSTR(LIBUSB_MAJOR) "." LU_XSTR(LIBUSB_MINOR) "." \ |
| 16 |
LU_XSTR(LIBUSB_MICRO) "." LU_XSTR(LIBUSB_NANO) LIBUSB_RC "\0" |
| 17 |
#endif |
| 18 |
|
| 19 |
VS_VERSION_INFO VERSIONINFO |
| 20 |
FILEVERSION LIBUSB_MAJOR,LIBUSB_MINOR,LIBUSB_MICRO,LIBUSB_NANO |
| 21 |
PRODUCTVERSION LIBUSB_MAJOR,LIBUSB_MINOR,LIBUSB_MICRO,LIBUSB_NANO |
| 22 |
FILEFLAGSMASK 0x3fL |
| 23 |
#ifdef _DEBUG |
| 24 |
FILEFLAGS 0x1L |
| 25 |
#else |
| 26 |
FILEFLAGS 0x0L |
| 27 |
#endif |
| 28 |
FILEOS 0x40004L |
| 29 |
FILETYPE 0x2L |
| 30 |
FILESUBTYPE 0x0L |
| 31 |
BEGIN |
| 32 |
BLOCK "StringFileInfo" |
| 33 |
BEGIN |
| 34 |
BLOCK "040904b0" |
| 35 |
BEGIN |
| 36 |
VALUE "CompanyName", "libusb.info\0" |
| 37 |
VALUE "FileDescription", "C library for writing portable USB drivers in userspace\0" |
| 38 |
VALUE "FileVersion", LIBUSB_VERSIONSTRING |
| 39 |
VALUE "InternalName", "libusb\0" |
| 40 |
VALUE "LegalCopyright", "See individual source files, GNU LGPL v2.1 or later.\0" |
| 41 |
VALUE "LegalTrademarks", "http://www.gnu.org/licenses/lgpl-2.1.html\0" |
| 42 |
VALUE "OriginalFilename", "libusb-1.0.dll\0" |
| 43 |
VALUE "PrivateBuild", "\0" |
| 44 |
VALUE "ProductName", "libusb-1.0\0" |
| 45 |
VALUE "ProductVersion", LIBUSB_VERSIONSTRING |
| 46 |
VALUE "SpecialBuild", "\0" |
| 47 |
END |
| 48 |
END |
| 49 |
BLOCK "VarFileInfo" |
| 50 |
BEGIN |
| 51 |
VALUE "Translation", 0x409, 1200 |
| 52 |
END |
| 53 |
END |