1 | # $Id: Makefile.kmk 40716 2012-03-29 17:14:19Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the Windows guest display driver.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2011 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 | VBoxDispD3D_INCS = ../../../include ..
|
---|
103 | VBoxDispD3D_SOURCES = \
|
---|
104 | wddm/VBoxDispD3D.cpp \
|
---|
105 | wddm/VBoxDispD3DIf.cpp \
|
---|
106 | wddm/VBoxDispCm.cpp \
|
---|
107 | wddm/VBoxDispMp.cpp \
|
---|
108 | wddm/VBoxScreen.cpp \
|
---|
109 | wddm/VBoxDispMpTst.cpp \
|
---|
110 | wddm/VBoxDispKmt.cpp \
|
---|
111 | wddm/VBoxDispDbg.cpp \
|
---|
112 | wddm/VBoxDispD3D.rc \
|
---|
113 | wddm/VBoxDispD3D.def \
|
---|
114 | #ifdef VBOX_WITH_CRHGSMI
|
---|
115 | #VBoxDispD3D_SOURCES += \
|
---|
116 | # wddm/VBoxUhgsmiDisp.cpp \
|
---|
117 | # wddm/VBoxUhgsmiKmt.cpp
|
---|
118 | #VBoxDispD3D_DEFS += VBOX_WITH_CRHGSMI
|
---|
119 | #endif
|
---|
120 | VBoxDispD3D_SDKS = WINDDKWLH
|
---|
121 | VBoxDispD3D_LIBS = \
|
---|
122 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
123 | $(VBOX_LIB_VBGL_R3) \
|
---|
124 | Psapi.lib
|
---|
125 |
|
---|
126 | #
|
---|
127 | # 64-bit systems needs a 32-bit version of VBoxDispD3D.
|
---|
128 | #
|
---|
129 | DLLS.amd64 += VBoxDispD3D-x86
|
---|
130 | VBoxDispD3D-x86_EXTENDS = VBoxDispD3D
|
---|
131 | VBoxDispD3D-x86_BLD_TRG_ARCH = x86
|
---|
132 | VBoxDispD3D-x86_LIBS = \
|
---|
133 | $(VBOX_LIB_IPRT_GUEST_R3_X86) \
|
---|
134 | $(VBOX_LIB_VBGL_R3_X86) \
|
---|
135 | Psapi.lib
|
---|
136 | VBoxDispD3D-x86_DEFS = $(VBoxDispD3D_DEFS) VBOX_WDDM_WOW64
|
---|
137 |
|
---|
138 | ifdef VBOX_WITH_CRHGSMI
|
---|
139 | #
|
---|
140 | # VBoxCrHgsmi - Chromium HGSMI API library
|
---|
141 | #
|
---|
142 | LIBRARIES += VBoxCrHgsmi
|
---|
143 | VBoxCrHgsmi_TEMPLATE = VBOXGUESTR3LIB
|
---|
144 | VBoxCrHgsmi_DEFS = UNICODE _UNICODE VBOX_WITH_CRHGSMI IN_VBOXCRHGSMI VBOX_WITH_WDDM VBOX_WITH_VDMA VBOX_WITH_HGCM
|
---|
145 | VBoxCrHgsmi_INCS = ../../../include ..
|
---|
146 | VBoxCrHgsmi_SOURCES = \
|
---|
147 | wddm/VBoxCrHgsmi.cpp \
|
---|
148 | wddm/VBoxDispKmt.cpp \
|
---|
149 | wddm/VBoxDispDbg.cpp \
|
---|
150 | wddm/VBoxUhgsmiKmt.cpp
|
---|
151 | VBoxCrHgsmi_SDKS = WINDDKWLH
|
---|
152 |
|
---|
153 | #
|
---|
154 | # 64-bit systems needs a 32-bit version of VBoxCrHgsmi.
|
---|
155 | #
|
---|
156 | LIBRARIES.amd64 += VBoxCrHgsmi-x86
|
---|
157 | VBoxCrHgsmi-x86_TEMPLATE = VBOXGUESTR3LIB
|
---|
158 | VBoxCrHgsmi-x86_EXTENDS = VBoxCrHgsmi
|
---|
159 | VBoxCrHgsmi-x86_BLD_TRG_ARCH = x86
|
---|
160 | VBoxCrHgsmi-x86_DEFS = $(VBoxCrHgsmi_DEFS) VBOX_WDDM_WOW64
|
---|
161 | endif #VBOX_WITH_CRHGSMI
|
---|
162 |
|
---|
163 | endif #ifdef VBOX_WITH_WDDM
|
---|
164 |
|
---|
165 | ifdef VBOXVIDEOWINDBG
|
---|
166 | DLLS += vbvdbg
|
---|
167 | vbvdbg_TEMPLATE = VBOXR3STATIC
|
---|
168 | vbvdbg_DEFS = UNICODE _UNICODE
|
---|
169 | vbvdbg_SOURCES = \
|
---|
170 | wddm/dbg/VBoxVideoWinDbg.cpp \
|
---|
171 | wddm/dbg/VBoxVideoWinDbg.def
|
---|
172 | vbvdbg_SDKS = WINDDKWLH
|
---|
173 |
|
---|
174 | PROGRAMS += tstMvWnd
|
---|
175 | tstMvWnd_TEMPLATE = VBOXR3EXE
|
---|
176 | tstMvWnd_DEFS = UNICODE _UNICODE
|
---|
177 | tstMvWnd_SOURCES = \
|
---|
178 | wddm/dbg/tstMvWnd.cpp
|
---|
179 | tstMvWnd_LIBS = $(LIB_RUNTIME)
|
---|
180 | tstMvWnd_LDFLAGS.win = /SUBSYSTEM:windows
|
---|
181 |
|
---|
182 | PROGRAMS += DumpD3DCaps9
|
---|
183 | DumpD3DCaps9_TEMPLATE = VBOXR3EXE
|
---|
184 | DumpD3DCaps9_DEFS = UNICODE _UNICODE
|
---|
185 | DumpD3DCaps9_SOURCES = \
|
---|
186 | wddm/dbg/DumpD3DCaps9.cpp
|
---|
187 | DumpD3DCaps9_LIBS = $(LIB_RUNTIME)
|
---|
188 | DumpD3DCaps9_LDFLAGS.win = /SUBSYSTEM:CONSOLE
|
---|
189 | DumpD3DCaps9_SDKS = WINDDKWLH
|
---|
190 |
|
---|
191 | endif #VBOXVIDEOWINDBG
|
---|
192 |
|
---|
193 | include $(KBUILD_PATH)/subfooter.kmk
|
---|