VirtualBox

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

Last change on this file since 42226 was 42226, checked in by vboxsync, 12 years ago

build fix

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