VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/Makefile.kmk@ 52329

Last change on this file since 52329 was 51313, checked in by vboxsync, 11 years ago

crOpenGL: bugfixes and work-arounds for wine issues

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 10.3 KB
Line 
1# $Id: Makefile.kmk 51313 2014-05-20 19:12:20Z vboxsync $
2## @file
3# Makefile for the Wine D3D related dlls for VirtualBox.
4#
5
6#
7# Copyright (C) 2009-2012 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
19SUB_DEPTH = ../../../../../..
20include $(KBUILD_PATH)/subheader.kmk
21
22#
23# Template for building wine stuff.
24#
25TEMPLATE_VBoxGuestWineDLL = Template for building a wine DLL.
26TEMPLATE_VBoxGuestWineDLL_EXTENDS = VBOXGUESTR3NPDLL
27TEMPLATE_VBoxGuestWineDLL_DEFS = $(TEMPLATE_VBOXGUESTR3NPDLL_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
41TEMPLATE_VBoxGuestWineDLL_DEFS.x86 = __i386__
42
43#
44# Template for building the D3D[89] stuff.
45#
46TEMPLATE_VBoxGuestWineD3DxDLL = Template for building the D3D8/9 stuff.
47TEMPLATE_VBoxGuestWineD3DxDLL_EXTENDS = VBOXGUESTR3NPDLL
48TEMPLATE_VBoxGuestWineD3DxDLL_EXTENDS_BY = appending
49TEMPLATE_VBoxGuestWineD3DxDLL_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
50TEMPLATE_VBoxGuestWineD3DxDLL_DEFS = VBOX_USING_WINDDK_W7_OR_LATER
51TEMPLATE_VBoxGuestWineD3DxDLL_DEFS.x86 = __i386__
52#TEMPLATE_VBoxGuestWineD3DxDLL_INCS.x86 = vbox/libWineStub/include
53TEMPLATE_VBoxGuestWineD3DxDLL_DEFS = VBOX_WINE_WITH_IPRT
54TEMPLATE_VBoxGuestWineD3DxDLL_LIBS = \
55 $(VBOX_LIB_IPRT_GUEST_R3) \
56 $(VBOX_LIB_VBGL_R3)
57
58
59if 0
60#
61# libWine - ???.
62#
63DLLS.x86 += libWine
64libWine_TEMPLATE = VBoxGuestWineDLL
65libWine_INCS = \
66 include
67libWine_SOURCES := \
68 libWine/wine.def \
69 libWine/casemap.c \
70 libWine/collation.c \
71 libWine/compose.c \
72 libWine/config.c \
73 libWine/cptable.c \
74 libWine/debug.c \
75 libWine/fold.c \
76 libWine/ldt.c \
77 libWine/loader.c \
78 libWine/mbtowc.c \
79 libWine/mmap.c \
80 libWine/port.c \
81 libWine/sortkey.c \
82 libWine/string.c \
83 libWine/utf8.c \
84 libWine/wctomb.c \
85 libWine/wctype.c \
86 libWine/c_037.c \
87 libWine/c_424.c \
88 libWine/c_437.c \
89 libWine/c_500.c \
90 libWine/c_737.c \
91 libWine/c_775.c \
92 libWine/c_850.c \
93 libWine/c_852.c \
94 libWine/c_855.c \
95 libWine/c_856.c \
96 libWine/c_857.c \
97 libWine/c_860.c \
98 libWine/c_861.c \
99 libWine/c_862.c \
100 libWine/c_863.c \
101 libWine/c_864.c \
102 libWine/c_865.c \
103 libWine/c_866.c \
104 libWine/c_869.c \
105 libWine/c_874.c \
106 libWine/c_875.c \
107 libWine/c_878.c \
108 libWine/c_932.c \
109 libWine/c_936.c \
110 libWine/c_949.c \
111 libWine/c_950.c \
112 libWine/c_1006.c \
113 libWine/c_1026.c \
114 libWine/c_1250.c \
115 libWine/c_1251.c \
116 libWine/c_1252.c \
117 libWine/c_1253.c \
118 libWine/c_1254.c \
119 libWine/c_1255.c \
120 libWine/c_1256.c \
121 libWine/c_1257.c \
122 libWine/c_1258.c \
123 libWine/c_1361.c \
124 libWine/c_10000.c \
125 libWine/c_10006.c \
126 libWine/c_10007.c \
127 libWine/c_10029.c \
128 libWine/c_10079.c \
129 libWine/c_10081.c \
130 libWine/c_20127.c \
131 libWine/c_20866.c \
132 libWine/c_20932.c \
133 libWine/c_21866.c \
134 libWine/c_28591.c \
135 libWine/c_28592.c \
136 libWine/c_28593.c \
137 libWine/c_28594.c \
138 libWine/c_28595.c \
139 libWine/c_28596.c \
140 libWine/c_28597.c \
141 libWine/c_28598.c \
142 libWine/c_28599.c \
143 libWine/c_28600.c \
144 libWine/c_28603.c \
145 libWine/c_28604.c \
146 libWine/c_28605.c \
147 libWine/c_28606.c \
148 libWine/version.c
149endif # 0
150
151#
152# wined3d - ???.
153#
154DLLS += wined3d
155wined3d_TEMPLATE = VBoxGuestWineDLL
156wined3d_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
157wined3d_DEFS = \
158 _USE_MATH_DEFINES \
159 VBOX_USING_WINDDK_W7_OR_LATER \
160 VBOX_WINE_WITHOUT_LIBWINE \
161 VBOX_WINE_WITH_SINGLE_CONTEXT \
162 VBOX_WINE_WITH_IPRT
163# ^^^^ wined3d is now using iprt/asm.h, which includes iprt/assert.h, so iprt is required.
164if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS)
165 wined3d_DEFS += WINE_NO_DEBUG_MSGS
166endif
167wined3d_DEFS += \
168 VBOX_WITH_WINE_FIX_IBMTMR \
169 VBOX_WITH_WINE_FIX_BUFOFFSET \
170 VBOX_WITH_WINE_FIX_QUIRKS \
171 VBOX_WITH_WINE_FIX_PBOPSM \
172 VBOX_WITH_WINE_FIX_INITCLEAR \
173 VBOX_WITH_WINE_FIX_TEXCLEAR \
174 VBOX_WITH_WINE_FIX_STRINFOBUF \
175 VBOX_WITH_WINE_FIX_SHADERCLEANUP \
176 VBOX_WITH_WINE_FIX_SURFUPDATA \
177 VBOX_WITH_WINE_FIX_CURVBO \
178 VBOX_WITH_WINE_FIX_FTOA \
179 VBOX_WITH_WINE_DBG
180#wined3d_DEFS += VBOX_WITH_WINE_FIXES
181wined3d_INCS := \
182 vbox/libWineStub/include
183wined3d_SOURCES := \
184 wined3d/arb_program_shader.c \
185 wined3d/ati_fragment_shader.c \
186 wined3d/buffer.c \
187 wined3d/context.c \
188 wined3d/device.c \
189 wined3d/directx.c \
190 wined3d/drawprim.c \
191 wined3d/gl_compat.c \
192 wined3d/glsl_shader.c \
193 wined3d/nvidia_texture_shader.c \
194 wined3d/palette.c \
195 wined3d/query.c \
196 wined3d/resource.c \
197 wined3d/shader.c \
198 wined3d/shader_sm1.c \
199 wined3d/shader_sm4.c \
200 wined3d/state.c \
201 wined3d/stateblock.c \
202 wined3d/surface.c \
203 wined3d/swapchain.c \
204 wined3d/texture.c \
205 wined3d/utils.c \
206 wined3d/vertexdeclaration.c \
207 wined3d/view.c \
208 wined3d/volume.c \
209 wined3d/wined3d_main.c \
210 wined3d/vboxext.c \
211 wined3d/sampler.c \
212 vbox/libWineStub/debug.c \
213 vbox/VBoxDbgGl.c \
214 wined3d/wined3d.def
215wined3d_LIBS = \
216 $(VBOX_LIB_IPRT_GUEST_R3) \
217 $(VBOX_LIB_VBGL_R3) \
218 $(PATH_STAGE_LIB)/VBoxOGL$(VBOX_SUFF_LIB)
219
220ifdef VBOX_WITH_WDDM
221 #
222 # wined3dwddm - ???
223 #
224 DLLS += wined3dwddm
225 wined3dwddm_EXTENDS = wined3d
226 if defined(VBOX_SIGNING_MODE)
227 wined3dwddm_INSTTYPE.win = none
228 wined3dwddm_DEBUG_INSTTYPE.win = both
229 endif
230 wined3dwddm_DEFS = $(wined3d_DEFS) \
231 VBOX_WITH_WDDM \
232 IN_VBOXLIBWINE \
233 VBOX_WINE_WITH_SHADER_CACHE
234ifdef VBOX_WINE_WITH_PROFILE
235 wined3dwddm_DEFS += VBOX_WINE_WITH_PROFILE
236endif
237 wined3dwddm_INCS = $(wined3d_INCS) \
238 $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm
239 wined3dwddm_SOURCES = $(subst wined3d.def,wined3dwddm.def,$(wined3d_SOURCES))
240 wined3dwddm_LIBS = $(wined3d_LIBS) \
241 $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger$(VBOX_SUFF_LIB) \
242 $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi$(VBOX_SUFF_LIB)
243
244 #
245 # wined3dwddm-x86 - ???.
246 #
247 DLLS.amd64 += wined3dwddm-x86
248 wined3dwddm-x86_EXTENDS = wined3dwddm
249 wined3dwddm-x86_BLD_TRG_ARCH = x86
250 wined3dwddm-x86_DEFS = $(wined3dwddm_DEFS) VBOX_WDDM_WOW64
251 wined3dwddm-x86_LIBS = \
252 $(VBOX_LIB_IPRT_GUEST_R3_X86) \
253 $(VBOX_LIB_VBGL_R3_X86) \
254 $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger-x86$(VBOX_SUFF_LIB) \
255 $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi-x86$(VBOX_SUFF_LIB) \
256 $(PATH_STAGE_LIB)/VBoxOGL-x86$(VBOX_SUFF_LIB)
257endif # ifdef VBOX_WITH_WDDM
258
259#
260# VBoxD3D8 - ???.
261#
262DLLS += VBoxD3D8
263VBoxD3D8_TEMPLATE = VBoxGuestWineDLL
264VBoxD3D8_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
265VBoxD3D8_DEFS = _USE_MATH_DEFINES \
266 VBOX_USING_WINDDK \
267 VBOX_WINE_WITHOUT_LIBWINE
268if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS)
269 VBoxD3D8_DEFS += WINE_NO_DEBUG_MSGS
270endif
271VBoxD3D8_INCS := \
272 vbox/libWineStub/include
273VBoxD3D8_SOURCES := \
274 d3d8/d3d8_main.c \
275 d3d8/buffer.c \
276 d3d8/device.c \
277 d3d8/directx.c \
278 d3d8/shader.c \
279 d3d8/surface.c \
280 d3d8/swapchain.c \
281 d3d8/texture.c \
282 d3d8/vertexdeclaration.c \
283 d3d8/volume.c \
284 vbox/libWineStub/debug.c \
285 d3d8/d3d8.def
286VBoxD3D8_LIBS = \
287 $(PATH_STAGE_LIB)/wined3d$(VBOX_SUFF_LIB)
288VBoxD3D8_DEFS += VBOX_WINE_WITH_IPRT
289VBoxD3D8_LIBS += \
290 $(VBOX_LIB_IPRT_GUEST_R3) \
291 $(VBOX_LIB_VBGL_R3)
292
293#
294# VBoxD3D9 - ???.
295#
296DLLS += VBoxD3D9
297VBoxD3D9_TEMPLATE = VBoxGuestWineDLL
298VBoxD3D9_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
299VBoxD3D9_DEFS = _USE_MATH_DEFINES \
300 VBOX_USING_WINDDK \
301 VBOX_WINE_WITHOUT_LIBWINE
302if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS)
303 VBoxD3D9_DEFS += WINE_NO_DEBUG_MSGS
304endif
305#@todo: do we actually need this?
306#VBoxD3D9_DEFS += VBOX_WITH_WINE_FIX_NO9EX
307VBoxD3D9_INCS := \
308 vbox/libWineStub/include
309VBoxD3D9_SOURCES := \
310 d3d9/d3d9_main.c \
311 d3d9/buffer.c \
312 d3d9/device.c \
313 d3d9/directx.c \
314 d3d9/query.c \
315 d3d9/shader.c \
316 d3d9/stateblock.c \
317 d3d9/surface.c \
318 d3d9/swapchain.c \
319 d3d9/texture.c \
320 d3d9/vertexdeclaration.c \
321 d3d9/volume.c \
322 vbox/libWineStub/debug.c \
323 d3d9/d3d9xpdm.def
324VBoxD3D9_SOURCES.amd64 = d3d9/vboxport.asm
325VBoxD3D9_LIBS = \
326 $(PATH_STAGE_LIB)/wined3d$(VBOX_SUFF_LIB)
327VBoxD3D9_DEFS += VBOX_WINE_WITH_IPRT
328VBoxD3D9_LIBS += \
329 $(VBOX_LIB_IPRT_GUEST_R3) \
330 $(VBOX_LIB_VBGL_R3)
331
332ifdef VBOX_WITH_WDDM
333 #
334 # VBoxD3D9wddm - ???.
335 #
336 DLLS += VBoxD3D9wddm
337 VBoxD3D9wddm_EXTENDS = VBoxD3D9
338 if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
339 VBoxD3D9wddm_INSTTYPE = none
340 VBoxD3D9wddm_DEBUG_INSTTYPE = both
341 endif
342 VBoxD3D9wddm_INCS = $(VBoxD3D9_INCS) \
343 $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm
344 VBoxD3D9wddm_DEFS += $(VBoxD3D9_DEFS) \
345 VBOX_WITH_WDDM \
346 IN_VBOXWINEEX \
347 VBOX_WINE_NO_LOCK
348 VBoxD3D9wddm_SOURCES = $(subst d3d9xpdm.def,d3d9wddm.def,$(VBoxD3D9_SOURCES))
349 VBoxD3D9wddm_LIBS = \
350 $(subst $(PATH_STAGE_LIB)/wined3d$(VBOX_SUFF_LIB),$(PATH_STAGE_LIB)/wined3dwddm$(VBOX_SUFF_LIB),$(VBoxD3D9_LIBS)) \
351 $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger$(VBOX_SUFF_LIB) \
352 $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi$(VBOX_SUFF_LIB)
353
354 #
355 # VBoxD3D9wddm-x86 - For WOW64.
356 #
357 DLLS.amd64 += VBoxD3D9wddm-x86
358 VBoxD3D9wddm-x86_EXTENDS = VBoxD3D9wddm
359 VBoxD3D9wddm-x86_BLD_TRG_ARCH = x86
360 VBoxD3D9wddm-x86_DEFS = $(VBoxD3D9wddm_DEFS) VBOX_WDDM_WOW64
361 VBoxD3D9wddm-x86_LIBS = $(PATH_STAGE_LIB)/wined3dwddm-x86$(VBOX_SUFF_LIB)
362 VBoxD3D9wddm-x86_LIBS += \
363 $(VBOX_LIB_IPRT_GUEST_R3_X86) \
364 $(VBOX_LIB_VBGL_R3_X86)
365 VBoxD3D9wddm-x86_LIBS += \
366 $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger-x86$(VBOX_SUFF_LIB) \
367 $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi-x86$(VBOX_SUFF_LIB)
368endif # VBOX_WITH_WDDM
369
370#
371# d3d8 - ???.
372#
373DLLS += d3d8
374d3d8_TEMPLATE = VBoxGuestWineD3DxDLL
375d3d8_SOURCES = \
376 switcher/d3d8_main.c \
377 switcher/sw_common.c \
378 switcher/sw_d3d8.def \
379 switcher/d3d8.rc
380
381#
382# d3d9 - ???.
383#
384DLLS += d3d9
385d3d9_TEMPLATE = VBoxGuestWineD3DxDLL
386d3d9_SOURCES = \
387 switcher/d3d9_main.c \
388 switcher/sw_common.c \
389 switcher/d3d9.rc
390d3d9_SOURCES.x86 = \
391 switcher/sw_d3d9.def
392d3d9_SOURCES.amd64 = \
393 switcher/sw_d3d9xpdm.def
394
395include $(FILE_KBUILD_SUB_FOOTER)
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