kvm-guest-drivers-windows
79 строк · 3.0 Кб
1/*
2* This file contains vz vendor specific
3* resource (version) definitions for all drivers
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#ifndef _NT_TARGET_MAJ
35#define VZ_RELEASE_A 1
36#define VZ_RELEASE_B 20
37#define VZ_RELEASE_C 300
38#define _NT_TARGET_MAJ 4000
39#endif
40
41/*
42* vz build variants
43*/
44#ifndef VZ_RELEASE_N
45//custom
46#define VENDOR_DESC_PREFIX "Custom\040"
47#define VENDOR_DESC_POSTFIX "\040" STRINGIFY(VER_OS) "\040for\040" STRINGIFY(VER_ARCH)
48#elif (VZ_RELEASE_N != 0)
49//experimental
50#define VENDOR_DESC_PREFIX "Experimental\040"
51#define VENDOR_DESC_POSTFIX "\040" STRINGIFY(VER_OS) "\040for\040" STRINGIFY(VER_ARCH)
52#elif (VZ_RELEASE_N == 0)
53//build
54#define VENDOR_DESC_PREFIX VENDOR_PREFIX
55#define VENDOR_DESC_POSTFIX "\040(" STRINGIFY(VER_ARCH) ")"
56#endif
57
58/*
59* vz versioning
60*/
61#define VENDOR_VIRTIO_1 VZ_RELEASE_A
62#define VENDOR_VIRTIO_2 VZ_RELEASE_B
63#define VENDOR_VIRTIO_3 VZ_RELEASE_C
64#define VENDOR_VIRTIO_4 _NT_TARGET_MAJ
65
66/*
67* vz strings
68*/
69#define VENDOR_VIRTIO_COPYRIGHT STRINGIFY(VZ_VENDOR_COPYRIGHT)
70#define VENDOR_VIRTIO_COMPANY STRINGIFY(VZ_VENDOR_NAME)
71#define VENDOR_PREFIX STRINGIFY(VZ_VENDOR_PREFIX) "\040"
72#define VENDOR_PRODUCT_PREFIX VENDOR_PREFIX
73#define QEMU_PRODUCT_PREFIX VENDOR_PREFIX "QEMU\040"
74
75/*
76* remaining macro should be defined in project .rc file
77*
78* VENDOR_VIRTIO_PRODUCT, VER_FILEDESCRIPTION_STR, VER_INTERNALNAME_STR
79*/
80