VirtualBox

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

Last change on this file since 46529 was 46529, checked in by vboxsync, 12 years ago

wine/new: yet another burn fix

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 10.0 KB
Line 
1# $Id: Makefile.kmk 46529 2013-06-13 13:11:10Z 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_DBG
174#wined3d_DEFS += VBOX_WITH_WINE_FIXES
175wined3d_INCS := \
176 vbox/libWineStub/include
177wined3d_SOURCES := \
178 wined3d/arb_program_shader.c \
179 wined3d/ati_fragment_shader.c \
180 wined3d/buffer.c \
181 wined3d/context.c \
182 wined3d/device.c \
183 wined3d/directx.c \
184 wined3d/drawprim.c \
185 wined3d/gl_compat.c \
186 wined3d/glsl_shader.c \
187 wined3d/nvidia_texture_shader.c \
188 wined3d/palette.c \
189 wined3d/query.c \
190 wined3d/resource.c \
191 wined3d/shader.c \
192 wined3d/shader_sm1.c \
193 wined3d/shader_sm4.c \
194 wined3d/state.c \
195 wined3d/stateblock.c \
196 wined3d/surface.c \
197 wined3d/swapchain.c \
198 wined3d/texture.c \
199 wined3d/utils.c \
200 wined3d/vertexdeclaration.c \
201 wined3d/view.c \
202 wined3d/volume.c \
203 wined3d/wined3d_main.c \
204 wined3d/vboxext.c \
205 wined3d/sampler.c \
206 vbox/libWineStub/debug.c \
207 vbox/VBoxDbgGl.c \
208 wined3d/wined3d.def
209wined3d_LIBS = \
210 $(VBOX_LIB_IPRT_GUEST_R3) \
211 $(VBOX_LIB_VBGL_R3) \
212 $(PATH_STAGE_LIB)/VBoxOGL$(VBOX_SUFF_LIB)
213
214ifdef VBOX_WITH_WDDM
215 #
216 # wined3dwddm - ???
217 #
218 DLLS += wined3dwddm
219 wined3dwddm_EXTENDS = wined3d
220 if defined(VBOX_SIGNING_MODE)
221 wined3dwddm_INSTTYPE.win = none
222 wined3dwddm_DEBUG_INSTTYPE.win = both
223 endif
224 wined3dwddm_DEFS = $(wined3d_DEFS) \
225 VBOX_WITH_WDDM \
226 IN_VBOXLIBWINE \
227 VBOX_WINE_WITH_SHADER_CACHE
228ifdef VBOX_WINE_WITH_PROFILE
229 wined3dwddm_DEFS += VBOX_WINE_WITH_PROFILE
230endif
231 wined3dwddm_INCS = $(wined3d_INCS) \
232 $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm
233 wined3dwddm_SOURCES = $(subst wined3d.def,wined3dwddm.def,$(wined3d_SOURCES))
234 wined3dwddm_LIBS = $(wined3d_LIBS) \
235 $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger$(VBOX_SUFF_LIB) \
236 $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi$(VBOX_SUFF_LIB)
237
238 #
239 # wined3dwddm-x86 - ???.
240 #
241 DLLS.amd64 += wined3dwddm-x86
242 wined3dwddm-x86_EXTENDS = wined3dwddm
243 wined3dwddm-x86_BLD_TRG_ARCH = x86
244 wined3dwddm-x86_DEFS = $(wined3dwddm_DEFS) VBOX_WDDM_WOW64
245 wined3dwddm-x86_LIBS = \
246 $(VBOX_LIB_IPRT_GUEST_R3_X86) \
247 $(VBOX_LIB_VBGL_R3_X86) \
248 $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger-x86$(VBOX_SUFF_LIB) \
249 $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi-x86$(VBOX_SUFF_LIB) \
250 $(PATH_STAGE_LIB)/VBoxOGL-x86$(VBOX_SUFF_LIB)
251endif # ifdef VBOX_WITH_WDDM
252
253#
254# VBoxD3D8 - ???.
255#
256DLLS += VBoxD3D8
257VBoxD3D8_TEMPLATE = VBoxGuestWineDLL
258VBoxD3D8_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
259VBoxD3D8_DEFS = _USE_MATH_DEFINES \
260 VBOX_USING_WINDDK \
261 VBOX_WINE_WITHOUT_LIBWINE
262if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS)
263 VBoxD3D8_DEFS += WINE_NO_DEBUG_MSGS
264endif
265VBoxD3D8_INCS := \
266 vbox/libWineStub/include
267VBoxD3D8_SOURCES := \
268 d3d8/d3d8_main.c \
269 d3d8/buffer.c \
270 d3d8/device.c \
271 d3d8/directx.c \
272 d3d8/shader.c \
273 d3d8/surface.c \
274 d3d8/swapchain.c \
275 d3d8/texture.c \
276 d3d8/vertexdeclaration.c \
277 d3d8/volume.c \
278 vbox/libWineStub/debug.c \
279 d3d8/d3d8.def
280VBoxD3D8_LIBS = \
281 $(PATH_STAGE_LIB)/wined3d$(VBOX_SUFF_LIB)
282VBoxD3D8_DEFS += VBOX_WINE_WITH_IPRT
283VBoxD3D8_LIBS += \
284 $(VBOX_LIB_IPRT_GUEST_R3) \
285 $(VBOX_LIB_VBGL_R3)
286
287#
288# VBoxD3D9 - ???.
289#
290DLLS += VBoxD3D9
291VBoxD3D9_TEMPLATE = VBoxGuestWineDLL
292VBoxD3D9_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH)
293VBoxD3D9_DEFS = _USE_MATH_DEFINES \
294 VBOX_USING_WINDDK \
295 VBOX_WINE_WITHOUT_LIBWINE
296if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS)
297 VBoxD3D9_DEFS += WINE_NO_DEBUG_MSGS
298endif
299#@todo: do we actually need this?
300#VBoxD3D9_DEFS += VBOX_WITH_WINE_FIX_NO9EX
301VBoxD3D9_INCS := \
302 vbox/libWineStub/include
303VBoxD3D9_SOURCES := \
304 d3d9/d3d9_main.c \
305 d3d9/buffer.c \
306 d3d9/device.c \
307 d3d9/directx.c \
308 d3d9/query.c \
309 d3d9/shader.c \
310 d3d9/stateblock.c \
311 d3d9/surface.c \
312 d3d9/swapchain.c \
313 d3d9/texture.c \
314 d3d9/vertexdeclaration.c \
315 d3d9/volume.c \
316 vbox/libWineStub/debug.c \
317 d3d9/d3d9xpdm.def
318VBoxD3D9_LIBS = \
319 $(PATH_STAGE_LIB)/wined3d$(VBOX_SUFF_LIB)
320VBoxD3D9_DEFS += VBOX_WINE_WITH_IPRT
321VBoxD3D9_LIBS += \
322 $(VBOX_LIB_IPRT_GUEST_R3) \
323 $(VBOX_LIB_VBGL_R3)
324
325ifdef VBOX_WITH_WDDM
326 #
327 # VBoxD3D9wddm - ???.
328 #
329 DLLS += VBoxD3D9wddm
330 VBoxD3D9wddm_EXTENDS = VBoxD3D9
331 if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
332 VBoxD3D9wddm_INSTTYPE = none
333 VBoxD3D9wddm_DEBUG_INSTTYPE = both
334 endif
335 VBoxD3D9wddm_INCS = $(VBoxD3D9_INCS) \
336 $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm
337 VBoxD3D9wddm_DEFS += $(VBoxD3D9_DEFS) \
338 VBOX_WITH_WDDM \
339 IN_VBOXWINEEX \
340 VBOX_WINE_NO_LOCK
341 VBoxD3D9wddm_SOURCES = $(subst d3d9xpdm.def,d3d9wddm.def,$(VBoxD3D9_SOURCES))
342 VBoxD3D9wddm_LIBS = \
343 $(subst $(PATH_STAGE_LIB)/wined3d$(VBOX_SUFF_LIB),$(PATH_STAGE_LIB)/wined3dwddm$(VBOX_SUFF_LIB),$(VBoxD3D9_LIBS)) \
344 $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger$(VBOX_SUFF_LIB) \
345 $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi$(VBOX_SUFF_LIB)
346
347 #
348 # VBoxD3D9wddm-x86 - For WOW64.
349 #
350 DLLS.amd64 += VBoxD3D9wddm-x86
351 VBoxD3D9wddm-x86_EXTENDS = VBoxD3D9wddm
352 VBoxD3D9wddm-x86_BLD_TRG_ARCH = x86
353 VBoxD3D9wddm-x86_DEFS = $(VBoxD3D9wddm_DEFS) VBOX_WDDM_WOW64
354 VBoxD3D9wddm-x86_LIBS = $(PATH_STAGE_LIB)/wined3dwddm-x86$(VBOX_SUFF_LIB)
355 VBoxD3D9wddm-x86_LIBS += \
356 $(VBOX_LIB_IPRT_GUEST_R3_X86) \
357 $(VBOX_LIB_VBGL_R3_X86)
358 VBoxD3D9wddm-x86_LIBS += \
359 $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger-x86$(VBOX_SUFF_LIB) \
360 $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi-x86$(VBOX_SUFF_LIB)
361endif # VBOX_WITH_WDDM
362
363#
364# d3d8 - ???.
365#
366DLLS += d3d8
367d3d8_TEMPLATE = VBoxGuestWineD3DxDLL
368d3d8_SOURCES = \
369 switcher/d3d8_main.c \
370 switcher/sw_common.c \
371 switcher/sw_d3d8.def \
372 switcher/d3d8.rc
373
374#
375# d3d9 - ???.
376#
377DLLS += d3d9
378d3d9_TEMPLATE = VBoxGuestWineD3DxDLL
379d3d9_SOURCES = \
380 switcher/d3d9_main.c \
381 switcher/sw_common.c \
382 switcher/d3d9.rc
383d3d9_SOURCES.x86 = \
384 switcher/sw_d3d9.def
385d3d9_SOURCES.amd64 = \
386 switcher/sw_d3d9xpdm.def
387
388include $(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