VirtualBox

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

Last change on this file since 52329 was 52329, checked in by vboxsync, 10 years ago

wddm/crOpenGL: prevent shared objects from being deleted till they can be used

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.7 KB
Line 
1# $Id: Makefile.kmk 52329 2014-08-08 18:34: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 wddm/VBoxMPVModes.cpp \
116 common/VBoxMPUtils.cpp \
117 common/VBoxMPCommon.cpp \
118 common/VBoxMPHGSMI.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
123 VBoxVideoWddm_SOURCES += \
124 $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/util/sortarray.cpp
125
126 if defined(VBOX_WITH_CROGL)
127 VBoxVideoWddm_SOURCES += \
128 $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/util/vreg.cpp \
129 $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer/pack_buffer.c \
130 $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer/pack_bounds.c \
131 $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer/pack_visibleregion.c \
132 $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer/pack_misc.c \
133 $(VBOX_PATH_CROGL_GENFILES)/pack_bounds_swap.c \
134 $(VBOX_PATH_CROGL_GENFILES)/packer.c \
135 wddm/VBoxMPCrUtil.cpp
136 VBoxVideoWddm_DEFS += VBOX_WITH_CROGL
137 endif
138 ifdef VBOXWDDM_WITH_VBVA
139 VBoxVideoWddm_SOURCES += \
140 wddm/VBoxMPVbva.cpp
141 endif
142 ifdef VBOX_WITH_VIDEOHWACCEL
143 VBoxVideoWddm_SOURCES += \
144 wddm/VBoxMPVhwa.cpp
145 endif
146
147 VBoxVideoWddm_LIBS.x86 = \
148 $(PATH_SDK_$(VBOX_WINDDK_GST_WLH)_LIB)/BufferOverflowK.lib
149 #VBoxVideoWddm_LIBS.x86 += \
150 # $(PATH_SDK_$(VBOX_WINDDK_GST_WLH)_LIB)/exsup.lib
151 VBoxVideoWddm_LIBS = \
152 $(PATH_SDK_$(VBOX_WINDDK_GST_WLH)_LIB)/ntoskrnl.lib \
153 $(PATH_SDK_$(VBOX_WINDDK_GST_WLH)_LIB)/hal.lib \
154 $(PATH_SDK_$(VBOX_WINDDK_GST_WLH)_LIB)/displib.lib \
155 $(VBOX_LIB_VBGL_R0) \
156 $(VBOX_LIB_IPRT_GUEST_R0) \
157 $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
158
159 ifdef VBOX_WITH_WDDM_W8
160 #
161 # VBoxVideoW8 - Windows Guest Additions WDDM 1.2 Miniport Video Driver for Win8
162 #
163 SYSMODS += VBoxVideoW8
164 VBoxVideoW8_EXTENDS = VBoxVideoWddm
165 VBoxVideoW8_TEMPLATE = VBOXGUESTR0
166 VBoxVideoW8_SDKS = $(VBOX_WINDDK_GST_W8) # No ReorderCompilerIncs here!
167 VBoxVideoW8_DEFS = $(subst DXGKDDI_INTERFACE_VERSION=0x1053,DXGKDDI_INTERFACE_VERSION=0x300E,$(VBoxVideoWddm_DEFS)) VBOX_WDDM_WIN8
168 VBoxVideoW8_SOURCES = $(subst VBoxMPWddm.rc,VBoxMPW8.rc,$(VBoxVideoWddm_SOURCES))
169 VBoxVideoW8_LIBS.x86 = $(NO_SUCH_VARIABLE)
170 VBoxVideoW8_LIBS.amd64 = $(NO_SUCH_VARIABLE)
171 VBoxVideoW8_LIBS = \
172 $(VBOX_LIB_VBGL_R0) \
173 $(VBOX_LIB_IPRT_GUEST_R0) \
174 $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB) \
175 $(PATH_SDK_$(VBOX_WINDDK_GST_W8)_LIB)/ntoskrnl.lib \
176 $(PATH_SDK_$(VBOX_WINDDK_GST_W8)_LIB)/hal.lib \
177 $(PATH_SDK_$(VBOX_WINDDK_GST_W8)_LIB)/displib.lib \
178 $(PATH_SDK_$(VBOX_WINDDK_GST_W8)_LIB)/BufferOverflowK.lib
179 endif # VBOX_WITH_WDDM_W8
180
181endif # VBOX_WITH_WDDM
182
183#
184# Signing requires both miniport and display drivers
185# so it'd be dealt with in the parent makefile.
186#
187ifdef VBOX_SIGN_ADDITIONS
188 VBoxVideo_INSTTYPE = none
189 VBoxVideo_DEBUG_INSTTYPE = both
190 ifdef VBOX_WITH_WDDM
191 VBoxVideoWddm_INSTTYPE = none
192 VBoxVideoWddm_DEBUG_INSTTYPE = both
193 ifdef VBOX_WITH_WDDM_W8
194 VBoxVideoW8_INSTTYPE = none
195 VBoxVideoW8_DEBUG_INSTTYPE = both
196 endif
197 endif
198endif # VBOX_SIGN_ADDITIONS
199
200include $(FILE_KBUILD_SUB_FOOTER)
201
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