1/* 2 * This file contains resource (version) definitions for all drivers 3 * that are independent from vendor. 4 * 5 * Copyright (c) 2017 Parallels IP Holdings GmbH 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met : 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and / or other materials provided with the distribution. 15 * 3. Neither the names of the copyright holders nor the names of their contributors 16 * may be used to endorse or promote products derived from this software 17 * without specific prior written permission. 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND 19 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21 * ARE DISCLAIMED.IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 */ 30 31/* 32 * These defines are only for Visual Studio built-in rc editor 33 * 34 * VER_OS <= $(TargetOS) for description postfix 35 * VER_ARCH <= $(VerArch) for description postfix 36 * VENDOR_VER <= $(_VENDOR_).ver (rhel by default) 37 */ 38#ifndef VER_OS 39 #define VER_OS Win?? 40#endif 41#ifndef VER_ARCH 42 #define VER_ARCH x?? 43#endif 44#ifndef VENDOR_VER 45 #define VENDOR_VER rhel.ver 46 //#define VENDOR_VER vz.ver 47#endif 48 49/* 50 * AUTO: these defines are defined in common.ver 51 * VER_PRODUCTVERSION <= VER_PRODUCTMAJORVERSION,VER_PRODUCTMINORVERSION,VER_PRODUCTBUILD,VER_PRODUCTBUILD_QFE 52 * VER_FILEVERSION <= VER_PRODUCTVERSION 53 * VER_FILEVERSION_STR <= VER_PRODUCTVERSION_STR 54 * VER_ORIGINALFILENAME_STR <= VER_INTERNALNAME_STR 55 */ 56 57/* 58 * COMMON: these defines are strictly required 59 */ 60#define VER_LANGNEUTRAL 61#define VER_FILETYPE VFT_DRV 62#define VER_FILESUBTYPE VFT2_DRV_SYSTEM 63#define VER_FILEDESCRIPTION_STR "File Description required" 64#define VER_INTERNALNAME_STR "File Name required" 65 66/* 67 * STRINGIFY 68 */ 69#define STRINGIFY_AUX(X) #X 70#define STRINGIFY(X) STRINGIFY_AUX(X) 71 72/* 73 * VENDOR SPECIFIC 74 */ 75#include STRINGIFY(VENDOR_VER) 76 77/* 78 * Applying vendor specific 79 */ 80#undef VER_PRODUCTBUILD 81#undef VER_PRODUCTBUILD_QFE 82#undef VER_PRODUCTMAJORVERSION 83#undef VER_PRODUCTMINORVERSION 84 85#define VER_PRODUCTMAJORVERSION VENDOR_VIRTIO_1 86#define VER_PRODUCTMINORVERSION VENDOR_VIRTIO_2 87#define VER_PRODUCTBUILD VENDOR_VIRTIO_3 88#define VER_PRODUCTBUILD_QFE VENDOR_VIRTIO_4 89 90#undef VER_LEGALTRADEMARKS_STR 91#undef VER_LEGALCOPYRIGHT_STR 92#undef VER_COMPANYNAME_STR 93#undef VER_PRODUCTNAME_STR 94 95#define VER_LEGALTRADEMARKS_STR "" 96#define VER_LEGALCOPYRIGHT_STR VENDOR_VIRTIO_COPYRIGHT 97#define VER_COMPANYNAME_STR VENDOR_VIRTIO_COMPANY 98#define VER_PRODUCTNAME_STR VENDOR_VIRTIO_PRODUCT 99