VirtualBox

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

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

additions compile fix for VBOX_WITH_CROGL=

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.4 KB
Line 
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
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
102ifdef VBOX_WITH_CROGL
103 VBoxDispD3D_DEFS += VBOX_WITH_CROGL
104endif
105VBoxDispD3D_INCS = ../../../include ..
106VBoxDispD3D_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
123VBoxDispD3D_SDKS = WINDDKWLH
124VBoxDispD3D_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#
133DLLS.amd64 += VBoxDispD3D-x86
134VBoxDispD3D-x86_EXTENDS = VBoxDispD3D
135VBoxDispD3D-x86_BLD_TRG_ARCH = x86
136VBoxDispD3D-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)
141VBoxDispD3D-x86_DEFS = $(VBoxDispD3D_DEFS) VBOX_WDDM_WOW64
142
143ifdef VBOX_WITH_CRHGSMI
144#
145# VBoxCrHgsmi - Chromium HGSMI API library
146#
147LIBRARIES += VBoxCrHgsmi
148VBoxCrHgsmi_TEMPLATE = VBOXGUESTR3LIB
149VBoxCrHgsmi_DEFS = UNICODE _UNICODE VBOX_WITH_CRHGSMI IN_VBOXCRHGSMI VBOX_WITH_WDDM VBOX_WITH_VDMA VBOX_WITH_HGCM
150VBoxCrHgsmi_INCS = ../../../include ..
151VBoxCrHgsmi_SOURCES = \
152 wddm/VBoxCrHgsmi.cpp \
153 wddm/VBoxDispKmt.cpp \
154 wddm/VBoxDispDbg.cpp \
155 wddm/VBoxUhgsmiKmt.cpp
156VBoxCrHgsmi_SDKS = WINDDKWLH
157
158#
159# 64-bit systems needs a 32-bit version of VBoxCrHgsmi.
160#
161LIBRARIES.amd64 += VBoxCrHgsmi-x86
162VBoxCrHgsmi-x86_TEMPLATE = VBOXGUESTR3LIB
163VBoxCrHgsmi-x86_EXTENDS = VBoxCrHgsmi
164VBoxCrHgsmi-x86_BLD_TRG_ARCH = x86
165VBoxCrHgsmi-x86_DEFS = $(VBoxCrHgsmi_DEFS) VBOX_WDDM_WOW64
166endif #VBOX_WITH_CRHGSMI
167
168#
169# VBoxDispMpLogger - display backdoor logger library
170#
171LIBRARIES += VBoxDispMpLogger
172VBoxDispMpLogger_TEMPLATE = VBOXGUESTR3LIB
173VBoxDispMpLogger_DEFS = UNICODE _UNICODE VBOX_WITH_CRHGSMI IN_VBOXCRHGSMI VBOX_WITH_WDDM VBOX_WITH_VDMA VBOX_WITH_HGCM
174VBoxDispMpLogger_INCS = ../../../include ..
175VBoxDispMpLogger_SOURCES = \
176 wddm/VBoxDispMpLogger.cpp
177VBoxDispMpLogger_SDKS = WINDDKWLH
178
179#
180# 64-bit systems needs a 32-bit version of VBoxCrHgsmi.
181#
182LIBRARIES.amd64 += VBoxDispMpLogger-x86
183VBoxDispMpLogger-x86_TEMPLATE = VBOXGUESTR3LIB
184VBoxDispMpLogger-x86_EXTENDS = VBoxDispMpLogger
185VBoxDispMpLogger-x86_BLD_TRG_ARCH = x86
186VBoxDispMpLogger-x86_DEFS = $(VBoxDispMpLogger_DEFS) VBOX_WDDM_WOW64
187
188endif #ifdef VBOX_WITH_WDDM
189
190ifdef VBOXVIDEOWINDBG
191DLLS += vbvdbg
192vbvdbg_TEMPLATE = VBOXR3STATIC
193vbvdbg_DEFS = UNICODE _UNICODE
194vbvdbg_SOURCES = \
195 wddm/dbg/VBoxVideoWinDbg.cpp \
196 wddm/dbg/VBoxVideoWinDbg.def
197vbvdbg_SDKS = WINDDKWLH
198
199PROGRAMS += tstMvWnd
200tstMvWnd_TEMPLATE = VBOXR3EXE
201tstMvWnd_DEFS = UNICODE _UNICODE
202tstMvWnd_SOURCES = \
203 wddm/dbg/tstMvWnd.cpp
204tstMvWnd_LIBS = $(LIB_RUNTIME)
205tstMvWnd_LDFLAGS.win = /SUBSYSTEM:windows
206
207PROGRAMS += DumpD3DCaps9
208DumpD3DCaps9_TEMPLATE = VBOXR3EXE
209DumpD3DCaps9_DEFS = UNICODE _UNICODE
210DumpD3DCaps9_SOURCES = \
211 wddm/dbg/DumpD3DCaps9.cpp
212DumpD3DCaps9_LIBS = $(LIB_RUNTIME)
213DumpD3DCaps9_LDFLAGS.win = /SUBSYSTEM:CONSOLE
214DumpD3DCaps9_SDKS = WINDDKWLH
215
216endif #VBOXVIDEOWINDBG
217
218include $(FILE_KBUILD_SUB_FOOTER)
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