VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Display/Makefile.kmk@ 35501

Last change on this file since 35501 was 35501, checked in by vboxsync, 14 years ago

VBoxDisp: use EngDitherColor fallback for DrvDitherColor.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.3 KB
Line 
1# $Id: Makefile.kmk 35501 2011-01-12 11:02:14Z vboxsync $
2## @file
3# Sub-Makefile for VBoxDisp.dll.
4#
5
6#
7# Copyright (C) 2006-2007 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
21SYSMODS += VBoxDisp
22VBoxDisp_TEMPLATE = VBOXGUESTR0
23ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
24 VBoxDisp_NOINST = true
25endif
26VBoxDisp_SYSSUFF = .dll
27VBoxDisp_DEFS = _WIN32_WINNT=0x0501 LOG_TO_BACKDOOR VBOX_WITH_DDRAW VBOX_WITH_OPENGL
28VBoxDisp_INCS = ../../include
29#VBoxDisp_DEFS += VBOX_VBVA_ADJUST_RECT
30#VBoxDisp_DEFS += LOG_ENABLED
31ifdef VBOX_WITH_VIDEOHWACCEL
32VBoxDisp_DEFS += VBOX_WITH_VIDEOHWACCEL
33endif
34#VBoxDisp_DEFS += STAT_sunlover
35VBoxDisp_SOURCES = \
36 debug.c \
37 enable.c \
38 palette.c \
39 pointer.c \
40 screen.c \
41 drv.c \
42 dd.c \
43 vbva.c \
44 vrdp.c \
45 vrdpbmp.c \
46 vrdptext.c \
47 vbox.c \
48 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \
49 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp \
50 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp \
51 VBoxDisp.def \
52 VBoxDisp.rc
53
54ifdef VBOX_WITH_VIDEOHWACCEL
55VBoxDisp_SOURCES += vhwa.c
56endif
57VBoxDisp_LDFLAGS.x86 = /Entry:DrvEnableDriver@12
58VBoxDisp_LDFLAGS.amd64 = /Entry:DrvEnableDriver
59VBoxDisp_LIBS = \
60 $(PATH_SDK_W2K3DDK_LIB)/win32k.lib \
61 $(VBOX_LIB_IPRT_GUEST_R0) \
62 $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
63
64ifdef VBOX_WITH_WDDM
65
66#
67# Please add description.
68#
69DLLS += VBoxDispD3D
70 if defined(VBOX_SIGNING_MODE)
71VBoxDispD3D_NOINST = true
72 endif
73VBoxDispD3D_TEMPLATE = VBOXGUESTR3DLL
74VBoxDispD3D_DEFS = UNICODE _UNICODE VBOX_WITH_WDDM VBOXWDDMDISP LOG_TO_BACKDOOR
75ifdef DEBUG_misha
76VBoxDispD3D_DEFS += LOG_ENABLED
77endif
78
79# VBoxDispD3D_DEFS += VBOXDISPMP_TEST
80ifdef VBOXWDDM_WITH_VBVA
81VBoxDispD3D_DEFS += VBOXWDDM_WITH_VBVA
82endif
83
84ifdef VBOX_WITH_VIDEOHWACCEL
85 VBoxDispD3D_DEFS += VBOX_WITH_VIDEOHWACCEL
86endif
87ifdef VBOX_WDDMDISP_WITH_PROFILE
88 VBoxDispD3D_DEFS += VBOX_WDDMDISP_WITH_PROFILE
89endif
90ifdef VBOXWDDM_TEST_UHGSMI
91 VBoxDispD3D_DEFS += VBOXWDDM_TEST_UHGSMI
92endif
93VBoxDispD3D_SOURCES = \
94 wddm/VBoxDispD3D.cpp \
95 wddm/VBoxDispD3DIf.cpp \
96 wddm/VBoxDispCm.cpp \
97 wddm/VBoxDispMp.cpp \
98 wddm/VBoxScreen.cpp \
99 wddm/VBoxDispMpTst.cpp \
100 wddm/VBoxDispD3D.rc \
101 wddm/VBoxDispD3D.def
102#ifdef VBOX_WITH_CRHGSMI
103#VBoxDispD3D_SOURCES += \
104# wddm/VBoxUhgsmiDisp.cpp \
105# wddm/VBoxUhgsmiKmt.cpp
106#VBoxDispD3D_DEFS += VBOX_WITH_CRHGSMI
107#endif
108VBoxDispD3D_LIBS = \
109 $(VBOX_LIB_IPRT_GUEST_R3) \
110 $(VBOX_LIB_VBGL_R3)
111VBoxDispD3D_SDKS = WINDDKWLH
112# VBoxDispD3D_INCS += ../Wine/include
113
114
115#
116# 64-bit systems needs a 32-bit version of VBoxDispD3D.
117#
118DLLS.amd64 += VBoxDispD3D-x86
119VBoxDispD3D-x86_EXTENDS = VBoxDispD3D
120VBoxDispD3D-x86_BLD_TRG_ARCH = x86
121VBoxDispD3D-x86_LIBS = \
122 $(VBOX_LIB_IPRT_GUEST_R3_X86) \
123 $(VBOX_LIB_VBGL_R3_X86)
124VBoxDispD3D-x86_DEFS = $(VBoxDispD3D_DEFS) VBOX_WDDM_WOW64
125 ifdef VBOX_WITH_CRHGSMI
126#
127# VBoxCrHgsmi - Chromium HGSMI API library
128#
129LIBRARIES += VBoxCrHgsmi
130VBoxCrHgsmi_TEMPLATE = VBOXGUESTR3LIB
131VBoxCrHgsmi_DEFS = UNICODE _UNICODE VBOX_WITH_CRHGSMI IN_VBOXCRHGSMI VBOX_WITH_WDDM VBOX_WITH_VDMA
132VBoxCrHgsmi_SOURCES = \
133 wddm/VBoxCrHgsmi.cpp \
134 wddm/VBoxUhgsmiKmt.cpp
135VBoxCrHgsmi_SDKS = WINDDKWLH
136
137LIBRARIES.amd64 += VBoxCrHgsmi-x86
138VBoxCrHgsmi-x86_TEMPLATE = VBOXGUESTR3LIB
139VBoxCrHgsmi-x86_EXTENDS = VBoxCrHgsmi
140VBoxCrHgsmi-x86_BLD_TRG_ARCH = x86
141VBoxCrHgsmi-x86_DEFS = $(VBoxCrHgsmi_DEFS) VBOX_WDDM_WOW64
142 endif
143endif
144
145ifdef VBOXVIDEOWINDBG
146DLLS += vbvdbg
147vbvdbg_TEMPLATE = VBOXR3STATIC
148vbvdbg_DEFS = UNICODE _UNICODE
149vbvdbg_SOURCES = \
150 wddm/dbg/VBoxVideoWinDbg.cpp \
151 wddm/dbg/VBoxVideoWinDbg.def
152vbvdbg_SDKS = WINDDKWLH
153
154PROGRAMS += tstMvWnd
155tstMvWnd_TEMPLATE = VBOXR3EXE
156tstMvWnd_DEFS = UNICODE _UNICODE
157tstMvWnd_SOURCES = \
158 wddm/dbg/tstMvWnd.cpp
159tstMvWnd_LIBS = \
160 $(LIB_RUNTIME)
161tstMvWnd_LDFLAGS.win = /SUBSYSTEM:windows
162endif
163
164
165include $(KBUILD_PATH)/subfooter.kmk
166
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