VirtualBox

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

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

build fix try

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.4 KB
Line 
1# $Id: Makefile.kmk 35327 2010-12-24 17:09:26Z 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 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp \
52 VBoxDisp.def \
53 VBoxDisp.rc
54
55ifdef VBOX_WITH_VIDEOHWACCEL
56VBoxDisp_SOURCES += vhwa.c
57endif
58VBoxDisp_LDFLAGS.x86 = /Entry:DrvEnableDriver@12
59VBoxDisp_LDFLAGS.amd64 = /Entry:DrvEnableDriver
60VBoxDisp_LIBS = \
61 $(PATH_SDK_W2K3DDK_LIB)/win32k.lib \
62 $(VBOX_LIB_IPRT_GUEST_R0) \
63 $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
64
65ifdef VBOX_WITH_WDDM
66
67#
68# Please add description.
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 LOG_TO_BACKDOOR
76ifdef DEBUG_misha
77VBoxDispD3D_DEFS += LOG_ENABLED
78endif
79
80# VBoxDispD3D_DEFS += VBOXDISPMP_TEST
81ifdef VBOXWDDM_WITH_VBVA
82VBoxDispD3D_DEFS += VBOXWDDM_WITH_VBVA
83endif
84
85ifdef VBOX_WITH_VIDEOHWACCEL
86 VBoxDispD3D_DEFS += VBOX_WITH_VIDEOHWACCEL
87endif
88ifdef VBOX_WDDMDISP_WITH_PROFILE
89 VBoxDispD3D_DEFS += VBOX_WDDMDISP_WITH_PROFILE
90endif
91ifdef VBOXWDDM_TEST_UHGSMI
92 VBoxDispD3D_DEFS += VBOXWDDM_TEST_UHGSMI
93endif
94VBoxDispD3D_SOURCES = \
95 wddm/VBoxDispD3D.cpp \
96 wddm/VBoxDispD3DIf.cpp \
97 wddm/VBoxDispCm.cpp \
98 wddm/VBoxDispMp.cpp \
99 wddm/VBoxScreen.cpp \
100 wddm/VBoxDispMpTst.cpp \
101 wddm/VBoxDispD3D.rc \
102 wddm/VBoxDispD3D.def
103#ifdef VBOX_WITH_CRHGSMI
104#VBoxDispD3D_SOURCES += \
105# wddm/VBoxUhgsmiDisp.cpp \
106# wddm/VBoxUhgsmiKmt.cpp
107#VBoxDispD3D_DEFS += VBOX_WITH_CRHGSMI
108#endif
109VBoxDispD3D_LIBS = \
110 $(VBOX_LIB_IPRT_GUEST_R3) \
111 $(VBOX_LIB_VBGL_R3)
112VBoxDispD3D_SDKS = WINDDKWLH
113# VBoxDispD3D_INCS += ../Wine/include
114
115
116#
117# 64-bit systems needs a 32-bit version of VBoxDispD3D.
118#
119DLLS.amd64 += VBoxDispD3D-x86
120VBoxDispD3D-x86_EXTENDS = VBoxDispD3D
121VBoxDispD3D-x86_BLD_TRG_ARCH = x86
122VBoxDispD3D-x86_LIBS = \
123 $(VBOX_LIB_IPRT_GUEST_R3_X86) \
124 $(VBOX_LIB_VBGL_R3_X86)
125VBoxDispD3D-x86_DEFS = $(VBoxDispD3D_DEFS) VBOX_WDDM_WOW64
126 ifdef VBOX_WITH_CRHGSMI
127#
128# VBoxCrHgsmi - Chromium HGSMI API library
129#
130LIBRARIES += VBoxCrHgsmi
131VBoxCrHgsmi_TEMPLATE = VBOXGUESTR3LIB
132VBoxCrHgsmi_DEFS = UNICODE _UNICODE VBOX_WITH_CRHGSMI IN_VBOXCRHGSMI VBOX_WITH_WDDM VBOX_WITH_VDMA
133VBoxCrHgsmi_SOURCES = \
134 wddm/VBoxCrHgsmi.cpp \
135 wddm/VBoxUhgsmiKmt.cpp
136VBoxCrHgsmi_SDKS = WINDDKWLH
137
138 ifeq ($(KBUILD_TARGET_ARCH),amd64)
139LIBRARIES += VBoxCrHgsmi-x86
140VBoxCrHgsmi-x86_TEMPLATE = VBOXGUESTR3LIB
141VBoxCrHgsmi-x86_EXTENDS = VBoxCrHgsmi
142VBoxCrHgsmi-x86_BLD_TRG_ARCH = x86
143VBoxCrHgsmi-x86_DEFS = $(VBoxCrHgsmi_DEFS) VBOX_WDDM_WOW64
144 endif
145 endif
146endif
147
148ifdef VBOXVIDEOWINDBG
149DLLS += vbvdbg
150vbvdbg_TEMPLATE = VBOXR3STATIC
151vbvdbg_DEFS = UNICODE _UNICODE
152vbvdbg_SOURCES = \
153 wddm/dbg/VBoxVideoWinDbg.cpp \
154 wddm/dbg/VBoxVideoWinDbg.def
155vbvdbg_SDKS = WINDDKWLH
156
157PROGRAMS += tstMvWnd
158tstMvWnd_TEMPLATE = VBOXR3EXE
159tstMvWnd_DEFS = UNICODE _UNICODE
160tstMvWnd_SOURCES = \
161 wddm/dbg/tstMvWnd.cpp
162tstMvWnd_LIBS = \
163 $(LIB_RUNTIME)
164tstMvWnd_LDFLAGS.win = /SUBSYSTEM:windows
165endif
166
167
168include $(KBUILD_PATH)/subfooter.kmk
169
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