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 |
|
---|
18 | SUB_DEPTH = ../../../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | SYSMODS += VBoxDisp
|
---|
22 | VBoxDisp_TEMPLATE = VBOXGUESTR0
|
---|
23 | ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
|
---|
24 | VBoxDisp_NOINST = true
|
---|
25 | endif
|
---|
26 | VBoxDisp_SYSSUFF = .dll
|
---|
27 | VBoxDisp_DEFS = _WIN32_WINNT=0x0501 LOG_TO_BACKDOOR VBOX_WITH_DDRAW VBOX_WITH_OPENGL
|
---|
28 | VBoxDisp_INCS = ../../include
|
---|
29 | #VBoxDisp_DEFS += VBOX_VBVA_ADJUST_RECT
|
---|
30 | #VBoxDisp_DEFS += LOG_ENABLED
|
---|
31 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
32 | VBoxDisp_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
33 | endif
|
---|
34 | #VBoxDisp_DEFS += STAT_sunlover
|
---|
35 | VBoxDisp_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 |
|
---|
55 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
56 | VBoxDisp_SOURCES += vhwa.c
|
---|
57 | endif
|
---|
58 | VBoxDisp_LDFLAGS.x86 = /Entry:DrvEnableDriver@12
|
---|
59 | VBoxDisp_LDFLAGS.amd64 = /Entry:DrvEnableDriver
|
---|
60 | VBoxDisp_LIBS = \
|
---|
61 | $(PATH_SDK_W2K3DDK_LIB)/win32k.lib \
|
---|
62 | $(VBOX_LIB_IPRT_GUEST_R0) \
|
---|
63 | $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
|
---|
64 |
|
---|
65 | ifdef VBOX_WITH_WDDM
|
---|
66 |
|
---|
67 | #
|
---|
68 | # Please add description.
|
---|
69 | #
|
---|
70 | DLLS += VBoxDispD3D
|
---|
71 | if defined(VBOX_SIGNING_MODE)
|
---|
72 | VBoxDispD3D_NOINST = true
|
---|
73 | endif
|
---|
74 | VBoxDispD3D_TEMPLATE = VBOXGUESTR3DLL
|
---|
75 | VBoxDispD3D_DEFS = UNICODE _UNICODE VBOX_WITH_WDDM VBOXWDDMDISP LOG_TO_BACKDOOR
|
---|
76 | ifdef DEBUG_misha
|
---|
77 | VBoxDispD3D_DEFS += LOG_ENABLED
|
---|
78 | endif
|
---|
79 |
|
---|
80 | # VBoxDispD3D_DEFS += VBOXDISPMP_TEST
|
---|
81 | ifdef VBOXWDDM_WITH_VBVA
|
---|
82 | VBoxDispD3D_DEFS += VBOXWDDM_WITH_VBVA
|
---|
83 | endif
|
---|
84 |
|
---|
85 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
86 | VBoxDispD3D_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
87 | endif
|
---|
88 | ifdef VBOX_WDDMDISP_WITH_PROFILE
|
---|
89 | VBoxDispD3D_DEFS += VBOX_WDDMDISP_WITH_PROFILE
|
---|
90 | endif
|
---|
91 | ifdef VBOXWDDM_TEST_UHGSMI
|
---|
92 | VBoxDispD3D_DEFS += VBOXWDDM_TEST_UHGSMI
|
---|
93 | endif
|
---|
94 | VBoxDispD3D_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
|
---|
109 | VBoxDispD3D_LIBS = \
|
---|
110 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
111 | $(VBOX_LIB_VBGL_R3)
|
---|
112 | VBoxDispD3D_SDKS = WINDDKWLH
|
---|
113 | # VBoxDispD3D_INCS += ../Wine/include
|
---|
114 |
|
---|
115 |
|
---|
116 | #
|
---|
117 | # 64-bit systems needs a 32-bit version of VBoxDispD3D.
|
---|
118 | #
|
---|
119 | DLLS.amd64 += VBoxDispD3D-x86
|
---|
120 | VBoxDispD3D-x86_EXTENDS = VBoxDispD3D
|
---|
121 | VBoxDispD3D-x86_BLD_TRG_ARCH = x86
|
---|
122 | VBoxDispD3D-x86_LIBS = \
|
---|
123 | $(VBOX_LIB_IPRT_GUEST_R3_X86) \
|
---|
124 | $(VBOX_LIB_VBGL_R3_X86)
|
---|
125 | VBoxDispD3D-x86_DEFS = $(VBoxDispD3D_DEFS) VBOX_WDDM_WOW64
|
---|
126 | ifdef VBOX_WITH_CRHGSMI
|
---|
127 | #
|
---|
128 | # VBoxCrHgsmi - Chromium HGSMI API library
|
---|
129 | #
|
---|
130 | LIBRARIES += VBoxCrHgsmi
|
---|
131 | VBoxCrHgsmi_TEMPLATE = VBOXGUESTR3LIB
|
---|
132 | VBoxCrHgsmi_DEFS = UNICODE _UNICODE VBOX_WITH_CRHGSMI IN_VBOXCRHGSMI VBOX_WITH_WDDM VBOX_WITH_VDMA
|
---|
133 | VBoxCrHgsmi_SOURCES = \
|
---|
134 | wddm/VBoxCrHgsmi.cpp \
|
---|
135 | wddm/VBoxUhgsmiKmt.cpp
|
---|
136 | VBoxCrHgsmi_SDKS = WINDDKWLH
|
---|
137 |
|
---|
138 | ifeq ($(KBUILD_TARGET_ARCH),amd64)
|
---|
139 | LIBRARIES += VBoxCrHgsmi-x86
|
---|
140 | VBoxCrHgsmi-x86_TEMPLATE = VBOXGUESTR3LIB
|
---|
141 | VBoxCrHgsmi-x86_EXTENDS = VBoxCrHgsmi
|
---|
142 | VBoxCrHgsmi-x86_BLD_TRG_ARCH = x86
|
---|
143 | VBoxCrHgsmi-x86_DEFS = $(VBoxCrHgsmi_DEFS) VBOX_WDDM_WOW64
|
---|
144 | endif
|
---|
145 | endif
|
---|
146 | endif
|
---|
147 |
|
---|
148 | ifdef VBOXVIDEOWINDBG
|
---|
149 | DLLS += vbvdbg
|
---|
150 | vbvdbg_TEMPLATE = VBOXR3STATIC
|
---|
151 | vbvdbg_DEFS = UNICODE _UNICODE
|
---|
152 | vbvdbg_SOURCES = \
|
---|
153 | wddm/dbg/VBoxVideoWinDbg.cpp \
|
---|
154 | wddm/dbg/VBoxVideoWinDbg.def
|
---|
155 | vbvdbg_SDKS = WINDDKWLH
|
---|
156 |
|
---|
157 | PROGRAMS += tstMvWnd
|
---|
158 | tstMvWnd_TEMPLATE = VBOXR3EXE
|
---|
159 | tstMvWnd_DEFS = UNICODE _UNICODE
|
---|
160 | tstMvWnd_SOURCES = \
|
---|
161 | wddm/dbg/tstMvWnd.cpp
|
---|
162 | tstMvWnd_LIBS = \
|
---|
163 | $(LIB_RUNTIME)
|
---|
164 | tstMvWnd_LDFLAGS.win = /SUBSYSTEM:windows
|
---|
165 | endif
|
---|
166 |
|
---|
167 |
|
---|
168 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
169 |
|
---|