VirtualBox

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

Last change on this file since 42091 was 42091, checked in by vboxsync, 12 years ago

wddm/d-o: more fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.1 KB
Line 
1# $Id: Makefile.kmk 42091 2012-07-10 12:20:16Z 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!
25# (VBOX_LIB_IPRT_GUEST_R0_NT4 == VBOX_LIB_IPRT_GUEST_R0 on 64-bit)
26#
27SYSMODS += VBoxVideo
28VBoxVideo_TEMPLATE = VBOXGUESTR0
29VBoxVideo_DEFS = VBOX_XPDM_MINIPORT VBOX_WITH_8BPP_MODES
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_W2K3DDK_LIB)/videoprt.lib \
53 $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \
54 $(PATH_SDK_W2K3DDK_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_W2K3DDK_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_DEFS += VBOX_WITH_8BPP_MODES
68 VBoxVideoWddm_DEFS += VBOX_WDDM_MINIPORT VBOX_WITH_WDDM VBOX_WITH_HGCM
69 ifdef VBOX_WITH_VIDEOHWACCEL
70 VBoxVideoWddm_DEFS += VBOX_WITH_VIDEOHWACCEL
71 endif
72 ifdef VBOXWDDM_WITH_VBVA
73 VBoxVideoWddm_DEFS += VBOXWDDM_WITH_VBVA
74 VBoxVideoWddm_DEFS += VBOXWDDM_RENDER_FROM_SHADOW
75 ifdef VBOXVDMA_WITH_VBVA
76 VBoxVideoWddm_DEFS += VBOXVDMA_WITH_VBVA
77 endif
78 endif
79 ifdef VBOX_WITH_VDMA
80 VBoxVideoWddm_DEFS += VBOX_WITH_VDMA
81 endif
82 ifdef VBOX_WITH_CRHGSMI
83 VBoxVideoWddm_DEFS += VBOX_WITH_CRHGSMI
84 endif
85 ifdef DEBUG_misha
86 VBoxVideoWddm_DEFS += LOG_ENABLED
87 endif
88 VBoxVideoWddm_DEFS += LOG_TO_BACKDOOR
89 ifdef VBOX_WITH_CROGL
90 VBoxVideoWddm_DEFS += VBOX_WITH_CROGL
91 endif
92 ifdef VBOX_VDMA_WITH_WATCHDOG
93 VBoxVideoWddm_DEFS += VBOX_VDMA_WITH_WATCHDOG
94 endif
95
96 VBoxVideoWddm_INCS += \
97 ../../../include \
98 .. \
99 . \
100 ../../../../common/VBoxGuestLib \
101 $(VBOX_PATH_CROGL_INCLUDE) \
102 $(VBOX_PATH_CROGL_GENFILES) \
103 $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer
104 VBoxVideoWddm_LDFLAGS.x86 += /Entry:DriverEntry@8
105 VBoxVideoWddm_LDFLAGS.amd64 += /Entry:DriverEntry
106 VBoxVideoWddm_SDKS = WINDDKWLH
107 VBoxVideoWddm_SOURCES = \
108 wddm/VBoxMPWddm.cpp \
109 wddm/VBoxMPVidPn.cpp \
110 wddm/VBoxMPVdma.cpp \
111 wddm/VBoxMPShgsmi.cpp \
112 wddm/VBoxMPCm.cpp \
113 wddm/VBoxMPCr.cpp \
114 wddm/VBoxMPMisc.cpp \
115 wddm/VBoxMPWddm.rc \
116 wddm/VBoxMPRegistry.cpp \
117 common/VBoxMPUtils.cpp \
118 common/VBoxMPCommon.cpp \
119 common/VBoxMPHGSMI.cpp \
120 common/VBoxMPVidModes.cpp \
121 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \
122 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp
123 if defined(VBOX_WITH_CROGL) && defined(VBOX_WDDM_WITH_CRCMD)
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 $(VBOX_PATH_CROGL_GENFILES)/pack_bounds_swap.c \
128 wddm/VBoxMPCrUtil.cpp
129 VBoxVideoWddm_DEFS + VBOX_WDDM_WITH_CRCMD
130 endif
131 ifdef VBOXWDDM_WITH_VBVA
132 VBoxVideoWddm_SOURCES += \
133 wddm/VBoxMPVbva.cpp
134 endif
135 ifdef VBOX_WITH_VIDEOHWACCEL
136 VBoxVideoWddm_SOURCES += \
137 wddm/VBoxMPVhwa.cpp
138 endif
139 VBoxVideoWddm_LIBS.x86 = \
140 $(PATH_SDK_WINDDKWLH_LIB)/BufferOverflowK.lib
141 #VBoxVideoWddm_LIBS.x86 += \
142 # $(PATH_SDK_WINDDKWLH_LIB)/exsup.lib
143 VBoxVideoWddm_LIBS = \
144 $(PATH_SDK_WINDDKWLH_LIB)/ntoskrnl.lib \
145 $(PATH_SDK_WINDDKWLH_LIB)/hal.lib \
146 $(PATH_SDK_WINDDKWLH_LIB)/displib.lib \
147 $(VBOX_LIB_VBGL_R0) \
148 $(VBOX_LIB_IPRT_GUEST_R0_NT4) \
149 $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
150
151 ifdef VBOX_WDDM_WIN8
152 #
153 # VBoxVideoW8 - Windows Guest Additions WDDM 1.2 Miniport Video Driver for Win8
154 #
155 SYSMODS += VBoxVideoW8
156 VBoxVideoW8_EXTENDS = VBoxVideoWddm
157 VBoxVideoW8_TEMPLATE = VBOXGUESTWIN8R0
158 VBoxVideoW8_DEFS += $(VBoxVideoWddm_DEFS) VBOX_WDDM_WIN8
159 VBoxVideoW8_SDKS = WINDDKW8
160 VBoxVideoW8_SOURCES = $(subst VBoxMPWddm.rc,VBoxMPW8.rc,$(VBoxVideoWddm_SOURCES))
161 VBoxVideoW8_LIBS.x86 = \
162 $(PATH_SDK_WINDDKW8_LIB)/BufferOverflowK.lib
163 #VBoxVideoW8_LIBS.x86 += \
164 # $(PATH_SDK_WINDDKW8_LIB)/exsup.lib
165 VBoxVideoW8_LIBS = \
166 $(PATH_SDK_WINDDKW8_LIB)/ntoskrnl.lib \
167 $(PATH_SDK_WINDDKW8_LIB)/hal.lib \
168 $(PATH_SDK_WINDDKW8_LIB)/displib.lib \
169 $(VBOX_LIB_VBGL_R0) \
170 $(VBOX_LIB_IPRT_GUEST_R0_NT4) \
171 $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
172 endif # VBOX_WDDM_WIN8
173
174endif # VBOX_WITH_WDDM
175
176# Signing requires both miniport and display drivers
177# so it'd be dealt with in the parent makefile.
178ifdef VBOX_SIGN_ADDITIONS
179 VBoxVideo_INSTTYPE = none
180 VBoxVideo_DEBUG_INSTTYPE = both
181 ifdef VBOX_WITH_WDDM
182 VBoxVideoWddm_INSTTYPE = none
183 VBoxVideoWddm_DEBUG_INSTTYPE = both
184 ifdef VBOX_WDDM_WIN8
185 VBoxVideoW8_INSTTYPE = none
186 VBoxVideoW8_DEBUG_INSTTYPE = both
187 endif
188 endif
189endif # VBOX_SIGN_ADDITIONS
190
191include $(FILE_KBUILD_SUB_FOOTER)
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