1 | # $Id: Makefile.kmk 38156 2011-07-25 13:06:51Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the Wine D3D related dlls for VirtualBox.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2009 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 | # @todo: get rid of libwine completely (currently used for xpdm.x86 builds only)
|
---|
23 | DLLS.x86 += libWine
|
---|
24 |
|
---|
25 | libWine_TEMPLATE = VBOXGUESTR3NPDLL
|
---|
26 | libWine_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL __i386__ \
|
---|
27 | DLLDIR=\"\" \
|
---|
28 | BINDIR=\"\" \
|
---|
29 | LIB_TO_BINDIR=\"\" \
|
---|
30 | LIB_TO_DLLDIR=\"\" \
|
---|
31 | BIN_TO_DLLDIR=\"\" \
|
---|
32 | LIB_TO_DATADIR=\"\" \
|
---|
33 | BIN_TO_DATADIR=\"\"
|
---|
34 | libWine_INCS := $(PATH_SUB_CURRENT)/include
|
---|
35 | libWine_SOURCES := \
|
---|
36 | libWine/wine.def \
|
---|
37 | libWine/casemap.c \
|
---|
38 | libWine/collation.c \
|
---|
39 | libWine/compose.c \
|
---|
40 | libWine/config.c \
|
---|
41 | libWine/cptable.c \
|
---|
42 | libWine/debug.c \
|
---|
43 | libWine/fold.c \
|
---|
44 | libWine/ldt.c \
|
---|
45 | libWine/loader.c \
|
---|
46 | libWine/mbtowc.c \
|
---|
47 | libWine/mmap.c \
|
---|
48 | libWine/port.c \
|
---|
49 | libWine/sortkey.c \
|
---|
50 | libWine/string.c \
|
---|
51 | libWine/utf8.c \
|
---|
52 | libWine/wctomb.c \
|
---|
53 | libWine/wctype.c \
|
---|
54 | libWine/c_037.c \
|
---|
55 | libWine/c_424.c \
|
---|
56 | libWine/c_437.c \
|
---|
57 | libWine/c_500.c \
|
---|
58 | libWine/c_737.c \
|
---|
59 | libWine/c_775.c \
|
---|
60 | libWine/c_850.c \
|
---|
61 | libWine/c_852.c \
|
---|
62 | libWine/c_855.c \
|
---|
63 | libWine/c_856.c \
|
---|
64 | libWine/c_857.c \
|
---|
65 | libWine/c_860.c \
|
---|
66 | libWine/c_861.c \
|
---|
67 | libWine/c_862.c \
|
---|
68 | libWine/c_863.c \
|
---|
69 | libWine/c_864.c \
|
---|
70 | libWine/c_865.c \
|
---|
71 | libWine/c_866.c \
|
---|
72 | libWine/c_869.c \
|
---|
73 | libWine/c_874.c \
|
---|
74 | libWine/c_875.c \
|
---|
75 | libWine/c_878.c \
|
---|
76 | libWine/c_932.c \
|
---|
77 | libWine/c_936.c \
|
---|
78 | libWine/c_949.c \
|
---|
79 | libWine/c_950.c \
|
---|
80 | libWine/c_1006.c \
|
---|
81 | libWine/c_1026.c \
|
---|
82 | libWine/c_1250.c \
|
---|
83 | libWine/c_1251.c \
|
---|
84 | libWine/c_1252.c \
|
---|
85 | libWine/c_1253.c \
|
---|
86 | libWine/c_1254.c \
|
---|
87 | libWine/c_1255.c \
|
---|
88 | libWine/c_1256.c \
|
---|
89 | libWine/c_1257.c \
|
---|
90 | libWine/c_1258.c \
|
---|
91 | libWine/c_1361.c \
|
---|
92 | libWine/c_10000.c \
|
---|
93 | libWine/c_10006.c \
|
---|
94 | libWine/c_10007.c \
|
---|
95 | libWine/c_10029.c \
|
---|
96 | libWine/c_10079.c \
|
---|
97 | libWine/c_10081.c \
|
---|
98 | libWine/c_20127.c \
|
---|
99 | libWine/c_20866.c \
|
---|
100 | libWine/c_20932.c \
|
---|
101 | libWine/c_21866.c \
|
---|
102 | libWine/c_28591.c \
|
---|
103 | libWine/c_28592.c \
|
---|
104 | libWine/c_28593.c \
|
---|
105 | libWine/c_28594.c \
|
---|
106 | libWine/c_28595.c \
|
---|
107 | libWine/c_28596.c \
|
---|
108 | libWine/c_28597.c \
|
---|
109 | libWine/c_28598.c \
|
---|
110 | libWine/c_28599.c \
|
---|
111 | libWine/c_28600.c \
|
---|
112 | libWine/c_28603.c \
|
---|
113 | libWine/c_28604.c \
|
---|
114 | libWine/c_28605.c \
|
---|
115 | libWine/c_28606.c \
|
---|
116 | libWine/version.c
|
---|
117 |
|
---|
118 | DLLS += wined3d
|
---|
119 | # @todo: all .amd64 and .x86 stuff below is to get rid of libwine for amd64
|
---|
120 | # and keep it for .x86 to avoid regressions
|
---|
121 | # this should be generalized in the future
|
---|
122 | wined3d_TEMPLATE = VBOXGUESTR3NPDLL
|
---|
123 | wined3d_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL _USE_MATH_DEFINES\
|
---|
124 | DLLDIR=\"\" \
|
---|
125 | BINDIR=\"\" \
|
---|
126 | LIB_TO_BINDIR=\"\" \
|
---|
127 | LIB_TO_DLLDIR=\"\" \
|
---|
128 | BIN_TO_DLLDIR=\"\" \
|
---|
129 | LIB_TO_DATADIR=\"\" \
|
---|
130 | BIN_TO_DATADIR=\"\"
|
---|
131 | wined3d_DEFS.x86 = __i386__
|
---|
132 | if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS)
|
---|
133 | wined3d_DEFS += WINE_NO_DEBUG_MSGS
|
---|
134 | endif
|
---|
135 | wined3d_DEFS.amd64 += VBOX_WINE_WITHOUT_LIBWINE
|
---|
136 | wined3d_INCS.x86 := $(PATH_SUB_CURRENT)/include
|
---|
137 | wined3d_INCS.amd64 := vbox/libWineStub/include
|
---|
138 | wined3d_SOURCES := \
|
---|
139 | wined3d/arb_program_shader.c \
|
---|
140 | wined3d/ati_fragment_shader.c \
|
---|
141 | wined3d/basetexture.c \
|
---|
142 | wined3d/buffer.c \
|
---|
143 | wined3d/clipper.c \
|
---|
144 | wined3d/context.c \
|
---|
145 | wined3d/cubetexture.c \
|
---|
146 | wined3d/device.c \
|
---|
147 | wined3d/directx.c \
|
---|
148 | wined3d/drawprim.c \
|
---|
149 | wined3d/gl_compat.c \
|
---|
150 | wined3d/glsl_shader.c \
|
---|
151 | wined3d/nvidia_texture_shader.c \
|
---|
152 | wined3d/palette.c \
|
---|
153 | wined3d/query.c \
|
---|
154 | wined3d/resource.c \
|
---|
155 | wined3d/shader.c \
|
---|
156 | wined3d/shader_sm1.c \
|
---|
157 | wined3d/shader_sm4.c \
|
---|
158 | wined3d/state.c \
|
---|
159 | wined3d/stateblock.c \
|
---|
160 | wined3d/surface_base.c \
|
---|
161 | wined3d/surface.c \
|
---|
162 | wined3d/surface_gdi.c \
|
---|
163 | wined3d/swapchain.c \
|
---|
164 | wined3d/swapchain_gdi.c \
|
---|
165 | wined3d/swapchain_base.c \
|
---|
166 | wined3d/texture.c \
|
---|
167 | wined3d/utils.c \
|
---|
168 | wined3d/vertexdeclaration.c \
|
---|
169 | wined3d/view.c \
|
---|
170 | wined3d/volume.c \
|
---|
171 | wined3d/volumetexture.c \
|
---|
172 | wined3d/wined3d_main.c \
|
---|
173 | wined3d/wined3d.def
|
---|
174 | wined3d_SOURCES.amd64 = vbox/libWineStub/debug.c
|
---|
175 | wined3d_LIBS.x86 = \
|
---|
176 | $(PATH_STAGE_LIB)/libWine$(VBOX_SUFF_LIB)
|
---|
177 | wined3d_SDKS.amd64 = WINDDKWLH
|
---|
178 |
|
---|
179 | ifdef VBOX_WITH_WDDM
|
---|
180 | DLLS += wined3dwddm
|
---|
181 | wined3dwddm_EXTENDS = wined3d
|
---|
182 | if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
|
---|
183 | wined3dwddm_NOINST.win = true
|
---|
184 | endif
|
---|
185 | wined3dwddm_INCS = vbox/libWineStub/include
|
---|
186 | wined3dwddm_INCS.x86 = $(NO_SUCH_VARIABLE)
|
---|
187 | wined3dwddm_LIBS.x86 = $(NO_SUCH_VARIABLE)
|
---|
188 | wined3dwddm_DEFS = $(subst __i386__,,$(wined3d_DEFS)) VBOX_WITH_WDDM VBOX_WINE_WITHOUT_LIBWINE
|
---|
189 | wined3dwddm_DEFS.x86 = $(NO_SUCH_VARIABLE)
|
---|
190 | wined3dwddm_SOURCES = $(subst wined3d.def,wined3dwddm.def,$(wined3d_SOURCES)) vbox/libWineStub/debug.c wined3d/vboxext.c
|
---|
191 | wined3dwddm_SOURCES.x86 = $(NO_SUCH_VARIABLE)
|
---|
192 | wined3dwddm_SOURCES.amd64 = $(NO_SUCH_VARIABLE)
|
---|
193 | wined3dwddm_SDKS = WINDDKWLH
|
---|
194 | wined3dwddm_SDKS.amd64 = $(NO_SUCH_VARIABLE)
|
---|
195 | #VBOX_WINE_WITH_IPRT is used for debugging currently to enable Assert & stuff
|
---|
196 | ifdef VBOX_WINE_WITH_IPRT
|
---|
197 | wined3dwddm_LIBS += \
|
---|
198 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
199 | $(VBOX_LIB_VBGL_R3)
|
---|
200 | wined3dwddm_DEFS += VBOX_WINE_WITH_IPRT
|
---|
201 | endif
|
---|
202 | wined3dwddm_DEFS += VBOX_WINE_WITH_SINGLE_CONTEXT
|
---|
203 |
|
---|
204 | DLLS.amd64 += wined3dwddm-x86
|
---|
205 | wined3dwddm-x86_EXTENDS = wined3dwddm
|
---|
206 | wined3dwddm-x86_BLD_TRG_ARCH = x86
|
---|
207 | ifdef VBOX_WINE_WITH_IPRT
|
---|
208 | wined3dwddm-x86_LIBS = \
|
---|
209 | $(VBOX_LIB_IPRT_GUEST_R3_X86) \
|
---|
210 | $(VBOX_LIB_VBGL_R3_X86)
|
---|
211 | endif
|
---|
212 | wined3dwddm-x86_DEFS = $(wined3dwddm_DEFS) VBOX_WDDM_WOW64
|
---|
213 | endif
|
---|
214 |
|
---|
215 | DLLS += VBoxD3D8
|
---|
216 | VBoxD3D8_TEMPLATE = VBOXGUESTR3NPDLL
|
---|
217 | VBoxD3D8_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL _USE_MATH_DEFINES\
|
---|
218 | DLLDIR=\"\" \
|
---|
219 | BINDIR=\"\" \
|
---|
220 | LIB_TO_BINDIR=\"\" \
|
---|
221 | LIB_TO_DLLDIR=\"\" \
|
---|
222 | BIN_TO_DLLDIR=\"\" \
|
---|
223 | LIB_TO_DATADIR=\"\" \
|
---|
224 | BIN_TO_DATADIR=\"\"
|
---|
225 | VBoxD3D8_DEFS.x86 = __i386__
|
---|
226 | if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS)
|
---|
227 | VBoxD3D8_DEFS += WINE_NO_DEBUG_MSGS
|
---|
228 | endif
|
---|
229 | VBoxD3D8_DEFS.amd64 += VBOX_WINE_WITHOUT_LIBWINE
|
---|
230 | VBoxD3D8_INCS.x86 := $(PATH_SUB_CURRENT)/include
|
---|
231 | VBoxD3D8_INCS.amd64 := vbox/libWineStub/include
|
---|
232 | VBoxD3D8_SOURCES := \
|
---|
233 | d3d8/cubetexture.c \
|
---|
234 | d3d8/d3d8_main.c \
|
---|
235 | d3d8/device.c \
|
---|
236 | d3d8/directx.c \
|
---|
237 | d3d8/indexbuffer.c \
|
---|
238 | d3d8/pixelshader.c \
|
---|
239 | d3d8/surface.c \
|
---|
240 | d3d8/swapchain.c \
|
---|
241 | d3d8/texture.c \
|
---|
242 | d3d8/vertexbuffer.c \
|
---|
243 | d3d8/vertexdeclaration.c \
|
---|
244 | d3d8/vertexshader.c \
|
---|
245 | d3d8/volume.c \
|
---|
246 | d3d8/volumetexture.c \
|
---|
247 | d3d8/d3d8.def
|
---|
248 | VBoxD3D8_LIBS.x86 = \
|
---|
249 | $(PATH_STAGE_LIB)/libWine$(VBOX_SUFF_LIB)
|
---|
250 | VBoxD3D8_LIBS = \
|
---|
251 | $(PATH_STAGE_LIB)/wined3d$(VBOX_SUFF_LIB)
|
---|
252 | VBoxD3D8_SOURCES.amd64 = vbox/libWineStub/debug.c
|
---|
253 | VBoxD3D8_SDKS.amd64 = WINDDKWLH
|
---|
254 |
|
---|
255 | DLLS += VBoxD3D9
|
---|
256 |
|
---|
257 | VBoxD3D9_TEMPLATE = VBOXGUESTR3NPDLL
|
---|
258 | VBoxD3D9_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL _USE_MATH_DEFINES\
|
---|
259 | DLLDIR=\"\" \
|
---|
260 | BINDIR=\"\" \
|
---|
261 | LIB_TO_BINDIR=\"\" \
|
---|
262 | LIB_TO_DLLDIR=\"\" \
|
---|
263 | BIN_TO_DLLDIR=\"\" \
|
---|
264 | LIB_TO_DATADIR=\"\" \
|
---|
265 | BIN_TO_DATADIR=\"\"
|
---|
266 | VBoxD3D9_DEFS.x86 = __i386__
|
---|
267 | if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS)
|
---|
268 | VBoxD3D9_DEFS += WINE_NO_DEBUG_MSGS
|
---|
269 | endif
|
---|
270 | VBoxD3D9_DEFS.amd64 += VBOX_WINE_WITHOUT_LIBWINE
|
---|
271 | VBoxD3D9_INCS.x86 := $(PATH_SUB_CURRENT)/include
|
---|
272 | VBoxD3D9_INCS.amd64 := vbox/libWineStub/include
|
---|
273 | VBoxD3D9_SOURCES := \
|
---|
274 | d3d9/cubetexture.c \
|
---|
275 | d3d9/d3d9_main.c \
|
---|
276 | d3d9/device.c \
|
---|
277 | d3d9/directx.c \
|
---|
278 | d3d9/indexbuffer.c \
|
---|
279 | d3d9/pixelshader.c \
|
---|
280 | d3d9/query.c \
|
---|
281 | d3d9/stateblock.c \
|
---|
282 | d3d9/surface.c \
|
---|
283 | d3d9/swapchain.c \
|
---|
284 | d3d9/texture.c \
|
---|
285 | d3d9/vertexbuffer.c \
|
---|
286 | d3d9/vertexdeclaration.c \
|
---|
287 | d3d9/vertexshader.c \
|
---|
288 | d3d9/volume.c \
|
---|
289 | d3d9/volumetexture.c
|
---|
290 |
|
---|
291 | VBoxD3D9_SOURCES.x86 = \
|
---|
292 | d3d9/d3d9.def
|
---|
293 | VBoxD3D9_SOURCES.amd64 = \
|
---|
294 | vbox/libWineStub/debug.c \
|
---|
295 | d3d9/d3d9xpdm.def
|
---|
296 | VBoxD3D9_LIBS.x86 = \
|
---|
297 | $(PATH_STAGE_LIB)/libWine$(VBOX_SUFF_LIB)
|
---|
298 | VBoxD3D9_LIBS = \
|
---|
299 | $(PATH_STAGE_LIB)/wined3d$(VBOX_SUFF_LIB)
|
---|
300 | VBoxD3D9_SDKS.amd64 = WINDDKWLH
|
---|
301 |
|
---|
302 | ifdef VBOX_WITH_WDDM
|
---|
303 | DLLS += VBoxD3D9wddm
|
---|
304 | VBoxD3D9wddm_EXTENDS = VBoxD3D9
|
---|
305 | if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
|
---|
306 | VBoxD3D9wddm_NOINST.win = true
|
---|
307 | endif
|
---|
308 | VBoxD3D9wddm_INCS = vbox/libWineStub/include
|
---|
309 | VBoxD3D9wddm_INCS.x86 = $(NO_SUCH_VARIABLE)
|
---|
310 | VBoxD3D9wddm_DEFS.x86 = $(NO_SUCH_VARIABLE)
|
---|
311 | VBoxD3D9wddm_DEFS += $(subst __i386__,,$(VBoxD3D9_DEFS)) VBOX_WITH_WDDM VBOX_WINE_WITHOUT_LIBWINE IN_VBOXWINEEX
|
---|
312 | VBoxD3D9wddm_SOURCES = $(VBoxD3D9_SOURCES) d3d9/d3d9wddm.def vbox/libWineStub/debug.c
|
---|
313 | VBoxD3D9wddm_SOURCES.x86 = $(NO_SUCH_VARIABLE)
|
---|
314 | VBoxD3D9wddm_SOURCES.amd64 = $(NO_SUCH_VARIABLE)
|
---|
315 | VBoxD3D9wddm_LIBS = $(PATH_STAGE_LIB)/wined3dwddm$(VBOX_SUFF_LIB)
|
---|
316 | VBoxD3D9wddm_LIBS.x86 = $(NO_SUCH_VARIABLE)
|
---|
317 | VBoxD3D9wddm_SDKS = WINDDKWLH
|
---|
318 | VBoxD3D9wddm_SDKS.amd64 = $(NO_SUCH_VARIABLE)
|
---|
319 | ifdef VBOX_WINE_WITH_IPRT
|
---|
320 | VBoxD3D9wddm_LIBS += \
|
---|
321 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
322 | $(VBOX_LIB_VBGL_R3)
|
---|
323 | VBoxD3D9wddm_DEFS += VBOX_WINE_WITH_IPRT
|
---|
324 | endif
|
---|
325 |
|
---|
326 | DLLS.amd64 += VBoxD3D9wddm-x86
|
---|
327 | VBoxD3D9wddm-x86_EXTENDS = VBoxD3D9wddm
|
---|
328 | VBoxD3D9wddm-x86_BLD_TRG_ARCH = x86
|
---|
329 | VBoxD3D9wddm-x86_LIBS = $(PATH_STAGE_LIB)/wined3dwddm-x86$(VBOX_SUFF_LIB)
|
---|
330 | VBoxD3D9wddm-x86_DEFS = $(VBoxD3D9wddm_DEFS) VBOX_WDDM_WOW64
|
---|
331 | ifdef VBOX_WINE_WITH_IPRT
|
---|
332 | VBoxD3D9wddm-x86_LIBS += \
|
---|
333 | $(VBOX_LIB_IPRT_GUEST_R3_X86) \
|
---|
334 | $(VBOX_LIB_VBGL_R3_X86)
|
---|
335 | endif
|
---|
336 | endif
|
---|
337 |
|
---|
338 | DLLS += d3d8
|
---|
339 | d3d8_TEMPLATE = VBOXGUESTR3NPDLL
|
---|
340 | d3d8_DEFS.x86 = __i386__
|
---|
341 | d3d8_INCS.x86 := $(PATH_SUB_CURRENT)/include
|
---|
342 | d3d8_SOURCES = \
|
---|
343 | switcher/d3d8_main.c \
|
---|
344 | switcher/sw_common.c \
|
---|
345 | switcher/sw_d3d8.def \
|
---|
346 | switcher/d3d8.rc
|
---|
347 | d3d8_SDKS.amd64 = WINDDKWLH
|
---|
348 |
|
---|
349 | DLLS += d3d9
|
---|
350 | d3d9_TEMPLATE = VBOXGUESTR3NPDLL
|
---|
351 | d3d9_DEFS.x86 = __i386__
|
---|
352 | d3d9_INCS.x86 := $(PATH_SUB_CURRENT)/include
|
---|
353 | d3d9_SOURCES = \
|
---|
354 | switcher/d3d9_main.c \
|
---|
355 | switcher/sw_common.c \
|
---|
356 | switcher/d3d9.rc
|
---|
357 | d3d9_SOURCES.x86 = \
|
---|
358 | switcher/sw_d3d9.def
|
---|
359 | d3d9_SOURCES.amd64 = \
|
---|
360 | switcher/sw_d3d9xpdm.def
|
---|
361 | d3d9_SDKS.amd64 = WINDDKWLH
|
---|
362 |
|
---|
363 |
|
---|
364 | include $(KBUILD_PATH)/subfooter.kmk
|
---|