1 | # $Id: Makefile.kmk 76553 2019-01-01 01:45:53Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the Wine D3D related dlls for VirtualBox.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2009-2019 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 |
|
---|
19 | SUB_DEPTH = ../../../../../..
|
---|
20 | include $(KBUILD_PATH)/subheader.kmk
|
---|
21 |
|
---|
22 | #
|
---|
23 | # Template for building wine stuff.
|
---|
24 | #
|
---|
25 | TEMPLATE_VBoxGuestWineDLL = Template for building a wine DLL.
|
---|
26 | TEMPLATE_VBoxGuestWineDLL_EXTENDS = VBoxGuestR3Dll
|
---|
27 | TEMPLATE_VBoxGuestWineDLL_DEFS = $(TEMPLATE_VBoxGuestR3Dll_DEFS) \
|
---|
28 | __WINESRC__ \
|
---|
29 | WINE_UNICODE_API="" \
|
---|
30 | _REENTRANT \
|
---|
31 | WINE_NOWINSOCK \
|
---|
32 | USE_WIN32_OPENGL \
|
---|
33 | DLLDIR=\"\" \
|
---|
34 | BINDIR=\"\" \
|
---|
35 | LIB_TO_BINDIR=\"\" \
|
---|
36 | LIB_TO_DLLDIR=\"\" \
|
---|
37 | BIN_TO_DLLDIR=\"\" \
|
---|
38 | LIB_TO_DATADIR=\"\" \
|
---|
39 | BIN_TO_DATADIR=\"\"
|
---|
40 |
|
---|
41 | TEMPLATE_VBoxGuestWineDLL_DEFS.x86 = __i386__
|
---|
42 | # -wd4100: unreferenced format parameter
|
---|
43 | # -wd4204: nonstandard extension used : non-constant initializer
|
---|
44 | # -wd4245: '=' : conversion from 'int' to 'DWORD', signed/unsigned mismatch
|
---|
45 | # -wd4305: 'function' : truncation from 'double' to 'GLclampf'
|
---|
46 | # -wd4305: 'function' : truncation from 'double' to 'GLclampf'
|
---|
47 | # -wd4018: '>' : signed/unsigned mismatch
|
---|
48 | # -wd4389: '!=' : signed/unsigned mismatch
|
---|
49 | # -wd4221: nonstandard extension used : 'render_targets' : cannot be initialized using address of automatic variable 'dst_surface'
|
---|
50 | # -wd4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
|
---|
51 | # -wd4267: 'function' : conversion from 'size_t' to 'GLsizei', possible loss of data
|
---|
52 | TEMPLATE_VBoxGuestWineDLL_CFLAGS = $(filter-out -WX,$(TEMPLATE_VBoxGuestR3Dll_CFLAGS)) \
|
---|
53 | -wd4100 -wd4204 -wd4245 -wd4305 -wd4018 -wd4389 -wd4221 -wd4334 -wd4267
|
---|
54 | if1of ($(VBOX_VCC_TOOL_STEM), VCC120)
|
---|
55 | # -wd4005: v7.1\include\sal_supp.h(57) : warning C4005: '__useHeader' : macro redefinition
|
---|
56 | # -wd4133: swapchain.c(384) : warning C4133: 'function' : incompatible types - from 'IDirect3DSwapChain9 *' to 'IDirect3DSwapChain9Ex *'
|
---|
57 | TEMPLATE_VBoxGuestWineDLL_CFLAGS += -wd4005 -wd4133
|
---|
58 | endif
|
---|
59 | TEMPLATE_VBoxGuestWineDLL_LDFLAGS.win.x86 = $(filter-out -Section:.bss$(COMMA)RW!K,$(TEMPLATE_VBoxGuestR3Dll_LDFLAGS.win.x86))
|
---|
60 | TEMPLATE_VBoxGuestWineDLL_POST_CMDS.win.x86 = $(subst $(VBOX_PE_SET_VERSION), $(VBOX_PE_SET_VERSION) --w2k,$(TEMPLATE_VBoxGuestR3Dll_POST_CMDS.win.x86))
|
---|
61 |
|
---|
62 | #
|
---|
63 | # WDDM version of VBoxGuestWineDll.
|
---|
64 | #
|
---|
65 | TEMPLATE_VBoxGuestWineWddmDLL = WDDM version of VBoxGuestWineDLL.
|
---|
66 | TEMPLATE_VBoxGuestWineWddmDLL_EXTENDS = VBoxGuestWineDLL
|
---|
67 | TEMPLATE_VBoxGuestWineWddmDLL_POST_CMDS.win.x86 = $(subst $(VBOX_PE_SET_VERSION) --w2k, $(VBOX_PE_SET_VERSION) --vista,$(TEMPLATE_VBoxGuestWineDLL_POST_CMDS.win.x86))
|
---|
68 | TEMPLATE_VBoxGuestWineWddmDLL_POST_CMDS = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION) --vista $(out)$$(NLTAB)$(TEMPLATE_VBoxGuestWineDLL_POST_CMDS))
|
---|
69 | TEMPLATE_VBoxGuestWineWddmDLL_LNK_DEPS = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION)) $(TEMPLATE_VBoxGuestWineDLL_LNK_DEPS)
|
---|
70 |
|
---|
71 |
|
---|
72 | #
|
---|
73 | # Template for building the D3D[89] stuff.
|
---|
74 | #
|
---|
75 | TEMPLATE_VBoxGuestWineD3DxDLL = Template for building the D3D8/9 stuff.
|
---|
76 | TEMPLATE_VBoxGuestWineD3DxDLL_EXTENDS = VBoxGuestR3Dll
|
---|
77 | TEMPLATE_VBoxGuestWineD3DxDLL_SDKS = $(TEMPLATE_VBoxGuestR3Dll_SDKS) ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
|
---|
78 | TEMPLATE_VBoxGuestWineD3DxDLL_DEFS = $(TEMPLATE_VBoxGuestR3Dll_DEFS) VBOX_USING_WINDDK_W7_OR_LATER ## @todo TODO FIXME BUGBUG! THIS LINE IS NOT USED!!
|
---|
79 | TEMPLATE_VBoxGuestWineD3DxDLL_DEFS.x86 = $(TEMPLATE_VBoxGuestR3Dll_DEFS.x86) __i386__
|
---|
80 | #TEMPLATE_VBoxGuestWineD3DxDLL_INCS.x86 = $(TEMPLATE_VBoxGuestR3Dll_INCS.x86) vbox/libWineStub/include
|
---|
81 | TEMPLATE_VBoxGuestWineD3DxDLL_DEFS = $(TEMPLATE_VBoxGuestR3Dll_DEFS) VBOX_WINE_WITH_IPRT
|
---|
82 | TEMPLATE_VBoxGuestWineD3DxDLL_CFLAGS = $(TEMPLATE_VBoxGuestR3Dll_CFLAGS) -wd4100 -wd4204 -wd4245 -wd4305
|
---|
83 | if1of ($(VBOX_VCC_TOOL_STEM), VCC120)
|
---|
84 | TEMPLATE_VBoxGuestWineD3DxDLL_CFLAGS += -wd4005
|
---|
85 | endif
|
---|
86 | TEMPLATE_VBoxGuestWineD3DxDLL_LDFLAGS.win.x86 = $(filter-out -Section:.bss$(COMMA)RW!K,$(TEMPLATE_VBoxGuestR3Dll_LDFLAGS.win.x86))
|
---|
87 | TEMPLATE_VBoxGuestWineD3DxDLL_POST_CMDS.win.x86 = $(subst $(VBOX_PE_SET_VERSION), $(VBOX_PE_SET_VERSION) --w2k,$(TEMPLATE_VBoxGuestR3Dll_POST_CMDS.win.x86))
|
---|
88 | TEMPLATE_VBoxGuestWineD3DxDLL_LIBS = $(TEMPLATE_VBoxGuestR3Dll_LIBS) \
|
---|
89 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
90 | $(VBOX_LIB_VBGL_R3)
|
---|
91 |
|
---|
92 |
|
---|
93 |
|
---|
94 | if 0
|
---|
95 | #
|
---|
96 | # libWine - ???.
|
---|
97 | #
|
---|
98 | DLLS.x86 += libWine
|
---|
99 | libWine_TEMPLATE = VBoxGuestWineDLL
|
---|
100 | libWine_INCS = \
|
---|
101 | include
|
---|
102 | libWine_SOURCES := \
|
---|
103 | libWine/wine.def \
|
---|
104 | libWine/casemap.c \
|
---|
105 | libWine/collation.c \
|
---|
106 | libWine/compose.c \
|
---|
107 | libWine/config.c \
|
---|
108 | libWine/cptable.c \
|
---|
109 | libWine/debug.c \
|
---|
110 | libWine/fold.c \
|
---|
111 | libWine/ldt.c \
|
---|
112 | libWine/loader.c \
|
---|
113 | libWine/mbtowc.c \
|
---|
114 | libWine/mmap.c \
|
---|
115 | libWine/port.c \
|
---|
116 | libWine/sortkey.c \
|
---|
117 | libWine/string.c \
|
---|
118 | libWine/utf8.c \
|
---|
119 | libWine/wctomb.c \
|
---|
120 | libWine/wctype.c \
|
---|
121 | libWine/c_037.c \
|
---|
122 | libWine/c_424.c \
|
---|
123 | libWine/c_437.c \
|
---|
124 | libWine/c_500.c \
|
---|
125 | libWine/c_737.c \
|
---|
126 | libWine/c_775.c \
|
---|
127 | libWine/c_850.c \
|
---|
128 | libWine/c_852.c \
|
---|
129 | libWine/c_855.c \
|
---|
130 | libWine/c_856.c \
|
---|
131 | libWine/c_857.c \
|
---|
132 | libWine/c_860.c \
|
---|
133 | libWine/c_861.c \
|
---|
134 | libWine/c_862.c \
|
---|
135 | libWine/c_863.c \
|
---|
136 | libWine/c_864.c \
|
---|
137 | libWine/c_865.c \
|
---|
138 | libWine/c_866.c \
|
---|
139 | libWine/c_869.c \
|
---|
140 | libWine/c_874.c \
|
---|
141 | libWine/c_875.c \
|
---|
142 | libWine/c_878.c \
|
---|
143 | libWine/c_932.c \
|
---|
144 | libWine/c_936.c \
|
---|
145 | libWine/c_949.c \
|
---|
146 | libWine/c_950.c \
|
---|
147 | libWine/c_1006.c \
|
---|
148 | libWine/c_1026.c \
|
---|
149 | libWine/c_1250.c \
|
---|
150 | libWine/c_1251.c \
|
---|
151 | libWine/c_1252.c \
|
---|
152 | libWine/c_1253.c \
|
---|
153 | libWine/c_1254.c \
|
---|
154 | libWine/c_1255.c \
|
---|
155 | libWine/c_1256.c \
|
---|
156 | libWine/c_1257.c \
|
---|
157 | libWine/c_1258.c \
|
---|
158 | libWine/c_1361.c \
|
---|
159 | libWine/c_10000.c \
|
---|
160 | libWine/c_10006.c \
|
---|
161 | libWine/c_10007.c \
|
---|
162 | libWine/c_10029.c \
|
---|
163 | libWine/c_10079.c \
|
---|
164 | libWine/c_10081.c \
|
---|
165 | libWine/c_20127.c \
|
---|
166 | libWine/c_20866.c \
|
---|
167 | libWine/c_20932.c \
|
---|
168 | libWine/c_21866.c \
|
---|
169 | libWine/c_28591.c \
|
---|
170 | libWine/c_28592.c \
|
---|
171 | libWine/c_28593.c \
|
---|
172 | libWine/c_28594.c \
|
---|
173 | libWine/c_28595.c \
|
---|
174 | libWine/c_28596.c \
|
---|
175 | libWine/c_28597.c \
|
---|
176 | libWine/c_28598.c \
|
---|
177 | libWine/c_28599.c \
|
---|
178 | libWine/c_28600.c \
|
---|
179 | libWine/c_28603.c \
|
---|
180 | libWine/c_28604.c \
|
---|
181 | libWine/c_28605.c \
|
---|
182 | libWine/c_28606.c \
|
---|
183 | libWine/version.c
|
---|
184 | endif # 0
|
---|
185 |
|
---|
186 | #
|
---|
187 | # wined3d - ???.
|
---|
188 | #
|
---|
189 | DLLS += wined3d
|
---|
190 | wined3d_TEMPLATE = VBoxGuestWineDLL
|
---|
191 | wined3d_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
|
---|
192 | wined3d_DEFS = \
|
---|
193 | _USE_MATH_DEFINES \
|
---|
194 | VBOX_USING_WINDDK_W7_OR_LATER \
|
---|
195 | VBOX_WINE_WITHOUT_LIBWINE \
|
---|
196 | VBOX_WINE_WITH_SINGLE_CONTEXT \
|
---|
197 | VBOX_WINE_WITH_IPRT
|
---|
198 | # ^^^^ wined3d is now using iprt/asm.h, which includes iprt/assert.h, so iprt is required.
|
---|
199 | if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS)
|
---|
200 | wined3d_DEFS += WINE_NO_DEBUG_MSGS
|
---|
201 | endif
|
---|
202 | wined3d_DEFS += \
|
---|
203 | VBOX_WITH_WINE_FIX_IBMTMR \
|
---|
204 | VBOX_WITH_WINE_FIX_BUFOFFSET \
|
---|
205 | VBOX_WITH_WINE_FIX_QUIRKS \
|
---|
206 | VBOX_WITH_WINE_FIX_PBOPSM \
|
---|
207 | VBOX_WITH_WINE_FIX_INITCLEAR \
|
---|
208 | VBOX_WITH_WINE_FIX_TEXCLEAR \
|
---|
209 | VBOX_WITH_WINE_FIX_STRINFOBUF \
|
---|
210 | VBOX_WITH_WINE_FIX_SHADERCLEANUP \
|
---|
211 | VBOX_WITH_WINE_FIX_SURFUPDATA \
|
---|
212 | VBOX_WITH_WINE_FIX_CURVBO \
|
---|
213 | VBOX_WITH_WINE_FIX_FTOA \
|
---|
214 | VBOX_WITH_WINE_FIX_SHADER_DECL \
|
---|
215 | VBOX_WITH_WINE_DBG
|
---|
216 | #wined3d_DEFS += VBOX_WITH_WINE_FIXES
|
---|
217 | wined3d_INCS := \
|
---|
218 | vbox/libWineStub/include \
|
---|
219 | $(VBOX_GRAPHICS_INCS)
|
---|
220 | wined3d_SOURCES := \
|
---|
221 | wined3d/arb_program_shader.c \
|
---|
222 | wined3d/ati_fragment_shader.c \
|
---|
223 | wined3d/buffer.c \
|
---|
224 | wined3d/context.c \
|
---|
225 | wined3d/device.c \
|
---|
226 | wined3d/directx.c \
|
---|
227 | wined3d/drawprim.c \
|
---|
228 | wined3d/gl_compat.c \
|
---|
229 | wined3d/glsl_shader.c \
|
---|
230 | wined3d/nvidia_texture_shader.c \
|
---|
231 | wined3d/palette.c \
|
---|
232 | wined3d/query.c \
|
---|
233 | wined3d/resource.c \
|
---|
234 | wined3d/shader.c \
|
---|
235 | wined3d/shader_sm1.c \
|
---|
236 | wined3d/shader_sm4.c \
|
---|
237 | wined3d/state.c \
|
---|
238 | wined3d/stateblock.c \
|
---|
239 | wined3d/surface.c \
|
---|
240 | wined3d/swapchain.c \
|
---|
241 | wined3d/texture.c \
|
---|
242 | wined3d/utils.c \
|
---|
243 | wined3d/vertexdeclaration.c \
|
---|
244 | wined3d/view.c \
|
---|
245 | wined3d/volume.c \
|
---|
246 | wined3d/wined3d_main.c \
|
---|
247 | wined3d/vboxext.c \
|
---|
248 | wined3d/sampler.c \
|
---|
249 | vbox/libWineStub/debug.c \
|
---|
250 | vbox/VBoxDbgGl.c \
|
---|
251 | wined3d/wined3d.def \
|
---|
252 | vbox/wined3dxpdm.rc
|
---|
253 | wined3d_LIBS = \
|
---|
254 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
255 | $(VBOX_LIB_VBGL_R3) \
|
---|
256 | $(PATH_STAGE_LIB)/VBoxOGL$(VBOX_SUFF_LIB)
|
---|
257 |
|
---|
258 | ifdef VBOX_WITH_WDDM
|
---|
259 | #
|
---|
260 | # wined3dwddm - ???
|
---|
261 | #
|
---|
262 | DLLS += wined3dwddm
|
---|
263 | wined3dwddm_EXTENDS = wined3d
|
---|
264 | wined3dwddm_TEMPLATE = VBoxGuestWineWddmDLL
|
---|
265 | if defined(VBOX_SIGNING_MODE)
|
---|
266 | wined3dwddm_INSTTYPE.win = none
|
---|
267 | wined3dwddm_DEBUG_INSTTYPE.win = both
|
---|
268 | endif
|
---|
269 | wined3dwddm_DEFS = $(wined3d_DEFS) \
|
---|
270 | VBOX_WITH_WDDM \
|
---|
271 | IN_VBOXLIBWINE \
|
---|
272 | VBOX_WINE_WITH_SHADER_CACHE
|
---|
273 | ifdef VBOX_WINE_WITH_PROFILE
|
---|
274 | wined3dwddm_DEFS += VBOX_WINE_WITH_PROFILE
|
---|
275 | endif
|
---|
276 | wined3dwddm_INCS = $(wined3d_INCS) \
|
---|
277 | $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/shared \
|
---|
278 | $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm
|
---|
279 | wined3dwddm_SOURCES = $(subst wined3d.def,wined3dwddm.def,$(subst wined3dxpdm.rc,wined3dwddm.rc,$(wined3d_SOURCES)))
|
---|
280 | wined3dwddm_LIBS = $(wined3d_LIBS) \
|
---|
281 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger$(VBOX_SUFF_LIB) \
|
---|
282 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmKmt$(VBOX_SUFF_LIB) \
|
---|
283 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi$(VBOX_SUFF_LIB)
|
---|
284 |
|
---|
285 | #
|
---|
286 | # wined3dwddm-x86 - ???.
|
---|
287 | #
|
---|
288 | DLLS.amd64 += wined3dwddm-x86
|
---|
289 | wined3dwddm-x86_EXTENDS = wined3dwddm
|
---|
290 | wined3dwddm-x86_BLD_TRG_ARCH = x86
|
---|
291 | wined3dwddm-x86_DEFS = $(wined3dwddm_DEFS) VBOX_WDDM_WOW64
|
---|
292 | wined3dwddm-x86_LIBS = \
|
---|
293 | $(VBOX_LIB_IPRT_GUEST_R3_X86) \
|
---|
294 | $(VBOX_LIB_VBGL_R3_X86) \
|
---|
295 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger-x86$(VBOX_SUFF_LIB) \
|
---|
296 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmKmt-x86$(VBOX_SUFF_LIB) \
|
---|
297 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi-x86$(VBOX_SUFF_LIB) \
|
---|
298 | $(PATH_STAGE_LIB)/VBoxOGL-x86$(VBOX_SUFF_LIB)
|
---|
299 | endif # ifdef VBOX_WITH_WDDM
|
---|
300 |
|
---|
301 | #
|
---|
302 | # VBoxD3D8 - ???.
|
---|
303 | #
|
---|
304 | DLLS += VBoxD3D8
|
---|
305 | VBoxD3D8_TEMPLATE = VBoxGuestWineDLL
|
---|
306 | VBoxD3D8_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
|
---|
307 | VBoxD3D8_DEFS = _USE_MATH_DEFINES \
|
---|
308 | VBOX_USING_WINDDK \
|
---|
309 | VBOX_WINE_WITHOUT_LIBWINE
|
---|
310 | if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS)
|
---|
311 | VBoxD3D8_DEFS += WINE_NO_DEBUG_MSGS
|
---|
312 | endif
|
---|
313 | VBoxD3D8_INCS := \
|
---|
314 | vbox/libWineStub/include
|
---|
315 | VBoxD3D8_SOURCES := \
|
---|
316 | d3d8/d3d8_main.c \
|
---|
317 | d3d8/buffer.c \
|
---|
318 | d3d8/device.c \
|
---|
319 | d3d8/directx.c \
|
---|
320 | d3d8/shader.c \
|
---|
321 | d3d8/surface.c \
|
---|
322 | d3d8/swapchain.c \
|
---|
323 | d3d8/texture.c \
|
---|
324 | d3d8/vertexdeclaration.c \
|
---|
325 | d3d8/volume.c \
|
---|
326 | vbox/libWineStub/debug.c \
|
---|
327 | d3d8/d3d8.def \
|
---|
328 | vbox/d3d8.rc
|
---|
329 | VBoxD3D8_LIBS = \
|
---|
330 | $(PATH_STAGE_LIB)/wined3d$(VBOX_SUFF_LIB)
|
---|
331 | VBoxD3D8_DEFS += VBOX_WINE_WITH_IPRT
|
---|
332 | VBoxD3D8_LIBS += \
|
---|
333 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
334 | $(VBOX_LIB_VBGL_R3)
|
---|
335 |
|
---|
336 | #
|
---|
337 | # VBoxD3D9 - ???.
|
---|
338 | #
|
---|
339 | DLLS += VBoxD3D9
|
---|
340 | VBoxD3D9_TEMPLATE = VBoxGuestWineDLL
|
---|
341 | VBoxD3D9_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
|
---|
342 | VBoxD3D9_DEFS = _USE_MATH_DEFINES \
|
---|
343 | VBOX_USING_WINDDK \
|
---|
344 | VBOX_WINE_WITHOUT_LIBWINE
|
---|
345 | if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS)
|
---|
346 | VBoxD3D9_DEFS += WINE_NO_DEBUG_MSGS
|
---|
347 | endif
|
---|
348 | #@todo: do we actually need this?
|
---|
349 | #VBoxD3D9_DEFS += VBOX_WITH_WINE_FIX_NO9EX
|
---|
350 | VBoxD3D9_INCS := \
|
---|
351 | vbox/libWineStub/include
|
---|
352 | VBoxD3D9_SOURCES := \
|
---|
353 | d3d9/d3d9_main.c \
|
---|
354 | d3d9/buffer.c \
|
---|
355 | d3d9/device.c \
|
---|
356 | d3d9/directx.c \
|
---|
357 | d3d9/query.c \
|
---|
358 | d3d9/shader.c \
|
---|
359 | d3d9/stateblock.c \
|
---|
360 | d3d9/surface.c \
|
---|
361 | d3d9/swapchain.c \
|
---|
362 | d3d9/texture.c \
|
---|
363 | d3d9/vertexdeclaration.c \
|
---|
364 | d3d9/volume.c \
|
---|
365 | vbox/libWineStub/debug.c \
|
---|
366 | d3d9/d3d9xpdm.def \
|
---|
367 | vbox/d3d9xpdm.rc
|
---|
368 | VBoxD3D9_SOURCES.amd64 = d3d9/vboxport.asm
|
---|
369 | VBoxD3D9_LIBS = \
|
---|
370 | $(PATH_STAGE_LIB)/wined3d$(VBOX_SUFF_LIB)
|
---|
371 | VBoxD3D9_DEFS += VBOX_WINE_WITH_IPRT
|
---|
372 | VBoxD3D9_LIBS += \
|
---|
373 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
374 | $(VBOX_LIB_VBGL_R3)
|
---|
375 |
|
---|
376 | ifdef VBOX_WITH_WDDM
|
---|
377 | #
|
---|
378 | # VBoxD3D9wddm - ???.
|
---|
379 | #
|
---|
380 | DLLS += VBoxD3D9wddm
|
---|
381 | VBoxD3D9wddm_EXTENDS = VBoxD3D9
|
---|
382 | VBoxD3D9wddm_TEMPLATE = VBoxGuestWineWddmDLL
|
---|
383 | if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
|
---|
384 | VBoxD3D9wddm_INSTTYPE = none
|
---|
385 | VBoxD3D9wddm_DEBUG_INSTTYPE = both
|
---|
386 | endif
|
---|
387 | VBoxD3D9wddm_INCS = $(VBoxD3D9_INCS) \
|
---|
388 | $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/shared \
|
---|
389 | $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm
|
---|
390 | VBoxD3D9wddm_DEFS += $(VBoxD3D9_DEFS) \
|
---|
391 | VBOX_WITH_WDDM \
|
---|
392 | IN_VBOXWINEEX \
|
---|
393 | VBOX_WINE_NO_LOCK
|
---|
394 | VBoxD3D9wddm_SOURCES = $(subst d3d9xpdm.def,d3d9wddm.def,$(subst d3d9xpdm.rc,d3d9wddm.rc,$(VBoxD3D9_SOURCES)))
|
---|
395 | VBoxD3D9wddm_LIBS = \
|
---|
396 | $(subst $(PATH_STAGE_LIB)/wined3d$(VBOX_SUFF_LIB),$(PATH_STAGE_LIB)/wined3dwddm$(VBOX_SUFF_LIB),$(VBoxD3D9_LIBS)) \
|
---|
397 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger$(VBOX_SUFF_LIB) \
|
---|
398 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmKmt$(VBOX_SUFF_LIB) \
|
---|
399 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi$(VBOX_SUFF_LIB)
|
---|
400 |
|
---|
401 | #
|
---|
402 | # VBoxD3D9wddm-x86 - For WOW64.
|
---|
403 | #
|
---|
404 | DLLS.amd64 += VBoxD3D9wddm-x86
|
---|
405 | VBoxD3D9wddm-x86_EXTENDS = VBoxD3D9wddm
|
---|
406 | VBoxD3D9wddm-x86_BLD_TRG_ARCH = x86
|
---|
407 | VBoxD3D9wddm-x86_DEFS = $(VBoxD3D9wddm_DEFS) VBOX_WDDM_WOW64
|
---|
408 | VBoxD3D9wddm-x86_LIBS = $(PATH_STAGE_LIB)/wined3dwddm-x86$(VBOX_SUFF_LIB)
|
---|
409 | VBoxD3D9wddm-x86_LIBS += \
|
---|
410 | $(VBOX_LIB_IPRT_GUEST_R3_X86) \
|
---|
411 | $(VBOX_LIB_VBGL_R3_X86)
|
---|
412 | VBoxD3D9wddm-x86_LIBS += \
|
---|
413 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger-x86$(VBOX_SUFF_LIB) \
|
---|
414 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmKmt-x86$(VBOX_SUFF_LIB) \
|
---|
415 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi-x86$(VBOX_SUFF_LIB)
|
---|
416 | endif # VBOX_WITH_WDDM
|
---|
417 |
|
---|
418 | #
|
---|
419 | # d3d8 - ???.
|
---|
420 | #
|
---|
421 | DLLS += d3d8
|
---|
422 | d3d8_TEMPLATE = VBoxGuestWineD3DxDLL
|
---|
423 | d3d8_SOURCES = \
|
---|
424 | switcher/d3d8_main.c \
|
---|
425 | switcher/sw_common.c \
|
---|
426 | switcher/sw_d3d8.def \
|
---|
427 | switcher/d3d8.rc
|
---|
428 |
|
---|
429 | #
|
---|
430 | # d3d9 - ???.
|
---|
431 | #
|
---|
432 | DLLS += d3d9
|
---|
433 | d3d9_TEMPLATE = VBoxGuestWineD3DxDLL
|
---|
434 | d3d9_SOURCES = \
|
---|
435 | switcher/d3d9_main.c \
|
---|
436 | switcher/sw_common.c \
|
---|
437 | switcher/d3d9.rc
|
---|
438 | d3d9_SOURCES.x86 = \
|
---|
439 | switcher/sw_d3d9.def
|
---|
440 | d3d9_SOURCES.amd64 = \
|
---|
441 | switcher/sw_d3d9xpdm.def
|
---|
442 |
|
---|
443 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|