VirtualBox

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

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

followup for r79662, sigh

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.8 KB
Line 
1# $Id: Makefile.kmk 42501 2012-08-01 10:48:53Z 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 = 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/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
122ifdef VBOX_WITH_CRHGSMI
123VBoxDispD3D_DEFS += VBOX_WITH_CRHGSMI
124endif
125VBoxDispD3D_LIBS = \
126 $(VBOX_LIB_IPRT_GUEST_R3) \
127 $(VBOX_LIB_VBGL_R3) \
128 Psapi.lib \
129 $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger$(VBOX_SUFF_LIB) \
130 $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi$(VBOX_SUFF_LIB)
131
132#
133# 64-bit systems needs a 32-bit version of VBoxDispD3D.
134#
135DLLS.amd64 += VBoxDispD3D-x86
136VBoxDispD3D-x86_EXTENDS = VBoxDispD3D
137VBoxDispD3D-x86_BLD_TRG_ARCH = x86
138VBoxDispD3D-x86_LIBS = \
139 $(VBOX_LIB_IPRT_GUEST_R3_X86) \
140 $(VBOX_LIB_VBGL_R3_X86) \
141 Psapi.lib \
142 $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger-x86$(VBOX_SUFF_LIB) \
143 $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi-x86$(VBOX_SUFF_LIB)
144VBoxDispD3D-x86_DEFS = $(VBoxDispD3D_DEFS) VBOX_WDDM_WOW64
145
146ifdef VBOX_WITH_CRHGSMI
147#
148# VBoxCrHgsmi - Chromium HGSMI API library
149#
150LIBRARIES += VBoxCrHgsmi
151VBoxCrHgsmi_TEMPLATE = VBOXGUESTR3LIB
152VBoxCrHgsmi_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
153#use same defines as VBoxDispD3D to ensure structure definitions match
154VBoxCrHgsmi_DEFS = $(subst VBOXWDDMDISP,IN_VBOXCRHGSMI,$(VBoxDispD3D_DEFS))
155VBoxCrHgsmi_INCS = ../../../include .. $(VBOX_PATH_CROGL_INCLUDE)
156VBoxCrHgsmi_SOURCES = \
157 wddm/VBoxCrHgsmi.cpp \
158 wddm/VBoxDispKmt.cpp \
159 wddm/VBoxDispDbg.cpp \
160 wddm/VBoxUhgsmiKmt.cpp \
161 wddm/VBoxUhgsmiBase.cpp \
162 wddm/VBoxUhgsmiDisp.cpp
163
164#
165# 64-bit systems needs a 32-bit version of VBoxCrHgsmi.
166#
167LIBRARIES.amd64 += VBoxCrHgsmi-x86
168VBoxCrHgsmi-x86_TEMPLATE = VBOXGUESTR3LIB
169VBoxCrHgsmi-x86_EXTENDS = VBoxCrHgsmi
170VBoxCrHgsmi-x86_BLD_TRG_ARCH = x86
171VBoxCrHgsmi-x86_DEFS = $(VBoxCrHgsmi_DEFS) VBOX_WDDM_WOW64
172endif #VBOX_WITH_CRHGSMI
173
174#
175# VBoxDispMpLogger - display backdoor logger library
176#
177LIBRARIES += VBoxDispMpLogger
178VBoxDispMpLogger_TEMPLATE = VBOXGUESTR3LIB
179VBoxDispMpLogger_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
180VBoxDispMpLogger_DEFS = UNICODE _UNICODE VBOX_WITH_CRHGSMI IN_VBOXCRHGSMI VBOX_WITH_WDDM VBOX_WITH_VDMA VBOX_WITH_HGCM
181VBoxDispMpLogger_INCS = ../../../include ..
182VBoxDispMpLogger_SOURCES = \
183 wddm/VBoxDispMpLogger.cpp
184
185#
186# 64-bit systems needs a 32-bit version of VBoxCrHgsmi.
187#
188LIBRARIES.amd64 += VBoxDispMpLogger-x86
189VBoxDispMpLogger-x86_TEMPLATE = VBOXGUESTR3LIB
190VBoxDispMpLogger-x86_EXTENDS = VBoxDispMpLogger
191VBoxDispMpLogger-x86_BLD_TRG_ARCH = x86
192VBoxDispMpLogger-x86_DEFS = $(VBoxDispMpLogger_DEFS) VBOX_WDDM_WOW64
193
194endif #ifdef VBOX_WITH_WDDM
195
196ifdef VBOXVIDEOWINDBG
197DLLS += vbvdbg
198vbvdbg_TEMPLATE = VBOXR3STATIC
199vbvdbg_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
200vbvdbg_DEFS = UNICODE _UNICODE
201vbvdbg_SOURCES = \
202 wddm/dbg/VBoxVideoWinDbg.cpp \
203 wddm/dbg/VBoxVideoWinDbg.def
204
205PROGRAMS += tstMvWnd
206tstMvWnd_TEMPLATE = VBOXR3EXE
207tstMvWnd_DEFS = UNICODE _UNICODE
208tstMvWnd_SOURCES = \
209 wddm/dbg/tstMvWnd.cpp
210tstMvWnd_LIBS = $(LIB_RUNTIME)
211tstMvWnd_LDFLAGS.win = /SUBSYSTEM:windows
212
213PROGRAMS += DumpD3DCaps9
214DumpD3DCaps9_TEMPLATE = VBOXR3EXE
215DumpD3DCaps9_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
216DumpD3DCaps9_DEFS = UNICODE _UNICODE
217DumpD3DCaps9_SOURCES = \
218 wddm/dbg/DumpD3DCaps9.cpp
219DumpD3DCaps9_LIBS = $(LIB_RUNTIME)
220DumpD3DCaps9_LDFLAGS.win = /SUBSYSTEM:CONSOLE
221
222endif #VBOXVIDEOWINDBG
223
224include $(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