VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/Makefile.kmk@ 40716

Last change on this file since 40716 was 40716, checked in by vboxsync, 13 years ago

wddm/display: fix 3d-off rendering, miniport changes still pending; more correct ddraw detection

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.5 KB
Line 
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
18SUB_DEPTH = ../../../../../../..
19include $(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#
27SYSMODS += VBoxDisp
28VBoxDisp_TEMPLATE = VBOXGUESTR0
29VBoxDisp_SYSSUFF = .dll
30VBoxDisp_DEFS = _WIN32_WINNT=0x0501 VBOX_WITH_DDRAW
31VBoxDisp_DEFS += LOG_TO_BACKDOOR #LOG_ENABLED
32ifdef VBOX_WITH_VIDEOHWACCEL
33 VBoxDisp_DEFS += VBOX_WITH_VIDEOHWACCEL
34endif
35ifdef VBOX_WITH_CROGL
36 VBoxDisp_DEFS += VBOX_WITH_CROGL
37endif
38#VBoxDisp_DEFS += VBOX_VBVA_ADJUST_RECT
39VBoxDisp_INCS = ../../../include ..
40VBoxDisp_LDFLAGS.x86 = /Entry:DrvEnableDriver@12
41VBoxDisp_LDFLAGS.amd64 = /Entry:DrvEnableDriver
42VBoxDisp_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
59ifdef VBOX_WITH_VIDEOHWACCEL
60 VBoxDisp_SOURCES += \
61 xpdm/VBoxDispVHWA.cpp \
62 xpdm/VBoxDispDDrawVHWA.cpp
63endif
64VBoxDisp_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.
71ifdef 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
78endif
79
80ifdef VBOX_WITH_WDDM
81#
82# VBoxDispD3D - Windows Guest Additions WDDM R3 Display Driver
83#
84DLLS += VBoxDispD3D
85VBoxDispD3D_TEMPLATE = VBOXGUESTR3DLL
86VBoxDispD3D_DEFS = UNICODE _UNICODE VBOX_WITH_WDDM VBOXWDDMDISP LOG_TO_BACKDOOR LOG_TO_BACKDOOR_DRV VBOX_WITH_HGCM
87ifdef DEBUG_misha
88VBoxDispD3D_DEFS += LOG_ENABLED
89endif
90ifdef VBOXWDDM_WITH_VBVA
91VBoxDispD3D_DEFS += VBOXWDDM_WITH_VBVA
92endif
93ifdef VBOX_WITH_VIDEOHWACCEL
94 VBoxDispD3D_DEFS += VBOX_WITH_VIDEOHWACCEL
95endif
96ifdef VBOX_WDDMDISP_WITH_PROFILE
97 VBoxDispD3D_DEFS += VBOX_WDDMDISP_WITH_PROFILE
98endif
99ifdef VBOXWDDM_TEST_UHGSMI
100 VBoxDispD3D_DEFS += VBOXWDDM_TEST_UHGSMI
101endif
102VBoxDispD3D_INCS = ../../../include ..
103VBoxDispD3D_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
120VBoxDispD3D_SDKS = WINDDKWLH
121VBoxDispD3D_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#
129DLLS.amd64 += VBoxDispD3D-x86
130VBoxDispD3D-x86_EXTENDS = VBoxDispD3D
131VBoxDispD3D-x86_BLD_TRG_ARCH = x86
132VBoxDispD3D-x86_LIBS = \
133 $(VBOX_LIB_IPRT_GUEST_R3_X86) \
134 $(VBOX_LIB_VBGL_R3_X86) \
135 Psapi.lib
136VBoxDispD3D-x86_DEFS = $(VBoxDispD3D_DEFS) VBOX_WDDM_WOW64
137
138ifdef VBOX_WITH_CRHGSMI
139#
140# VBoxCrHgsmi - Chromium HGSMI API library
141#
142LIBRARIES += VBoxCrHgsmi
143VBoxCrHgsmi_TEMPLATE = VBOXGUESTR3LIB
144VBoxCrHgsmi_DEFS = UNICODE _UNICODE VBOX_WITH_CRHGSMI IN_VBOXCRHGSMI VBOX_WITH_WDDM VBOX_WITH_VDMA VBOX_WITH_HGCM
145VBoxCrHgsmi_INCS = ../../../include ..
146VBoxCrHgsmi_SOURCES = \
147 wddm/VBoxCrHgsmi.cpp \
148 wddm/VBoxDispKmt.cpp \
149 wddm/VBoxDispDbg.cpp \
150 wddm/VBoxUhgsmiKmt.cpp
151VBoxCrHgsmi_SDKS = WINDDKWLH
152
153#
154# 64-bit systems needs a 32-bit version of VBoxCrHgsmi.
155#
156LIBRARIES.amd64 += VBoxCrHgsmi-x86
157VBoxCrHgsmi-x86_TEMPLATE = VBOXGUESTR3LIB
158VBoxCrHgsmi-x86_EXTENDS = VBoxCrHgsmi
159VBoxCrHgsmi-x86_BLD_TRG_ARCH = x86
160VBoxCrHgsmi-x86_DEFS = $(VBoxCrHgsmi_DEFS) VBOX_WDDM_WOW64
161endif #VBOX_WITH_CRHGSMI
162
163endif #ifdef VBOX_WITH_WDDM
164
165ifdef VBOXVIDEOWINDBG
166DLLS += vbvdbg
167vbvdbg_TEMPLATE = VBOXR3STATIC
168vbvdbg_DEFS = UNICODE _UNICODE
169vbvdbg_SOURCES = \
170 wddm/dbg/VBoxVideoWinDbg.cpp \
171 wddm/dbg/VBoxVideoWinDbg.def
172vbvdbg_SDKS = WINDDKWLH
173
174PROGRAMS += tstMvWnd
175tstMvWnd_TEMPLATE = VBOXR3EXE
176tstMvWnd_DEFS = UNICODE _UNICODE
177tstMvWnd_SOURCES = \
178 wddm/dbg/tstMvWnd.cpp
179tstMvWnd_LIBS = $(LIB_RUNTIME)
180tstMvWnd_LDFLAGS.win = /SUBSYSTEM:windows
181
182PROGRAMS += DumpD3DCaps9
183DumpD3DCaps9_TEMPLATE = VBOXR3EXE
184DumpD3DCaps9_DEFS = UNICODE _UNICODE
185DumpD3DCaps9_SOURCES = \
186 wddm/dbg/DumpD3DCaps9.cpp
187DumpD3DCaps9_LIBS = $(LIB_RUNTIME)
188DumpD3DCaps9_LDFLAGS.win = /SUBSYSTEM:CONSOLE
189DumpD3DCaps9_SDKS = WINDDKWLH
190
191endif #VBOXVIDEOWINDBG
192
193include $(KBUILD_PATH)/subfooter.kmk
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