VirtualBox

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

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

Additions/WINNT/Graphics and Additions/common/VBoxVideo: move the base VBVA support functions into the common driver code

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 KB
Line 
1# $Id: Makefile.kmk 34440 2010-11-28 22:12:07Z 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 color.c \
37 debug.c \
38 enable.c \
39 palette.c \
40 pointer.c \
41 screen.c \
42 drv.c \
43 dd.c \
44 vbva.c \
45 vrdp.c \
46 vrdpbmp.c \
47 vrdptext.c \
48 vbox.c \
49 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \
50 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/VBVABase.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 ifeq ($(KBUILD_TARGET_ARCH), amd64)
67 $(warning VBoxVideoD3D: make it 32bit for 64bit builds)
68 endif
69
70DLLS += VBoxDispD3D
71 if defined(VBOX_SIGNING_MODE)
72VBoxDispD3D_NOINST = true
73 endif
74VBoxDispD3D_TEMPLATE = VBOXGUESTR3DLL
75VBoxDispD3D_DEFS = UNICODE _UNICODE VBOX_WITH_WDDM VBOXWDDMDISP
76# VBoxDispD3D_DEFS += VBOXDISPMP_TEST
77ifdef VBOXWDDM_WITH_VBVA
78VBoxDispD3D_DEFS += VBOXWDDM_WITH_VBVA
79endif
80
81ifdef VBOX_WITH_VIDEOHWACCEL
82 VBoxDispD3D_DEFS += VBOX_WITH_VIDEOHWACCEL
83endif
84ifdef VBOX_WDDMDISP_WITH_PROFILE
85 VBoxDispD3D_DEFS += VBOX_WDDMDISP_WITH_PROFILE
86endif
87ifdef VBOXWDDM_TEST_UHGSMI
88 VBoxDispD3D_DEFS += VBOXWDDM_TEST_UHGSMI
89endif
90VBoxDispD3D_SOURCES = \
91 wddm/VBoxDispD3D.cpp \
92 wddm/VBoxDispD3DIf.cpp \
93 wddm/VBoxDispCm.cpp \
94 wddm/VBoxDispMp.cpp \
95 wddm/VBoxScreen.cpp \
96 wddm/VBoxDispMpTst.cpp \
97 wddm/VBoxDispD3D.def \
98 wddm/VBoxDispD3D.rc
99#ifdef VBOX_WITH_CRHGSMI
100#VBoxDispD3D_SOURCES += \
101# wddm/VBoxUhgsmiDisp.cpp \
102# wddm/VBoxUhgsmiKmt.cpp
103#VBoxDispD3D_DEFS += VBOX_WITH_CRHGSMI
104#endif
105VBoxDispD3D_LIBS = \
106 $(VBOX_LIB_IPRT_GUEST_R3) \
107 $(VBOX_LIB_VBGL_R3)
108VBoxDispD3D_SDKS = WINDDKWLH
109# VBoxDispD3D_INCS += ../Wine/include
110
111 ifeq ($(KBUILD_TARGET_ARCH), amd64)
112DLLS += VBoxDispD3D64
113VBoxDispD3D64_EXTENDS = VBoxDispD3D
114VBoxDispD3D64_SOURCES = $(subst VBoxDispD3D.def,VBoxDispD3D64.def,$(VBoxDispD3D_SOURCES))
115 endif
116endif
117
118ifdef VBOX_WITH_CRHGSMI
119#
120# VBoxCrHgsmi
121#
122LIBRARIES += VBoxCrHgsmi
123VBoxCrHgsmi_TEMPLATE = VBOXGUESTR3LIB
124VBoxCrHgsmi_DEFS = UNICODE _UNICODE VBOX_WITH_CRHGSMI IN_VBOXCRHGSMI VBOX_WITH_WDDM VBOX_WITH_VDMA
125VBoxCrHgsmi_SOURCES = \
126 wddm/VBoxCrHgsmi.cpp \
127 wddm/VBoxUhgsmiKmt.cpp
128VBoxCrHgsmi_SDKS = WINDDKWLH
129endif
130
131ifdef VBOXVIDEOWINDBG
132DLLS += vbvdbg
133vbvdbg_TEMPLATE = VBOXR3STATIC
134vbvdbg_DEFS = UNICODE _UNICODE
135vbvdbg_SOURCES = \
136 wddm/dbg/VBoxVideoWinDbg.cpp \
137 wddm/dbg/VBoxVideoWinDbg.def
138vbvdbg_SDKS = WINDDKWLH
139
140PROGRAMS += tstMvWnd
141tstMvWnd_TEMPLATE = VBOXR3EXE
142tstMvWnd_DEFS = UNICODE _UNICODE
143tstMvWnd_SOURCES = \
144 wddm/dbg/tstMvWnd.cpp
145tstMvWnd_LIBS = \
146 $(LIB_RUNTIME)
147tstMvWnd_LDFLAGS.win = /SUBSYSTEM:windows
148endif
149
150
151include $(KBUILD_PATH)/subfooter.kmk
152
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