VirtualBox

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

Last change on this file since 62679 was 62522, checked in by vboxsync, 8 years ago

(C) 2016

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 7.1 KB
Line 
1# $Id: Makefile.kmk 62522 2016-07-22 19:17:25Z vboxsync $
2## @file
3# Makefile for the Windows guest display driver.
4#
5
6#
7# Copyright (C) 2011-2016 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 targeting 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 = VBOX_WITH_DDRAW
32VBoxDisp_DEFS += LOG_TO_BACKDOOR #LOG_ENABLED
33ifdef VBOX_WITH_VIDEOHWACCEL
34 VBoxDisp_DEFS += VBOX_WITH_VIDEOHWACCEL
35endif
36ifdef VBOX_WITH_CROGL
37 VBoxDisp_DEFS += VBOX_WITH_CROGL
38endif
39#VBoxDisp_DEFS += VBOX_VBVA_ADJUST_RECT
40VBoxDisp_INCS = ../../../include ..
41VBoxDisp_LDFLAGS.x86 = /Entry:DrvEnableDriver@12
42VBoxDisp_LDFLAGS.amd64 = /Entry:DrvEnableDriver
43VBoxDisp_SOURCES = \
44 xpdm/VBoxDispDriver.cpp \
45 xpdm/VBoxDispMini.cpp \
46 xpdm/VBoxDispMouse.cpp \
47 xpdm/VBoxDispPalette.cpp \
48 xpdm/VBoxDispVBVA.cpp \
49 xpdm/VBoxDispDrawCmd.cpp \
50 xpdm/VBoxDispVRDP.cpp \
51 xpdm/VBoxDispVrdpBmp.cpp \
52 xpdm/VBoxDispVrdpTxt.cpp \
53 xpdm/VBoxDispDriverDDraw.cpp \
54 xpdm/VBoxDispDDraw.cpp \
55 xpdm/VBoxDisp.def \
56 xpdm/VBoxDisp.rc \
57 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \
58 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp \
59 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp
60ifdef VBOX_WITH_VIDEOHWACCEL
61 VBoxDisp_SOURCES += \
62 xpdm/VBoxDispVHWA.cpp \
63 xpdm/VBoxDispDDrawVHWA.cpp
64endif
65VBoxDisp_LIBS = \
66 $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/win32k.lib \
67 $(VBOX_LIB_IPRT_GUEST_R0_NT4) \
68 $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
69
70# Signing requires both miniport and display drivers
71# so it'd be dealt with in the parent makefile.
72ifdef VBOX_SIGN_ADDITIONS
73 VBoxDisp_INSTTYPE = none
74 VBoxDisp_DEBUG_INSTTYPE = both
75 ifdef VBOX_WITH_WDDM
76 VBoxDispD3D_INSTTYPE = none
77 VBoxDispD3D_DEBUG_INSTTYPE = both
78 endif
79endif
80
81ifdef VBOX_WITH_WDDM
82#
83# VBoxDispD3D - Windows Guest Additions WDDM R3 Display Driver
84#
85DLLS += VBoxDispD3D
86VBoxDispD3D_TEMPLATE = VBOXGUESTR3DLL
87VBoxDispD3D_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
88VBoxDispD3D_DEFS = UNICODE _UNICODE VBOX_WITH_WDDM VBOXWDDMDISP LOG_TO_BACKDOOR LOG_TO_BACKDOOR_DRV VBOX_WITH_HGCM D3D_UMD_INTERFACE_VERSION=0x000C
89ifdef DEBUG_misha
90VBoxDispD3D_DEFS += LOG_ENABLED
91endif
92ifdef VBOXWDDM_WITH_VBVA
93VBoxDispD3D_DEFS += VBOXWDDM_WITH_VBVA
94endif
95ifdef VBOX_WITH_VIDEOHWACCEL
96 VBoxDispD3D_DEFS += VBOX_WITH_VIDEOHWACCEL
97endif
98ifdef VBOX_WDDMDISP_WITH_PROFILE
99 VBoxDispD3D_DEFS += VBOX_WDDMDISP_WITH_PROFILE
100endif
101ifdef VBOXWDDM_TEST_UHGSMI
102 VBoxDispD3D_DEFS += VBOXWDDM_TEST_UHGSMI
103endif
104ifdef VBOX_WITH_CROGL
105 VBoxDispD3D_DEFS += VBOX_WITH_CROGL
106endif
107VBoxDispD3D_INCS = \
108 ../../../include \
109 .. \
110 $(VBOX_PATH_CROGL_INCLUDE)
111VBoxDispD3D_SOURCES = \
112 wddm/VBoxDispD3D.cpp \
113 wddm/VBoxDispD3DIf.cpp \
114 wddm/VBoxDispCm.cpp \
115 wddm/VBoxDispKmt.cpp \
116 wddm/VBoxDispDbg.cpp \
117 wddm/VBoxD3DIf.cpp \
118 wddm/VBoxDispD3D.rc \
119 wddm/VBoxDispD3D.def
120ifdef VBOX_WITH_CRHGSMI
121VBoxDispD3D_DEFS += VBOX_WITH_CRHGSMI
122endif
123VBoxDispD3D_LIBS = \
124 $(VBOX_LIB_IPRT_GUEST_R3) \
125 $(VBOX_LIB_VBGL_R3) \
126 Psapi.lib \
127 $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger$(VBOX_SUFF_LIB) \
128 $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi$(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) \
141 $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi-x86$(VBOX_SUFF_LIB)
142VBoxDispD3D-x86_DEFS = $(VBoxDispD3D_DEFS) VBOX_WDDM_WOW64
143
144ifdef VBOX_WITH_CRHGSMI
145#
146# VBoxCrHgsmi - Chromium HGSMI API library
147#
148LIBRARIES += VBoxCrHgsmi
149VBoxCrHgsmi_TEMPLATE = VBOXGUESTR3LIB
150VBoxCrHgsmi_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
151#use same defines as VBoxDispD3D to ensure structure definitions match
152VBoxCrHgsmi_DEFS = $(subst VBOXWDDMDISP,IN_VBOXCRHGSMI,$(VBoxDispD3D_DEFS))
153VBoxCrHgsmi_INCS = ../../../include .. $(VBOX_PATH_CROGL_INCLUDE)
154VBoxCrHgsmi_SOURCES = \
155 wddm/VBoxCrHgsmi.cpp \
156 wddm/VBoxDispKmt.cpp \
157 wddm/VBoxDispDbg.cpp \
158 wddm/VBoxUhgsmiKmt.cpp \
159 wddm/VBoxUhgsmiBase.cpp \
160 wddm/VBoxUhgsmiDisp.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 = $(VBOX_LIB_IPRT_GUEST_R3)
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 = $(VBOX_LIB_IPRT_GUEST_R3) d3d9.lib
218DumpD3DCaps9_LDFLAGS.win = /SUBSYSTEM:CONSOLE
219
220PROGRAMS += D3DFeatureLevel
221D3DFeatureLevel_TEMPLATE = VBOXR3EXE
222D3DFeatureLevel_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
223D3DFeatureLevel_SOURCES = \
224 wddm/dbg/D3DFeatureLevel.cpp
225D3DFeatureLevel_LIBS = $(VBOX_LIB_IPRT_GUEST_R3) d3d11.lib
226D3DFeatureLevel_LDFLAGS.win = /SUBSYSTEM:CONSOLE
227
228endif #VBOXVIDEOWINDBG
229
230include $(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