VirtualBox

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

Last change on this file since 49591 was 49332, checked in by vboxsync, 11 years ago

wddm: 1. switch to using common VBVA code 2.dx-based command submission - work in progress 3.some prototyping for getting 3D data for video recording/take snapshot

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.6 KB
Line 
1# $Id: Makefile.kmk 49332 2013-10-30 13:13:02Z vboxsync $
2## @file
3# Makefile for the Windows guest miniport driver.
4#
5
6#
7# Copyright (C) 2011-2012 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 targetting 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
31ifdef VBOX_WITH_VIDEOHWACCEL
32 VBoxVideo_DEFS += VBOX_WITH_VIDEOHWACCEL
33endif
34VBoxVideo_INCS = ../../../include .. .
35VBoxVideo_LDFLAGS.x86 = /Entry:DriverEntry@8
36VBoxVideo_LDFLAGS.amd64 = /Entry:DriverEntry
37VBoxVideo_SOURCES = \
38 xpdm/VBoxMPDriver.cpp \
39 xpdm/VBoxMP.def \
40 xpdm/VBoxMP.rc \
41 xpdm/VBoxMPVideoPortAPI.cpp \
42 xpdm/VBoxMPInternal.cpp \
43 xpdm/VBoxMPRegistry.cpp \
44 xpdm/VBoxMPIOCTL.cpp \
45 common/VBoxMPUtils.cpp \
46 common/VBoxMPCommon.cpp \
47 common/VBoxMPHGSMI.cpp \
48 common/VBoxMPVidModes.cpp \
49 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \
50 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp
51VBoxVideo_LIBS = \
52 $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/videoprt.lib \
53 $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/ntoskrnl.lib \
54 $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/hal.lib \
55 $(VBOX_LIB_VBGL_R0) \
56 $(VBOX_LIB_IPRT_GUEST_R0_NT4) \
57 $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
58VBoxVideo_LIBS.x86 = \
59 $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/exsup.lib
60
61ifdef VBOX_WITH_WDDM
62 #
63 # VBoxVideoWddm - Windows Guest Additions WDDM Miniport Video Driver
64 #
65 SYSMODS += VBoxVideoWddm
66 VBoxVideoWddm_TEMPLATE = VBOXGUESTR0
67 VBoxVideoWddm_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
68 VBoxVideoWddm_DEFS += VBOX_WITH_8BPP_MODES DXGKDDI_INTERFACE_VERSION=0x1053
69 VBoxVideoWddm_DEFS += VBOX_WDDM_MINIPORT VBOX_WITH_WDDM VBOX_WITH_HGCM
70 ifdef VBOX_WITH_VIDEOHWACCEL
71 VBoxVideoWddm_DEFS += VBOX_WITH_VIDEOHWACCEL
72 endif
73 ifdef VBOXWDDM_WITH_VBVA
74 VBoxVideoWddm_DEFS += VBOXWDDM_WITH_VBVA
75 VBoxVideoWddm_DEFS += VBOXWDDM_RENDER_FROM_SHADOW
76 ifdef VBOXVDMA_WITH_VBVA
77 VBoxVideoWddm_DEFS += VBOXVDMA_WITH_VBVA
78 endif
79 endif
80 ifdef VBOX_WITH_VDMA
81 VBoxVideoWddm_DEFS += VBOX_WITH_VDMA
82 endif
83 ifdef VBOX_WITH_CRHGSMI
84 VBoxVideoWddm_DEFS += VBOX_WITH_CRHGSMI
85 endif
86 ifdef DEBUG_misha
87 VBoxVideoWddm_DEFS += LOG_ENABLED
88 endif
89 VBoxVideoWddm_DEFS += LOG_TO_BACKDOOR
90 ifdef VBOX_VDMA_WITH_WATCHDOG
91 VBoxVideoWddm_DEFS += VBOX_VDMA_WITH_WATCHDOG
92 endif
93 VBoxVideoWddm_INCS += \
94 ../../../include \
95 .. \
96 . \
97 ../../../../common/VBoxGuestLib \
98 $(VBOX_PATH_CROGL_INCLUDE) \
99 $(VBOX_PATH_CROGL_GENFILES) \
100 $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer
101
102 VBoxVideoWddm_LDFLAGS.x86 += /Entry:DriverEntry@8
103 VBoxVideoWddm_LDFLAGS.amd64 += /Entry:DriverEntry
104
105 VBoxVideoWddm_SOURCES = \
106 wddm/VBoxMPWddm.cpp \
107 wddm/VBoxMPVidPn.cpp \
108 wddm/VBoxMPVdma.cpp \
109 wddm/VBoxMPShgsmi.cpp \
110 wddm/VBoxMPCm.cpp \
111 wddm/VBoxMPCr.cpp \
112 wddm/VBoxMPMisc.cpp \
113 wddm/VBoxMPWddm.rc \
114 wddm/VBoxMPRegistry.cpp \
115 common/VBoxMPUtils.cpp \
116 common/VBoxMPCommon.cpp \
117 common/VBoxMPHGSMI.cpp \
118 common/VBoxMPVidModes.cpp \
119 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \
120 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp \
121 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp \
122 $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/util/vreg.cpp
123 if defined(VBOX_WITH_CROGL)
124 VBoxVideoWddm_SOURCES += \
125 $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer/pack_buffer.c \
126 $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer/pack_bounds.c \
127 $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer/pack_visibleregion.c \
128 $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer/pack_misc.c \
129 $(VBOX_PATH_CROGL_GENFILES)/pack_bounds_swap.c \
130 wddm/VBoxMPCrUtil.cpp
131 VBoxVideoWddm_DEFS += VBOX_WITH_CROGL
132 endif
133 ifdef VBOXWDDM_WITH_VBVA
134 VBoxVideoWddm_SOURCES += \
135 wddm/VBoxMPVbva.cpp
136 endif
137 ifdef VBOX_WITH_VIDEOHWACCEL
138 VBoxVideoWddm_SOURCES += \
139 wddm/VBoxMPVhwa.cpp
140 endif
141
142 VBoxVideoWddm_LIBS.x86 = \
143 $(PATH_SDK_$(VBOX_WINDDK_GST_WLH)_LIB)/BufferOverflowK.lib
144 #VBoxVideoWddm_LIBS.x86 += \
145 # $(PATH_SDK_$(VBOX_WINDDK_GST_WLH)_LIB)/exsup.lib
146 VBoxVideoWddm_LIBS = \
147 $(PATH_SDK_$(VBOX_WINDDK_GST_WLH)_LIB)/ntoskrnl.lib \
148 $(PATH_SDK_$(VBOX_WINDDK_GST_WLH)_LIB)/hal.lib \
149 $(PATH_SDK_$(VBOX_WINDDK_GST_WLH)_LIB)/displib.lib \
150 $(VBOX_LIB_VBGL_R0) \
151 $(VBOX_LIB_IPRT_GUEST_R0) \
152 $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
153
154 ifdef VBOX_WITH_WDDM_W8
155 #
156 # VBoxVideoW8 - Windows Guest Additions WDDM 1.2 Miniport Video Driver for Win8
157 #
158 SYSMODS += VBoxVideoW8
159 VBoxVideoW8_EXTENDS = VBoxVideoWddm
160 VBoxVideoW8_TEMPLATE = VBOXGUESTR0
161 VBoxVideoW8_SDKS = $(VBOX_WINDDK_GST_W8) # No ReorderCompilerIncs here!
162 VBoxVideoW8_DEFS = $(subst DXGKDDI_INTERFACE_VERSION=0x1053,DXGKDDI_INTERFACE_VERSION=0x300E,$(VBoxVideoWddm_DEFS)) VBOX_WDDM_WIN8
163 VBoxVideoW8_SOURCES = $(subst VBoxMPWddm.rc,VBoxMPW8.rc,$(VBoxVideoWddm_SOURCES))
164 VBoxVideoW8_LIBS.x86 = $(NO_SUCH_VARIABLE)
165 VBoxVideoW8_LIBS.amd64 = $(NO_SUCH_VARIABLE)
166 VBoxVideoW8_LIBS = \
167 $(VBOX_LIB_VBGL_R0) \
168 $(VBOX_LIB_IPRT_GUEST_R0) \
169 $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB) \
170 $(PATH_SDK_$(VBOX_WINDDK_GST_W8)_LIB)/ntoskrnl.lib \
171 $(PATH_SDK_$(VBOX_WINDDK_GST_W8)_LIB)/hal.lib \
172 $(PATH_SDK_$(VBOX_WINDDK_GST_W8)_LIB)/displib.lib \
173 $(PATH_SDK_$(VBOX_WINDDK_GST_W8)_LIB)/BufferOverflowK.lib
174 endif # VBOX_WITH_WDDM_W8
175
176endif # VBOX_WITH_WDDM
177
178#
179# Signing requires both miniport and display drivers
180# so it'd be dealt with in the parent makefile.
181#
182ifdef VBOX_SIGN_ADDITIONS
183 VBoxVideo_INSTTYPE = none
184 VBoxVideo_DEBUG_INSTTYPE = both
185 ifdef VBOX_WITH_WDDM
186 VBoxVideoWddm_INSTTYPE = none
187 VBoxVideoWddm_DEBUG_INSTTYPE = both
188 ifdef VBOX_WITH_WDDM_W8
189 VBoxVideoW8_INSTTYPE = none
190 VBoxVideoW8_DEBUG_INSTTYPE = both
191 endif
192 endif
193endif # VBOX_SIGN_ADDITIONS
194
195include $(FILE_KBUILD_SUB_FOOTER)
196
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