1 | # $Id: Makefile.kmk 42501 2012-08-01 10:48:53Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the Windows guest display 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 | # VBoxDisp - Windows Guest Additions XPDM Display Driver
|
---|
23 | #
|
---|
24 | # Note. This has to run on NT4! (*_NT4 => *_W2K3 when targetting 64-bit.)
|
---|
25 | #
|
---|
26 | SYSMODS += VBoxDisp
|
---|
27 | VBoxDisp_TEMPLATE = VBOXGUESTR0
|
---|
28 | VBoxDisp_SYSSUFF = .dll
|
---|
29 | VBoxDisp_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_NT4)
|
---|
30 | VBoxDisp_DEFS.x86 = _WIN32_WINNT=0x0501
|
---|
31 | VBoxDisp_DEFS = VBOX_WITH_DDRAW
|
---|
32 | VBoxDisp_DEFS += LOG_TO_BACKDOOR #LOG_ENABLED
|
---|
33 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
34 | VBoxDisp_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
35 | endif
|
---|
36 | ifdef VBOX_WITH_CROGL
|
---|
37 | VBoxDisp_DEFS += VBOX_WITH_CROGL
|
---|
38 | endif
|
---|
39 | #VBoxDisp_DEFS += VBOX_VBVA_ADJUST_RECT
|
---|
40 | VBoxDisp_INCS = ../../../include ..
|
---|
41 | VBoxDisp_LDFLAGS.x86 = /Entry:DrvEnableDriver@12
|
---|
42 | VBoxDisp_LDFLAGS.amd64 = /Entry:DrvEnableDriver
|
---|
43 | VBoxDisp_SOURCES = \
|
---|
44 | xpdm/VBoxDispDriver.cpp \
|
---|
45 | xpdm/VBoxDispMini.cpp \
|
---|
46 | xpdm/VBoxDispMouse.cpp \
|
---|
47 | xpdm/VBoxDispPalette.cpp \
|
---|
48 | xpdm/VBoxDispVBVA.cpp \
|
---|
49 | xpdm/VBoxDispDrawCmd.cpp \
|
---|
50 | xpdm/VBoxDispVRDP.cpp \
|
---|
51 | xpdm/VBoxDispVrdpBmp.cpp \
|
---|
52 | xpdm/VBoxDispVrdpTxt.cpp \
|
---|
53 | xpdm/VBoxDispDriverDDraw.cpp \
|
---|
54 | xpdm/VBoxDispDDraw.cpp \
|
---|
55 | xpdm/VBoxDisp.def \
|
---|
56 | xpdm/VBoxDisp.rc \
|
---|
57 | $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \
|
---|
58 | $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp \
|
---|
59 | $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp
|
---|
60 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
61 | VBoxDisp_SOURCES += \
|
---|
62 | xpdm/VBoxDispVHWA.cpp \
|
---|
63 | xpdm/VBoxDispDDrawVHWA.cpp
|
---|
64 | endif
|
---|
65 | VBoxDisp_LIBS = \
|
---|
66 | $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/win32k.lib \
|
---|
67 | $(VBOX_LIB_IPRT_GUEST_R0_NT4) \
|
---|
68 | $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
|
---|
69 |
|
---|
70 | # Signing requires both miniport and display drivers
|
---|
71 | # so it'd be dealt with in the parent makefile.
|
---|
72 | ifdef VBOX_SIGN_ADDITIONS
|
---|
73 | VBoxDisp_INSTTYPE = none
|
---|
74 | VBoxDisp_DEBUG_INSTTYPE = both
|
---|
75 | ifdef VBOX_WITH_WDDM
|
---|
76 | VBoxDispD3D_INSTTYPE = none
|
---|
77 | VBoxDispD3D_DEBUG_INSTTYPE = both
|
---|
78 | endif
|
---|
79 | endif
|
---|
80 |
|
---|
81 | ifdef VBOX_WITH_WDDM
|
---|
82 | #
|
---|
83 | # VBoxDispD3D - Windows Guest Additions WDDM R3 Display Driver
|
---|
84 | #
|
---|
85 | DLLS += VBoxDispD3D
|
---|
86 | VBoxDispD3D_TEMPLATE = VBOXGUESTR3DLL
|
---|
87 | VBoxDispD3D_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
|
---|
88 | VBoxDispD3D_DEFS = UNICODE _UNICODE VBOX_WITH_WDDM VBOXWDDMDISP LOG_TO_BACKDOOR LOG_TO_BACKDOOR_DRV VBOX_WITH_HGCM D3D_UMD_INTERFACE_VERSION=0x000C
|
---|
89 | ifdef DEBUG_misha
|
---|
90 | VBoxDispD3D_DEFS += LOG_ENABLED
|
---|
91 | endif
|
---|
92 | ifdef VBOXWDDM_WITH_VBVA
|
---|
93 | VBoxDispD3D_DEFS += VBOXWDDM_WITH_VBVA
|
---|
94 | endif
|
---|
95 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
96 | VBoxDispD3D_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
97 | endif
|
---|
98 | ifdef VBOX_WDDMDISP_WITH_PROFILE
|
---|
99 | VBoxDispD3D_DEFS += VBOX_WDDMDISP_WITH_PROFILE
|
---|
100 | endif
|
---|
101 | ifdef VBOXWDDM_TEST_UHGSMI
|
---|
102 | VBoxDispD3D_DEFS += VBOXWDDM_TEST_UHGSMI
|
---|
103 | endif
|
---|
104 | ifdef VBOX_WITH_CROGL
|
---|
105 | VBoxDispD3D_DEFS += VBOX_WITH_CROGL
|
---|
106 | endif
|
---|
107 | VBoxDispD3D_INCS = \
|
---|
108 | ../../../include \
|
---|
109 | .. \
|
---|
110 | $(VBOX_PATH_CROGL_INCLUDE)
|
---|
111 | VBoxDispD3D_SOURCES = \
|
---|
112 | wddm/VBoxDispD3D.cpp \
|
---|
113 | wddm/VBoxDispD3DIf.cpp \
|
---|
114 | wddm/VBoxDispCm.cpp \
|
---|
115 | wddm/VBoxDispMp.cpp \
|
---|
116 | wddm/VBoxScreen.cpp \
|
---|
117 | wddm/VBoxDispMpTst.cpp \
|
---|
118 | wddm/VBoxDispKmt.cpp \
|
---|
119 | wddm/VBoxDispDbg.cpp \
|
---|
120 | wddm/VBoxDispD3D.rc \
|
---|
121 | wddm/VBoxDispD3D.def
|
---|
122 | ifdef VBOX_WITH_CRHGSMI
|
---|
123 | VBoxDispD3D_DEFS += VBOX_WITH_CRHGSMI
|
---|
124 | endif
|
---|
125 | VBoxDispD3D_LIBS = \
|
---|
126 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
127 | $(VBOX_LIB_VBGL_R3) \
|
---|
128 | Psapi.lib \
|
---|
129 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger$(VBOX_SUFF_LIB) \
|
---|
130 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi$(VBOX_SUFF_LIB)
|
---|
131 |
|
---|
132 | #
|
---|
133 | # 64-bit systems needs a 32-bit version of VBoxDispD3D.
|
---|
134 | #
|
---|
135 | DLLS.amd64 += VBoxDispD3D-x86
|
---|
136 | VBoxDispD3D-x86_EXTENDS = VBoxDispD3D
|
---|
137 | VBoxDispD3D-x86_BLD_TRG_ARCH = x86
|
---|
138 | VBoxDispD3D-x86_LIBS = \
|
---|
139 | $(VBOX_LIB_IPRT_GUEST_R3_X86) \
|
---|
140 | $(VBOX_LIB_VBGL_R3_X86) \
|
---|
141 | Psapi.lib \
|
---|
142 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger-x86$(VBOX_SUFF_LIB) \
|
---|
143 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi-x86$(VBOX_SUFF_LIB)
|
---|
144 | VBoxDispD3D-x86_DEFS = $(VBoxDispD3D_DEFS) VBOX_WDDM_WOW64
|
---|
145 |
|
---|
146 | ifdef VBOX_WITH_CRHGSMI
|
---|
147 | #
|
---|
148 | # VBoxCrHgsmi - Chromium HGSMI API library
|
---|
149 | #
|
---|
150 | LIBRARIES += VBoxCrHgsmi
|
---|
151 | VBoxCrHgsmi_TEMPLATE = VBOXGUESTR3LIB
|
---|
152 | VBoxCrHgsmi_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
|
---|
153 | #use same defines as VBoxDispD3D to ensure structure definitions match
|
---|
154 | VBoxCrHgsmi_DEFS = $(subst VBOXWDDMDISP,IN_VBOXCRHGSMI,$(VBoxDispD3D_DEFS))
|
---|
155 | VBoxCrHgsmi_INCS = ../../../include .. $(VBOX_PATH_CROGL_INCLUDE)
|
---|
156 | VBoxCrHgsmi_SOURCES = \
|
---|
157 | wddm/VBoxCrHgsmi.cpp \
|
---|
158 | wddm/VBoxDispKmt.cpp \
|
---|
159 | wddm/VBoxDispDbg.cpp \
|
---|
160 | wddm/VBoxUhgsmiKmt.cpp \
|
---|
161 | wddm/VBoxUhgsmiBase.cpp \
|
---|
162 | wddm/VBoxUhgsmiDisp.cpp
|
---|
163 |
|
---|
164 | #
|
---|
165 | # 64-bit systems needs a 32-bit version of VBoxCrHgsmi.
|
---|
166 | #
|
---|
167 | LIBRARIES.amd64 += VBoxCrHgsmi-x86
|
---|
168 | VBoxCrHgsmi-x86_TEMPLATE = VBOXGUESTR3LIB
|
---|
169 | VBoxCrHgsmi-x86_EXTENDS = VBoxCrHgsmi
|
---|
170 | VBoxCrHgsmi-x86_BLD_TRG_ARCH = x86
|
---|
171 | VBoxCrHgsmi-x86_DEFS = $(VBoxCrHgsmi_DEFS) VBOX_WDDM_WOW64
|
---|
172 | endif #VBOX_WITH_CRHGSMI
|
---|
173 |
|
---|
174 | #
|
---|
175 | # VBoxDispMpLogger - display backdoor logger library
|
---|
176 | #
|
---|
177 | LIBRARIES += VBoxDispMpLogger
|
---|
178 | VBoxDispMpLogger_TEMPLATE = VBOXGUESTR3LIB
|
---|
179 | VBoxDispMpLogger_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
|
---|
180 | VBoxDispMpLogger_DEFS = UNICODE _UNICODE VBOX_WITH_CRHGSMI IN_VBOXCRHGSMI VBOX_WITH_WDDM VBOX_WITH_VDMA VBOX_WITH_HGCM
|
---|
181 | VBoxDispMpLogger_INCS = ../../../include ..
|
---|
182 | VBoxDispMpLogger_SOURCES = \
|
---|
183 | wddm/VBoxDispMpLogger.cpp
|
---|
184 |
|
---|
185 | #
|
---|
186 | # 64-bit systems needs a 32-bit version of VBoxCrHgsmi.
|
---|
187 | #
|
---|
188 | LIBRARIES.amd64 += VBoxDispMpLogger-x86
|
---|
189 | VBoxDispMpLogger-x86_TEMPLATE = VBOXGUESTR3LIB
|
---|
190 | VBoxDispMpLogger-x86_EXTENDS = VBoxDispMpLogger
|
---|
191 | VBoxDispMpLogger-x86_BLD_TRG_ARCH = x86
|
---|
192 | VBoxDispMpLogger-x86_DEFS = $(VBoxDispMpLogger_DEFS) VBOX_WDDM_WOW64
|
---|
193 |
|
---|
194 | endif #ifdef VBOX_WITH_WDDM
|
---|
195 |
|
---|
196 | ifdef VBOXVIDEOWINDBG
|
---|
197 | DLLS += vbvdbg
|
---|
198 | vbvdbg_TEMPLATE = VBOXR3STATIC
|
---|
199 | vbvdbg_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
|
---|
200 | vbvdbg_DEFS = UNICODE _UNICODE
|
---|
201 | vbvdbg_SOURCES = \
|
---|
202 | wddm/dbg/VBoxVideoWinDbg.cpp \
|
---|
203 | wddm/dbg/VBoxVideoWinDbg.def
|
---|
204 |
|
---|
205 | PROGRAMS += tstMvWnd
|
---|
206 | tstMvWnd_TEMPLATE = VBOXR3EXE
|
---|
207 | tstMvWnd_DEFS = UNICODE _UNICODE
|
---|
208 | tstMvWnd_SOURCES = \
|
---|
209 | wddm/dbg/tstMvWnd.cpp
|
---|
210 | tstMvWnd_LIBS = $(LIB_RUNTIME)
|
---|
211 | tstMvWnd_LDFLAGS.win = /SUBSYSTEM:windows
|
---|
212 |
|
---|
213 | PROGRAMS += DumpD3DCaps9
|
---|
214 | DumpD3DCaps9_TEMPLATE = VBOXR3EXE
|
---|
215 | DumpD3DCaps9_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
|
---|
216 | DumpD3DCaps9_DEFS = UNICODE _UNICODE
|
---|
217 | DumpD3DCaps9_SOURCES = \
|
---|
218 | wddm/dbg/DumpD3DCaps9.cpp
|
---|
219 | DumpD3DCaps9_LIBS = $(LIB_RUNTIME)
|
---|
220 | DumpD3DCaps9_LDFLAGS.win = /SUBSYSTEM:CONSOLE
|
---|
221 |
|
---|
222 | endif #VBOXVIDEOWINDBG
|
---|
223 |
|
---|
224 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|