VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/Makefile.kmk@ 75443

Last change on this file since 75443 was 72082, checked in by vboxsync, 7 years ago

WDDM: x86 debug build of the miniport driver needs memcmp to work on Win7 and Vista.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.0 KB
Line 
1# $Id: Makefile.kmk 72082 2018-05-02 13:50:00Z vboxsync $
2## @file
3# Makefile for the Windows guest miniport driver.
4#
5
6#
7# Copyright (C) 2011-2017 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18SUB_DEPTH = ../../../../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21#
22# VBoxVideo - Windows Guest Additions XPDM Miniport Video Driver
23#
24# Note. This has to run on NT4! (*_NT4 => *_W2K3 when targeting 64-bit.)
25#
26SYSMODS += VBoxVideo
27VBoxVideo_TEMPLATE = VBOXGUESTR0
28VBoxVideo_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_NT4)
29VBoxVideo_DEFS = VBOX_XPDM_MINIPORT VBOX_WITH_8BPP_MODES VBOX_USING_$(VBOX_WINDDK_GST_NT4)
30VBoxVideo_DEFS += LOG_TO_BACKDOOR #LOG_ENABLED
31VBoxVideo_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
32ifdef VBOX_WITH_VIDEOHWACCEL
33 VBoxVideo_DEFS += VBOX_WITH_VIDEOHWACCEL
34endif
35VBoxVideo_INCS = ../../../include .. . $(VBOX_GRAPHICS_INCS)
36VBoxVideo_LDFLAGS.x86 = /Entry:DriverEntry@8
37VBoxVideo_LDFLAGS.amd64 = /Entry:DriverEntry
38VBoxVideo_SOURCES = \
39 xpdm/VBoxMPDriver.cpp \
40 xpdm/VBoxMP.def \
41 xpdm/VBoxMP.rc \
42 xpdm/VBoxMPVideoPortAPI.cpp \
43 xpdm/VBoxMPInternal.cpp \
44 xpdm/VBoxMPRegistry.cpp \
45 xpdm/VBoxMPIOCTL.cpp \
46 common/VBoxMPUtils.cpp \
47 common/VBoxMPCommon.cpp \
48 common/VBoxMPHGSMI.cpp \
49 common/VBoxMPVidModes.cpp \
50 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \
51 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBuffers.cpp \
52 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIHostCmd.cpp \
53 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp
54VBoxVideo_LIBS = \
55 $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/videoprt.lib \
56 $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/ntoskrnl.lib \
57 $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/hal.lib \
58 $(VBOX_LIB_VBGL_R0) \
59 $(VBOX_LIB_IPRT_GUEST_R0_NT4) \
60 $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
61VBoxVideo_LIBS.x86 = \
62 $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/exsup.lib
63
64ifdef VBOX_WITH_WDDM
65 #
66 # VBoxWddm - Windows Guest Additions WDDM Miniport Video Driver
67 #
68 SYSMODS += VBoxWddm
69 VBoxWddm_TEMPLATE = VBOXGUESTR0
70 VBoxWddm_SDKS = $(VBOX_WINDDK_GST_W8)
71 VBoxWddm_DEFS += VBOX_WDDM_MINIPORT VBOX_WITH_WDDM VBOX_WITH_HGCM
72 # WIN9X_COMPAT_SPINLOCK inlines KeInitializeSpinLock in W8 DDK (Windows 7 or older ntoskrnl does not export it).
73 VBoxWddm_DEFS += WIN9X_COMPAT_SPINLOCK
74 VBoxWddm_DEFS += VBOX_WITH_8BPP_MODES
75 ifdef VBOX_WITH_VIDEOHWACCEL
76 VBoxWddm_DEFS += VBOX_WITH_VIDEOHWACCEL
77 endif
78 ifdef VBOXWDDM_WITH_VBVA
79 VBoxWddm_DEFS += VBOXWDDM_WITH_VBVA
80 VBoxWddm_DEFS += VBOXWDDM_RENDER_FROM_SHADOW
81 ifdef VBOXVDMA_WITH_VBVA
82 VBoxWddm_DEFS += VBOXVDMA_WITH_VBVA
83 endif
84 endif
85 ifdef VBOX_WITH_VDMA
86 VBoxWddm_DEFS += VBOX_WITH_VDMA
87 endif
88 ifdef VBOX_WITH_CRHGSMI
89 VBoxWddm_DEFS += VBOX_WITH_CRHGSMI
90 endif
91 VBoxWddm_DEFS += LOG_TO_BACKDOOR
92 VBoxWddm_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
93 ifdef VBOX_VDMA_WITH_WATCHDOG
94 VBoxWddm_DEFS += VBOX_VDMA_WITH_WATCHDOG
95 endif
96 VBoxWddm_INCS += \
97 ../../../include \
98 .. \
99 . \
100 $(VBOX_PATH_CROGL_INCLUDE) \
101 $(VBOX_PATH_CROGL_GENFILES) \
102 $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer \
103 $(VBOX_GRAPHICS_INCS)
104
105 VBoxWddm_LDFLAGS.x86 += /Entry:DriverEntry@8
106 VBoxWddm_LDFLAGS.amd64 += /Entry:DriverEntry
107
108 VBoxWddm_SOURCES = \
109 wddm/VBoxMPWddm.cpp \
110 wddm/VBoxMPVidPn.cpp \
111 wddm/VBoxMPVdma.cpp \
112 wddm/VBoxMPShgsmi.cpp \
113 wddm/VBoxMPCm.cpp \
114 wddm/VBoxMPCr.cpp \
115 wddm/VBoxMPMisc.cpp \
116 wddm/VBoxWddm.rc \
117 wddm/VBoxMPRegistry.cpp \
118 wddm/VBoxMPVModes.cpp \
119 common/VBoxMPUtils.cpp \
120 common/VBoxMPCommon.cpp \
121 common/VBoxMPHGSMI.cpp \
122 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \
123 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBuffers.cpp \
124 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIHostCmd.cpp \
125 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp \
126 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp
127
128 VBoxWddm_SOURCES += \
129 $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/util/sortarray.cpp
130
131 if defined(VBOX_WITH_CROGL)
132 VBoxWddm_SOURCES += \
133 $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/util/vreg.cpp \
134 $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer/pack_buffer.c \
135 $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer/pack_bounds.c \
136 $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer/pack_visibleregion.c \
137 $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer/pack_misc.c \
138 $(VBOX_PATH_CROGL_GENFILES)/pack_bounds_swap.c \
139 $(VBOX_PATH_CROGL_GENFILES)/packer.c \
140 wddm/VBoxMPCrUtil.cpp
141 VBoxWddm_DEFS += VBOX_WITH_CROGL
142 endif
143 ifdef VBOXWDDM_WITH_VBVA
144 VBoxWddm_SOURCES += \
145 wddm/VBoxMPVbva.cpp
146 endif
147 ifdef VBOX_WITH_VIDEOHWACCEL
148 VBoxWddm_SOURCES += \
149 wddm/VBoxMPVhwa.cpp
150 endif
151
152 VBoxWddm_LIBS = \
153 $(PATH_SDK_$(VBOX_WINDDK_GST_W8)_LIB)/BufferOverflowK.lib \
154 $(PATH_SDK_$(VBOX_WINDDK_GST_W8)_LIB)/ntoskrnl.lib \
155 $(PATH_SDK_$(VBOX_WINDDK_GST_W8)_LIB)/hal.lib \
156 $(PATH_SDK_$(VBOX_WINDDK_GST_W8)_LIB)/displib.lib \
157 $(VBOX_LIB_VBGL_R0) \
158 $(VBOX_LIB_IPRT_GUEST_R0) \
159 $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
160
161 VBoxWddm_LIBS.x86 = \
162 $(PATH_SDK_$(VBOX_WINDDK_GST_W8)_LIB)/memcmp.lib
163
164endif # VBOX_WITH_WDDM
165
166#
167# Signing requires both miniport and display drivers
168# so it'd be dealt with in the parent makefile.
169#
170ifdef VBOX_SIGN_ADDITIONS
171 VBoxVideo_INSTTYPE = none
172 VBoxVideo_DEBUG_INSTTYPE = both
173 ifdef VBOX_WITH_WDDM
174 VBoxWddm_INSTTYPE = none
175 VBoxWddm_DEBUG_INSTTYPE = both
176 endif
177endif # VBOX_SIGN_ADDITIONS
178
179include $(FILE_KBUILD_SUB_FOOTER)
180
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette