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