1 | # $Id: Makefile.kmk 55211 2015-04-13 14:54: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 |
|
---|
18 | SUB_DEPTH = ../../../../../../..
|
---|
19 | include $(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 | #
|
---|
26 | SYSMODS += VBoxVideo
|
---|
27 | VBoxVideo_TEMPLATE = VBOXGUESTR0
|
---|
28 | VBoxVideo_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_NT4)
|
---|
29 | VBoxVideo_DEFS = VBOX_XPDM_MINIPORT VBOX_WITH_8BPP_MODES VBOX_USING_$(VBOX_WINDDK_GST_NT4)
|
---|
30 | VBoxVideo_DEFS += LOG_TO_BACKDOOR #LOG_ENABLED
|
---|
31 | VBoxVideo_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
32 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
33 | VBoxVideo_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
34 | endif
|
---|
35 | VBoxVideo_INCS = ../../../include .. .
|
---|
36 | VBoxVideo_LDFLAGS.x86 = /Entry:DriverEntry@8
|
---|
37 | VBoxVideo_LDFLAGS.amd64 = /Entry:DriverEntry
|
---|
38 | VBoxVideo_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/Modesetting.cpp
|
---|
52 | VBoxVideo_LIBS = \
|
---|
53 | $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/videoprt.lib \
|
---|
54 | $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/ntoskrnl.lib \
|
---|
55 | $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/hal.lib \
|
---|
56 | $(VBOX_LIB_VBGL_R0) \
|
---|
57 | $(VBOX_LIB_IPRT_GUEST_R0_NT4) \
|
---|
58 | $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
|
---|
59 | VBoxVideo_LIBS.x86 = \
|
---|
60 | $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/exsup.lib
|
---|
61 |
|
---|
62 | ifdef VBOX_WITH_WDDM
|
---|
63 | #
|
---|
64 | # VBoxVideoWddm - Windows Guest Additions WDDM Miniport Video Driver
|
---|
65 | #
|
---|
66 | SYSMODS += VBoxVideoWddm
|
---|
67 | VBoxVideoWddm_TEMPLATE = VBOXGUESTR0
|
---|
68 | VBoxVideoWddm_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
|
---|
69 | VBoxVideoWddm_DEFS += VBOX_WITH_8BPP_MODES DXGKDDI_INTERFACE_VERSION=0x1053
|
---|
70 | VBoxVideoWddm_DEFS += VBOX_WDDM_MINIPORT VBOX_WITH_WDDM VBOX_WITH_HGCM
|
---|
71 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
72 | VBoxVideoWddm_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
73 | endif
|
---|
74 | ifdef VBOXWDDM_WITH_VBVA
|
---|
75 | VBoxVideoWddm_DEFS += VBOXWDDM_WITH_VBVA
|
---|
76 | VBoxVideoWddm_DEFS += VBOXWDDM_RENDER_FROM_SHADOW
|
---|
77 | ifdef VBOXVDMA_WITH_VBVA
|
---|
78 | VBoxVideoWddm_DEFS += VBOXVDMA_WITH_VBVA
|
---|
79 | endif
|
---|
80 | endif
|
---|
81 | ifdef VBOX_WITH_VDMA
|
---|
82 | VBoxVideoWddm_DEFS += VBOX_WITH_VDMA
|
---|
83 | endif
|
---|
84 | ifdef VBOX_WITH_CRHGSMI
|
---|
85 | VBoxVideoWddm_DEFS += VBOX_WITH_CRHGSMI
|
---|
86 | endif
|
---|
87 | ifdef DEBUG_misha
|
---|
88 | VBoxVideoWddm_DEFS += LOG_ENABLED
|
---|
89 | endif
|
---|
90 | VBoxVideoWddm_DEFS += LOG_TO_BACKDOOR
|
---|
91 | VBoxVideoWddm_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
92 | ifdef VBOX_VDMA_WITH_WATCHDOG
|
---|
93 | VBoxVideoWddm_DEFS += VBOX_VDMA_WITH_WATCHDOG
|
---|
94 | endif
|
---|
95 | VBoxVideoWddm_INCS += \
|
---|
96 | ../../../include \
|
---|
97 | .. \
|
---|
98 | . \
|
---|
99 | ../../../../common/VBoxGuestLib \
|
---|
100 | $(VBOX_PATH_CROGL_INCLUDE) \
|
---|
101 | $(VBOX_PATH_CROGL_GENFILES) \
|
---|
102 | $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer
|
---|
103 |
|
---|
104 | VBoxVideoWddm_LDFLAGS.x86 += /Entry:DriverEntry@8
|
---|
105 | VBoxVideoWddm_LDFLAGS.amd64 += /Entry:DriverEntry
|
---|
106 |
|
---|
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 | wddm/VBoxMPVModes.cpp \
|
---|
118 | common/VBoxMPUtils.cpp \
|
---|
119 | common/VBoxMPCommon.cpp \
|
---|
120 | common/VBoxMPHGSMI.cpp \
|
---|
121 | $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \
|
---|
122 | $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp \
|
---|
123 | $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp
|
---|
124 |
|
---|
125 | VBoxVideoWddm_SOURCES += \
|
---|
126 | $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/util/sortarray.cpp
|
---|
127 |
|
---|
128 | if defined(VBOX_WITH_CROGL)
|
---|
129 | VBoxVideoWddm_SOURCES += \
|
---|
130 | $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/util/vreg.cpp \
|
---|
131 | $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer/pack_buffer.c \
|
---|
132 | $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer/pack_bounds.c \
|
---|
133 | $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer/pack_visibleregion.c \
|
---|
134 | $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/packer/pack_misc.c \
|
---|
135 | $(VBOX_PATH_CROGL_GENFILES)/pack_bounds_swap.c \
|
---|
136 | $(VBOX_PATH_CROGL_GENFILES)/packer.c \
|
---|
137 | wddm/VBoxMPCrUtil.cpp
|
---|
138 | VBoxVideoWddm_DEFS += VBOX_WITH_CROGL
|
---|
139 | endif
|
---|
140 | ifdef VBOXWDDM_WITH_VBVA
|
---|
141 | VBoxVideoWddm_SOURCES += \
|
---|
142 | wddm/VBoxMPVbva.cpp
|
---|
143 | endif
|
---|
144 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
145 | VBoxVideoWddm_SOURCES += \
|
---|
146 | wddm/VBoxMPVhwa.cpp
|
---|
147 | endif
|
---|
148 |
|
---|
149 | VBoxVideoWddm_LIBS.x86 = \
|
---|
150 | $(PATH_SDK_$(VBOX_WINDDK_GST_WLH)_LIB)/BufferOverflowK.lib
|
---|
151 | #VBoxVideoWddm_LIBS.x86 += \
|
---|
152 | # $(PATH_SDK_$(VBOX_WINDDK_GST_WLH)_LIB)/exsup.lib
|
---|
153 | VBoxVideoWddm_LIBS = \
|
---|
154 | $(PATH_SDK_$(VBOX_WINDDK_GST_WLH)_LIB)/ntoskrnl.lib \
|
---|
155 | $(PATH_SDK_$(VBOX_WINDDK_GST_WLH)_LIB)/hal.lib \
|
---|
156 | $(PATH_SDK_$(VBOX_WINDDK_GST_WLH)_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 | ifdef VBOX_WITH_WDDM_W8
|
---|
162 | #
|
---|
163 | # VBoxVideoW8 - Windows Guest Additions WDDM 1.2 Miniport Video Driver for Win8
|
---|
164 | #
|
---|
165 | SYSMODS += VBoxVideoW8
|
---|
166 | VBoxVideoW8_EXTENDS = VBoxVideoWddm
|
---|
167 | VBoxVideoW8_TEMPLATE = VBOXGUESTR0
|
---|
168 | VBoxVideoW8_SDKS = $(VBOX_WINDDK_GST_W8) # No ReorderCompilerIncs here!
|
---|
169 | VBoxVideoW8_DEFS = $(subst DXGKDDI_INTERFACE_VERSION=0x1053,DXGKDDI_INTERFACE_VERSION=0x300E,$(VBoxVideoWddm_DEFS)) VBOX_WDDM_WIN8
|
---|
170 | VBoxVideoW8_SOURCES = $(subst VBoxMPWddm.rc,VBoxMPW8.rc,$(VBoxVideoWddm_SOURCES))
|
---|
171 | VBoxVideoW8_LIBS.x86 = $(NO_SUCH_VARIABLE)
|
---|
172 | VBoxVideoW8_LIBS.amd64 = $(NO_SUCH_VARIABLE)
|
---|
173 | VBoxVideoW8_LIBS = \
|
---|
174 | $(VBOX_LIB_VBGL_R0) \
|
---|
175 | $(VBOX_LIB_IPRT_GUEST_R0) \
|
---|
176 | $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB) \
|
---|
177 | $(PATH_SDK_$(VBOX_WINDDK_GST_W8)_LIB)/ntoskrnl.lib \
|
---|
178 | $(PATH_SDK_$(VBOX_WINDDK_GST_W8)_LIB)/hal.lib \
|
---|
179 | $(PATH_SDK_$(VBOX_WINDDK_GST_W8)_LIB)/displib.lib \
|
---|
180 | $(PATH_SDK_$(VBOX_WINDDK_GST_W8)_LIB)/BufferOverflowK.lib
|
---|
181 | endif # VBOX_WITH_WDDM_W8
|
---|
182 |
|
---|
183 | endif # VBOX_WITH_WDDM
|
---|
184 |
|
---|
185 | #
|
---|
186 | # Signing requires both miniport and display drivers
|
---|
187 | # so it'd be dealt with in the parent makefile.
|
---|
188 | #
|
---|
189 | ifdef VBOX_SIGN_ADDITIONS
|
---|
190 | VBoxVideo_INSTTYPE = none
|
---|
191 | VBoxVideo_DEBUG_INSTTYPE = both
|
---|
192 | ifdef VBOX_WITH_WDDM
|
---|
193 | VBoxVideoWddm_INSTTYPE = none
|
---|
194 | VBoxVideoWddm_DEBUG_INSTTYPE = both
|
---|
195 | ifdef VBOX_WITH_WDDM_W8
|
---|
196 | VBoxVideoW8_INSTTYPE = none
|
---|
197 | VBoxVideoW8_DEBUG_INSTTYPE = both
|
---|
198 | endif
|
---|
199 | endif
|
---|
200 | endif # VBOX_SIGN_ADDITIONS
|
---|
201 |
|
---|
202 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
203 |
|
---|