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