VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/Makefile.kmk@ 35319

Last change on this file since 35319 was 35319, checked in by vboxsync, 14 years ago
  1. wddm: 64bit support 2. wddm: installation fixes (64bit support, unsigned driver warning) 3. propper fix for #5438 (compile with disabled CROGL)
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 8.6 KB
Line 
1# $Id: Makefile.kmk 35319 2010-12-24 15:42:36Z 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
19SUB_DEPTH = ../../../../../..
20include $(KBUILD_PATH)/subheader.kmk
21
22DLLS.x86 += libWine
23
24libWine_TEMPLATE = VBOXGUESTR3NPDLL
25libWine_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL __i386__ \
26 DLLDIR=\"\" \
27 BINDIR=\"\" \
28 LIB_TO_BINDIR=\"\" \
29 LIB_TO_DLLDIR=\"\" \
30 BIN_TO_DLLDIR=\"\" \
31 LIB_TO_DATADIR=\"\" \
32 BIN_TO_DATADIR=\"\"
33libWine_INCS := $(PATH_SUB_CURRENT)/include
34libWine_SOURCES := \
35 libWine/wine.def \
36 libWine/casemap.c \
37 libWine/collation.c \
38 libWine/compose.c \
39 libWine/config.c \
40 libWine/cptable.c \
41 libWine/debug.c \
42 libWine/fold.c \
43 libWine/ldt.c \
44 libWine/loader.c \
45 libWine/mbtowc.c \
46 libWine/mmap.c \
47 libWine/port.c \
48 libWine/sortkey.c \
49 libWine/string.c \
50 libWine/utf8.c \
51 libWine/wctomb.c \
52 libWine/wctype.c \
53 libWine/c_037.c \
54 libWine/c_424.c \
55 libWine/c_437.c \
56 libWine/c_500.c \
57 libWine/c_737.c \
58 libWine/c_775.c \
59 libWine/c_850.c \
60 libWine/c_852.c \
61 libWine/c_855.c \
62 libWine/c_856.c \
63 libWine/c_857.c \
64 libWine/c_860.c \
65 libWine/c_861.c \
66 libWine/c_862.c \
67 libWine/c_863.c \
68 libWine/c_864.c \
69 libWine/c_865.c \
70 libWine/c_866.c \
71 libWine/c_869.c \
72 libWine/c_874.c \
73 libWine/c_875.c \
74 libWine/c_878.c \
75 libWine/c_932.c \
76 libWine/c_936.c \
77 libWine/c_949.c \
78 libWine/c_950.c \
79 libWine/c_1006.c \
80 libWine/c_1026.c \
81 libWine/c_1250.c \
82 libWine/c_1251.c \
83 libWine/c_1252.c \
84 libWine/c_1253.c \
85 libWine/c_1254.c \
86 libWine/c_1255.c \
87 libWine/c_1256.c \
88 libWine/c_1257.c \
89 libWine/c_1258.c \
90 libWine/c_1361.c \
91 libWine/c_10000.c \
92 libWine/c_10006.c \
93 libWine/c_10007.c \
94 libWine/c_10029.c \
95 libWine/c_10079.c \
96 libWine/c_10081.c \
97 libWine/c_20127.c \
98 libWine/c_20866.c \
99 libWine/c_20932.c \
100 libWine/c_21866.c \
101 libWine/c_28591.c \
102 libWine/c_28592.c \
103 libWine/c_28593.c \
104 libWine/c_28594.c \
105 libWine/c_28595.c \
106 libWine/c_28596.c \
107 libWine/c_28597.c \
108 libWine/c_28598.c \
109 libWine/c_28599.c \
110 libWine/c_28600.c \
111 libWine/c_28603.c \
112 libWine/c_28604.c \
113 libWine/c_28605.c \
114 libWine/c_28606.c \
115 libWine/version.c
116
117DLLS.x86 += wined3d
118
119wined3d_TEMPLATE = VBOXGUESTR3NPDLL
120wined3d_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL __i386__ _USE_MATH_DEFINES\
121 DLLDIR=\"\" \
122 BINDIR=\"\" \
123 LIB_TO_BINDIR=\"\" \
124 LIB_TO_DLLDIR=\"\" \
125 BIN_TO_DLLDIR=\"\" \
126 LIB_TO_DATADIR=\"\" \
127 BIN_TO_DATADIR=\"\"
128if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS)
129 wined3d_DEFS += WINE_NO_DEBUG_MSGS
130endif
131wined3d_INCS := $(PATH_SUB_CURRENT)/include
132wined3d_SOURCES := \
133 wined3d/arb_program_shader.c \
134 wined3d/ati_fragment_shader.c \
135 wined3d/basetexture.c \
136 wined3d/buffer.c \
137 wined3d/clipper.c \
138 wined3d/context.c \
139 wined3d/cubetexture.c \
140 wined3d/device.c \
141 wined3d/directx.c \
142 wined3d/drawprim.c \
143 wined3d/gl_compat.c \
144 wined3d/glsl_shader.c \
145 wined3d/nvidia_texture_shader.c \
146 wined3d/palette.c \
147 wined3d/query.c \
148 wined3d/resource.c \
149 wined3d/shader.c \
150 wined3d/shader_sm1.c \
151 wined3d/shader_sm4.c \
152 wined3d/state.c \
153 wined3d/stateblock.c \
154 wined3d/surface_base.c \
155 wined3d/surface.c \
156 wined3d/surface_gdi.c \
157 wined3d/swapchain.c \
158 wined3d/swapchain_gdi.c \
159 wined3d/swapchain_base.c \
160 wined3d/texture.c \
161 wined3d/utils.c \
162 wined3d/vertexdeclaration.c \
163 wined3d/view.c \
164 wined3d/volume.c \
165 wined3d/volumetexture.c \
166 wined3d/wined3d_main.c \
167 wined3d/wined3d.def
168wined3d_LIBS = \
169 $(PATH_LIB)/libWine$(VBOX_SUFF_LIB)
170
171ifdef VBOX_WITH_WDDM
172DLLS += wined3dwddm
173wined3dwddm_EXTENDS = wined3d
174if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
175 wined3dwddm_NOINST.win = true
176endif
177wined3dwddm_INCS = vbox/libWineStub/include
178wined3dwddm_LIBS = $(NO_SUCH_VARIABLE)
179wined3dwddm_DEFS = $(subst __i386__,,$(wined3d_DEFS)) VBOX_WITH_WDDM VBOX_WINE_WITHOUT_LIBWINE
180wined3dwddm_SOURCES = $(subst wined3d.def,wined3dwddm.def,$(wined3d_SOURCES))
181wined3dwddm_SOURCES += vbox/libWineStub/debug.c
182wined3dwddm_SDKS = WINDDKWLH
183
184DLLS.amd64 += wined3dwddm-x86
185wined3dwddm-x86_EXTENDS = wined3dwddm
186wined3dwddm-x86_BLD_TRG_ARCH = x86
187#wined3dwddm-x86_LIBS = \
188 $(VBOX_LIB_IPRT_GUEST_R3_X86) \
189 $(VBOX_LIB_VBGL_R3_X86)
190wined3dwddm-x86_DEFS = $(wined3dwddm_DEFS) VBOX_WDDM_WOW64
191endif
192
193DLLS.x86 += VBoxD3D8
194
195VBoxD3D8_TEMPLATE = VBOXGUESTR3NPDLL
196VBoxD3D8_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL __i386__ _USE_MATH_DEFINES\
197 DLLDIR=\"\" \
198 BINDIR=\"\" \
199 LIB_TO_BINDIR=\"\" \
200 LIB_TO_DLLDIR=\"\" \
201 BIN_TO_DLLDIR=\"\" \
202 LIB_TO_DATADIR=\"\" \
203 BIN_TO_DATADIR=\"\"
204if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS)
205 VBoxD3D8_DEFS += WINE_NO_DEBUG_MSGS
206endif
207#ifdef VBOX_WITH_WDDM
208# VBoxD3D8_DEFS += VBOX_WITH_WDDM IN_VBOXWINEEX
209#endif
210VBoxD3D8_INCS := $(PATH_SUB_CURRENT)/include
211VBoxD3D8_SOURCES := \
212 d3d8/cubetexture.c \
213 d3d8/d3d8_main.c \
214 d3d8/device.c \
215 d3d8/directx.c \
216 d3d8/indexbuffer.c \
217 d3d8/pixelshader.c \
218 d3d8/surface.c \
219 d3d8/swapchain.c \
220 d3d8/texture.c \
221 d3d8/vertexbuffer.c \
222 d3d8/vertexdeclaration.c \
223 d3d8/vertexshader.c \
224 d3d8/volume.c \
225 d3d8/volumetexture.c \
226 d3d8/d3d8.def
227VBoxD3D8_LIBS = \
228 $(PATH_LIB)/libWine$(VBOX_SUFF_LIB) \
229 $(PATH_LIB)/wined3d$(VBOX_SUFF_LIB)
230DLLS.x86 += VBoxD3D9
231
232VBoxD3D9_TEMPLATE = VBOXGUESTR3NPDLL
233VBoxD3D9_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL __i386__ _USE_MATH_DEFINES\
234 DLLDIR=\"\" \
235 BINDIR=\"\" \
236 LIB_TO_BINDIR=\"\" \
237 LIB_TO_DLLDIR=\"\" \
238 BIN_TO_DLLDIR=\"\" \
239 LIB_TO_DATADIR=\"\" \
240 BIN_TO_DATADIR=\"\"
241if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS)
242 VBoxD3D9_DEFS += WINE_NO_DEBUG_MSGS
243endif
244VBoxD3D9_INCS := $(PATH_SUB_CURRENT)/include
245VBoxD3D9_SOURCES := \
246 d3d9/cubetexture.c \
247 d3d9/d3d9_main.c \
248 d3d9/device.c \
249 d3d9/directx.c \
250 d3d9/indexbuffer.c \
251 d3d9/pixelshader.c \
252 d3d9/query.c \
253 d3d9/stateblock.c \
254 d3d9/surface.c \
255 d3d9/swapchain.c \
256 d3d9/texture.c \
257 d3d9/vertexbuffer.c \
258 d3d9/vertexdeclaration.c \
259 d3d9/vertexshader.c \
260 d3d9/volume.c \
261 d3d9/volumetexture.c \
262 d3d9/d3d9.def
263VBoxD3D9_LIBS = \
264 $(PATH_LIB)/libWine$(VBOX_SUFF_LIB) \
265 $(PATH_LIB)/wined3d$(VBOX_SUFF_LIB)
266
267ifdef VBOX_WITH_WDDM
268DLLS += VBoxD3D9wddm
269VBoxD3D9wddm_EXTENDS = VBoxD3D9
270if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
271 VBoxD3D9wddm_NOINST.win = true
272endif
273
274VBoxD3D9wddm_INCS = vbox/libWineStub/include
275VBoxD3D9wddm_LIBS = $(NO_SUCH_VARIABLE)
276VBoxD3D9wddm_DEFS += $(subst __i386__,,$(VBoxD3D9_DEFS)) VBOX_WITH_WDDM VBOX_WINE_WITHOUT_LIBWINE IN_VBOXWINEEX
277VBoxD3D9wddm_SOURCES = $(subst d3d9.def,d3d9wddm.def,$(VBoxD3D9_SOURCES))
278VBoxD3D9wddm_SOURCES += vbox/libWineStub/debug.c
279VBoxD3D9wddm_LIBS = $(PATH_LIB)/wined3dwddm$(VBOX_SUFF_LIB)
280VBoxD3D9wddm_SDKS = WINDDKWLH
281
282DLLS.amd64 += VBoxD3D9wddm-x86
283VBoxD3D9wddm-x86_EXTENDS = VBoxD3D9wddm
284VBoxD3D9wddm-x86_BLD_TRG_ARCH = x86
285VBoxD3D9wddm-x86_LIBS = $(PATH_LIB)/wined3dwddm-x86$(VBOX_SUFF_LIB)
286#VBoxD3D9wddm-x86_LIBS += \
287 $(VBOX_LIB_IPRT_GUEST_R3_X86) \
288 $(VBOX_LIB_VBGL_R3_X86)
289VBoxD3D9wddm-x86_DEFS = $(VBoxD3D9wddm_DEFS) VBOX_WDDM_WOW64
290endif
291
292DLLS.x86 += d3d8
293d3d8_TEMPLATE = VBOXGUESTR3NPDLL
294d3d8_DEFS = __i386__
295d3d8_INCS := $(PATH_SUB_CURRENT)/include
296d3d8_SOURCES = \
297 switcher/d3d8_main.c \
298 switcher/sw_common.c \
299 switcher/sw_d3d8.def \
300 switcher/d3d8.rc
301
302DLLS.x86 += d3d9
303d3d9_TEMPLATE = VBOXGUESTR3NPDLL
304d3d9_DEFS = __i386__
305d3d9_INCS := $(PATH_SUB_CURRENT)/include
306d3d9_SOURCES = \
307 switcher/d3d9_main.c \
308 switcher/sw_common.c \
309 switcher/sw_d3d9.def \
310 switcher/d3d9.rc
311
312include $(KBUILD_PATH)/subfooter.kmk
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