VirtualBox

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

Last change on this file since 34079 was 32622, checked in by vboxsync, 14 years ago

wddm: VBOXWDDM->VBOX_WITH_WDDM

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