VirtualBox

source: vbox/trunk/src/VBox/Additions/common/crOpenGL/Makefile.kmk@ 20038

Last change on this file since 20038 was 19099, checked in by vboxsync, 16 years ago

crOpenGL: fix multicontext crashes (public bug #3762)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 16.9 KB
Line 
1# $Id: Makefile.kmk 19099 2009-04-22 09:13:20Z vboxsync $
2## @file
3# Sub-Makefile for the VirtualBox Guest OpenGL part
4#
5
6#
7# Copyright (C) 2008 Sun Microsystems, Inc.
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# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22SUB_DEPTH = ../../../../..
23include $(KBUILD_PATH)/subheader.kmk
24
25#
26# Target lists.
27#
28BLDDIRS += \
29 $(VBOX_PATH_CROGL_GENFILES)/
30
31DLLS.win += \
32 VBoxOGL \
33 VBoxOGLarrayspu \
34 VBoxOGLpassthroughspu \
35 VBoxOGLpackspu \
36 VBoxOGLfeedbackspu
37
38if1of ($(KBUILD_TARGET),linux solaris)
39DLLS += \
40 VBoxOGL \
41 VBoxOGLarrayspu \
42 VBoxOGLpassthroughspu \
43 VBoxOGLpackspu \
44 VBoxOGLfeedbackspu
45endif
46
47if1of ($(KBUILD_TARGET),linux solaris)
48 #VBoxOGL_DRI = 1
49 ifneq ($(KBUILD_TARGET),solaris) # No DRI on Solaris yet
50 VBoxOGL_FAKEDRI = 1
51 endif
52# VBOX_PATH_MESA_SOURCE = $(PATH_ROOT)/src/libs/mesa-7.2
53 VBOX_PATH_MESA_SOURCE = $(VBOX_PATH_X11_ROOT)/mesa-7.2
54
55 # Only Solaris right now needs C stubs because I can't figure out how to
56 # generate the GOT based relocation ASM yet.
57 ifeq ($(KBUILD_TARGET),solaris)
58 ifdef VBoxOGL_FAKEDRI
59 VBOX_OGL_GLX_USE_CSTUBS = 1
60 endif
61 endif
62endif
63
64
65#
66# VBoxOGL
67#
68VBoxOGL_TEMPLATE = VBOXCROGLR3GUESTDLL
69VBoxOGL_INCS = .
70if1of ($(KBUILD_TARGET),linux solaris)
71 VBoxOGL_INCS += \
72 $(VBOX_PATH_X11_ROOT)/libXdamage-1.1 \
73 $(VBOX_PATH_X11_ROOT)/libXcomposite-0.4.0 \
74 $(VBOX_PATH_X11_ROOT)/libXfixes-4.0.3 \
75 $(VBOX_PATH_X11_ROOT)/damageproto-1.1.0 \
76 $(VBOX_PATH_X11_ROOT)/compositeproto-0.4 \
77 $(VBOX_PATH_X11_ROOT)/fixesproto-4.0 \
78 $(VBOX_PATH_X11_ROOT)/libx11-1.1.5-other \
79 $(VBOX_PATH_X11_ROOT)/1.3/xorg \
80 $(VBOX_PATH_MESA_SOURCE) \
81 $(VBOX_PATH_MESA_SOURCE)/include \
82 $(VBOX_PATH_MESA_SOURCE)/src/mesa/ \
83 $(VBOX_PATH_MESA_SOURCE)/src/mesa/glapi \
84 $(VBOX_PATH_MESA_SOURCE)/src/mesa/main \
85 $(VBOX_PATH_MESA_SOURCE)/src/mesa/drivers/dri/common \
86 $(PATH_ROOT)/src/VBox/Additions/x11/x11include/libdrm-2.4.5
87 VBoxOGL_DEFS += VBOX_NO_NATIVEGL
88endif
89ifdef VBoxOGL_DRI
90 VBoxOGL_DEFS += VBOXOGL_DRI IN_DRI_DRIVER
91else ifdef VBoxOGL_FAKEDRI
92 VBoxOGL_DEFS += VBOXOGL_FAKEDRI
93 VBoxOGL_DEFS.solaris += VBOX_OGL_GLX_USE_CSTUBS
94endif
95ifeq ($(KBUILD_TARGET),win)
96#fixme?, INTERMEDIATES.win ain't working
97 VBoxOGL_INTERMEDIATES += $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h
98endif
99ifdef VBoxOGL_DRI
100 VBoxOGL_INTERMEDIATES += \
101 $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h \
102 $(VBOX_PATH_CROGL_GENFILES)/DD_gl.h
103else ifdef VBoxOGL_FAKEDRI
104 VBoxOGL_INTERMEDIATES += \
105 $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h
106endif
107VBoxOGL_SOURCES += \
108 load.c \
109 stub.c \
110 context.c \
111 $(VBOX_PATH_CROGL_GENFILES)/getprocaddress.c \
112 $(VBOX_PATH_CROGL_GENFILES)/NULLfuncs.c \
113 $(VBOX_PATH_CROGL_GENFILES)/tsfuncs.c
114
115if1of ($(KBUILD_TARGET),linux solaris)
116 VBoxOGL_SOURCES += \
117 glx.c \
118 xfont.c
119 ifdef VBOX_OGL_GLX_USE_CSTUBS
120 VBoxOGL_SOURCES += glx_c_exports.c
121 endif
122
123 ifdef VBoxOGL_DRI
124 VBoxOGL_SOURCES += \
125 $(VBOX_PATH_CROGL_GENFILES)/DD_gl.c \
126 dri_drv.c
127 VBoxOGL_SOURCES.linux += \
128 $(VBOX_PATH_CROGL_GENFILES)/linux_exports_dri.asm
129 VBoxOGL_SOURCES.solaris += \
130 $(VBOX_PATH_CROGL_GENFILES)/solaris_exports_dri.asm
131 else ifdef VBoxOGL_FAKEDRI
132 VBoxOGL_SOURCES += \
133 fakedri_drv.c
134 VBoxOGL_SOURCES.linux += \
135 $(VBOX_PATH_CROGL_GENFILES)/linux_glxapi_exports.asm \
136 $(VBOX_PATH_CROGL_GENFILES)/linux_exports_dri.asm
137 ifndef VBOX_OGL_GLX_USE_CSTUBS
138 VBoxOGL_SOURCES.solaris += \
139 $(VBOX_PATH_CROGL_GENFILES)/solaris_glxapi_exports.asm \
140 $(VBOX_PATH_CROGL_GENFILES)/solaris_exports_dri.asm
141 else
142 VBoxOGL_SOURCES.solaris += \
143 $(VBOX_PATH_CROGL_GENFILES)/solaris_exports.c
144 endif
145 else
146 VBoxOGL_SOURCES.linux += \
147 $(VBOX_PATH_CROGL_GENFILES)/linux_exports.asm
148 VBoxOGL_SOURCES.solaris += \
149 $(VBOX_PATH_CROGL_GENFILES)/solaris_exports.c
150 endif
151endif
152
153VBoxOGL_SOURCES.win = \
154 wgl.c \
155 icd_drv.c \
156 VBoxCROGL.rc \
157 $(VBOX_PATH_CROGL_GENFILES)/windows_exports.asm \
158 $(VBOX_PATH_CROGL_GENFILES)/cropengl.def
159VBoxOGL_CLEAN = \
160 $(VBOX_PATH_CROGL_GENFILES)/getprocaddress.c \
161 $(VBOX_PATH_CROGL_GENFILES)/NULLfuncs.c \
162 $(VBOX_PATH_CROGL_GENFILES)/tsfuncs.c
163VBoxOGL_CLEAN.linux += \
164 $(VBOX_PATH_CROGL_GENFILES)/linux_exports.asm
165VBoxOGL_CLEAN.solaris += \
166 $(VBOX_PATH_CROGL_GENFILES)/solaris_exports.c
167VBoxOGL_CLEAN.win = \
168 $(VBOX_PATH_CROGL_GENFILES)/windows_exports.asm \
169 $(VBOX_PATH_CROGL_GENFILES)/cropengl.def
170if1of ($(KBUILD_TARGET),linux solaris)
171 ifdef VBoxOGL_DRI
172 VBoxOGL_CLEAN += \
173 $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h \
174 $(VBOX_PATH_CROGL_GENFILES)/DD_gl.h \
175 $(VBOX_PATH_CROGL_GENFILES)/DD_gl.c
176 else ifdef VBoxOGL_FAKEDRI
177 VBoxOGL_CLEAN += \
178 $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h
179 VBoxOGL_CLEAN.linux += \
180 $(VBOX_PATH_CROGL_GENFILES)/linux_glxapi_exports.asm
181 VBoxOGL_CLEAN.solaris += \
182 $(VBOX_PATH_CROGL_GENFILES)/solaris_glxapi_exports.asm
183 endif
184endif
185VBoxOGL_LIBS = \
186 $(VBOX_LIB_IPRT_GUEST_R3_SHARED) \
187 $(VBOX_LIB_VBGL_R3_SHARED) \
188 $(VBOX_LIB_OGL_CRUTIL) \
189 $(PATH_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB)
190if1of ($(KBUILD_TARGET),linux solaris)
191 VBoxOGL_LIBS += \
192 $(PATH_LIB)/libXcomposite.so
193 ifdef VBoxOGL_FAKEDRI
194 VBoxOGL_LIBS += \
195 dl
196 endif
197endif
198
199#
200# Generate files for VBoxOGL.
201#
202$(VBOX_PATH_CROGL_GENFILES)/NULLfuncs.c: $(PATH_SUB_CURRENT)/NULLfuncs.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
203 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
204$(VBOX_PATH_CROGL_GENFILES)/tsfuncs.c: $(PATH_SUB_CURRENT)/tsfuncs.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
205 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
206
207ifeq ($(KBUILD_TARGET),win)
208$(VBOX_PATH_CROGL_GENFILES)/getprocaddress.c: $(PATH_SUB_CURRENT)/windows_getprocaddress.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
209 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
210$(VBOX_PATH_CROGL_GENFILES)/cropengl.def: $(PATH_SUB_CURRENT)/defs.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
211 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
212$(VBOX_PATH_CROGL_GENFILES)/cr_gl.h: $(PATH_SUB_CURRENT)/cr_gl.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
213 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
214$(VBOX_PATH_CROGL_GENFILES)/windows_exports.asm: \
215 $(PATH_SUB_CURRENT)/windows_i386_exports.py \
216 $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
217 | $$(dir $$@)
218 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
219else if1of ($(KBUILD_TARGET),linux solaris)
220$(VBOX_PATH_CROGL_GENFILES)/getprocaddress.c: $(PATH_SUB_CURRENT)/getprocaddress.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
221 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
222if !defined(VBoxOGL_DRI) && !defined(VBoxOGL_FAKEDRI)
223 ifeq ($(KBUILD_TARGET),solaris)
224$(VBOX_PATH_CROGL_GENFILES)/solaris_exports.c: \
225 $(PATH_SUB_CURRENT)/SunOS_exports.py \
226 $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
227 | $$(dir $$@)
228 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
229 else
230$(VBOX_PATH_CROGL_GENFILES)/linux_exports.asm: \
231 $(PATH_SUB_CURRENT)/Linux_i386_exports.py \
232 $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
233 | $$(dir $$@)
234 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
235 endif
236else ifdef VBoxOGL_DRI
237$(VBOX_PATH_CROGL_GENFILES)/cr_gl.h: $(PATH_SUB_CURRENT)/cr_gl.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
238 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
239$(VBOX_PATH_CROGL_GENFILES)/DD_gl.h: $(PATH_SUB_CURRENT)/DD_glh.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
240 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
241$(VBOX_PATH_CROGL_GENFILES)/DD_gl.c: $(PATH_SUB_CURRENT)/DD_glc.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
242 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
243 ifeq ($(KBUILD_TARGET),solaris)
244$(VBOX_PATH_CROGL_GENFILES)/solaris_exports_dri.asm: \
245 $(PATH_SUB_CURRENT)/SunOS_i386_exports_dri.py \
246 $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
247 | $$(dir $$@)
248 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
249 else
250$(VBOX_PATH_CROGL_GENFILES)/linux_exports_dri.asm: \
251 $(PATH_SUB_CURRENT)/Linux_i386_exports_dri.py \
252 $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
253 | $$(dir $$@)
254 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
255 endif
256else ifdef VBoxOGL_FAKEDRI
257$(VBOX_PATH_CROGL_GENFILES)/cr_gl.h: $(PATH_SUB_CURRENT)/cr_gl.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
258 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
259 ifndef VBOX_OGL_GLX_USE_CSTUBS
260 ifeq ($(KBUILD_TARGET),solaris)
261$(VBOX_PATH_CROGL_GENFILES)/solaris_exports_dri.asm: \
262 $(PATH_SUB_CURRENT)/SunOS_i386_exports_dri.py \
263 $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
264 | $$(dir $$@)
265 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
266$(VBOX_PATH_CROGL_GENFILES)/solaris_glxapi_exports.asm: $(PATH_SUB_CURRENT)/SunOS_i386_glxapi_exports.py | $$(dir $$@)
267 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $<
268 else
269$(VBOX_PATH_CROGL_GENFILES)/linux_exports_dri.asm: \
270 $(PATH_SUB_CURRENT)/Linux_i386_exports_dri.py \
271 $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
272 | $$(dir $$@)
273 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
274$(VBOX_PATH_CROGL_GENFILES)/linux_glxapi_exports.asm: $(PATH_SUB_CURRENT)/Linux_i386_glxapi_exports.py | $$(dir $$@)
275 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $<
276 endif
277 else
278 # @todo linux if required
279 ifeq ($(KBUILD_TARGET),solaris)
280$(VBOX_PATH_CROGL_GENFILES)/solaris_exports.c: \
281 $(PATH_SUB_CURRENT)/SunOS_exports.py \
282 $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
283 | $$(dir $$@)
284 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
285 endif
286 endif # VBOX_OGL_GLX_USE_CSTUBS
287endif
288endif
289
290#
291# VBoxOGLarrayspu
292#
293VBoxOGLarrayspu_TEMPLATE = VBOXCROGLR3GUESTDLL
294VBoxOGLarrayspu_INCS = \
295 array
296VBoxOGLarrayspu_INCS.darwin += $(PATH_OUT)/obj/VBoxOGL
297VBoxOGLarrayspu_INTERMEDIATES = \
298 $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \
299 $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h
300VBoxOGLarrayspu_SOURCES = \
301 array/arrayspu.c \
302 array/arrayspu_config.c \
303 array/arrayspu_init.c
304VBoxOGLarrayspu_SOURCES.win = \
305 array/arrayspu.def
306VBoxOGLarrayspu_LIBS = \
307 $(VBOX_LIB_OGL_CRUTIL) \
308 $(PATH_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB) \
309 $(PATH_LIB)/additions/VBoxOGLcrstate$(VBOX_SUFF_LIB)
310
311#
312# VBoxOGLpassthroughspu
313#
314VBoxOGLpassthroughspu_TEMPLATE = VBOXCROGLR3GUESTDLL
315VBoxOGLpassthroughspu_INCS = \
316 passthrough
317VBoxOGLpassthroughspu_SOURCES = \
318 passthrough/passthroughspu_init.c \
319 $(VBOX_PATH_CROGL_GENFILES)/passthroughspu.c
320VBoxOGLpassthroughspu_SOURCES.win = \
321 passthrough/passthrough.def
322VBoxOGLpassthroughspu_CLEAN = \
323 $(VBOX_PATH_CROGL_GENFILES)/passthroughspu.c
324VBoxOGLpassthroughspu_LIBS = \
325 $(VBOX_LIB_OGL_CRUTIL)
326
327#
328# Generate files for VBoxOGLpassthroughspu.
329#
330$(VBOX_PATH_CROGL_GENFILES)/passthroughspu.c: $(PATH_SUB_CURRENT)/passthrough/passthrough.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
331 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
332
333#
334# VBoxOGLpackspu
335#
336VBoxOGLpackspu_TEMPLATE = VBOXCROGLR3GUESTDLL
337VBoxOGLpackspu_DEFS = TRACKS_STATE=1 PACKS=1
338VBoxOGLpackspu_INCS = \
339 pack
340VBoxOGLpackspu_INTERMEDIATES = \
341 $(VBOX_PATH_CROGL_GENFILES)/packspu_proto.h
342VBoxOGLpackspu_SOURCES = \
343 pack/packspu_bufferobject.c \
344 pack/packspu_client.c \
345 pack/packspu_config.c \
346 pack/packspu_context.c \
347 pack/packspu_getstring.c \
348 pack/packspu_init.c \
349 pack/packspu_misc.c \
350 pack/packspu_net.c \
351 pack/packspu_swapbuf.c \
352 pack/packspu_pixel.c \
353 $(VBOX_PATH_CROGL_GENFILES)/packspu.c \
354 $(VBOX_PATH_CROGL_GENFILES)/packspu_get.c \
355 $(VBOX_PATH_CROGL_GENFILES)/packspu_flush.c \
356 $(VBOX_PATH_CROGL_GENFILES)/packspu_beginend.c
357VBoxOGLpackspu_SOURCES.win = \
358 pack/pack.def
359VBoxOGLpackspu_CLEAN = \
360 $(VBOX_PATH_CROGL_GENFILES)/packspu_proto.h \
361 $(VBOX_PATH_CROGL_GENFILES)/packspu.c \
362 $(VBOX_PATH_CROGL_GENFILES)/packspu_get.c \
363 $(VBOX_PATH_CROGL_GENFILES)/packspu_flush.c \
364 $(VBOX_PATH_CROGL_GENFILES)/packspu_beginend.c
365VBoxOGLpackspu_LIBS = \
366 $(VBOX_LIB_OGL_CRUTIL) \
367 $(PATH_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB) \
368 $(PATH_LIB)/additions/VBoxOGLcrstate$(VBOX_SUFF_LIB) \
369 $(PATH_LIB)/additions/VBoxOGLcrpacker$(VBOX_SUFF_LIB)
370
371#
372# Generate files for VBoxOGLpackspu.
373#
374$(VBOX_PATH_CROGL_GENFILES)/packspu.c: $(addprefix $(PATH_SUB_CURRENT)/pack/,pack.py packspu_special packspu_unimplemented_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
375 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
376
377$(VBOX_PATH_CROGL_GENFILES)/packspu_get.c: $(PATH_SUB_CURRENT)/pack/packspu_get.py $(PATH_SUB_CURRENT)/pack/packspu_special $(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserverlib/get_sizes.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
378 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
379
380$(VBOX_PATH_CROGL_GENFILES)/packspu_flush.c: $(PATH_SUB_CURRENT)/pack/packspu_flush.py $(PATH_SUB_CURRENT)/pack/packspu_flush_special $(VBOX_CROGL_API_FILES) | $$(dir $$@)
381 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
382
383$(VBOX_PATH_CROGL_GENFILES)/packspu_beginend.c: $(PATH_SUB_CURRENT)/pack/packspu_beginend.py $(PATH_SUB_CURRENT)/pack/packspu_vertex_special $(VBOX_CROGL_API_FILES) | $$(dir $$@)
384 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
385
386$(VBOX_PATH_CROGL_GENFILES)/packspu_proto.h: $(addprefix $(PATH_SUB_CURRENT)/pack/,packspu_proto.py packspu_special packspu_unimplemented_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
387 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
388
389#
390# VBoxOGLfeedbackspu
391#
392VBoxOGLfeedbackspu_TEMPLATE = VBOXCROGLR3GUESTDLL
393VBoxOGLfeedbackspu_INCS = \
394 feedback
395VBoxOGLarrayspu_INTERMEDIATES = \
396 $(VBOX_PATH_CROGL_GENFILES)/feedbackspu_proto.h
397VBoxOGLfeedbackspu_SOURCES = \
398 feedback/feedbackspu_config.c \
399 feedback/feedbackspu_init.c \
400 feedback/feedback_context.c \
401 $(VBOX_PATH_CROGL_GENFILES)/feedbackspu.c \
402 $(VBOX_PATH_CROGL_GENFILES)/feedbackspu_state.c
403VBoxOGLfeedbackspu_SOURCES.win = \
404 feedback/feedback.def
405VBoxOGLfeedbackspu_CLEAN = \
406 $(VBOX_PATH_CROGL_GENFILES)/feedbackspu_proto.h \
407 $(VBOX_PATH_CROGL_GENFILES)/feedbackspu.c \
408 $(VBOX_PATH_CROGL_GENFILES)/feedbackspu_state.c
409VBoxOGLfeedbackspu_LIBS = \
410 $(VBOX_LIB_OGL_CRUTIL) \
411 $(PATH_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB) \
412 $(PATH_LIB)/additions/VBoxOGLcrstate$(VBOX_SUFF_LIB)
413
414#
415# Generate files for VBoxOGLfeedbackspu.
416#
417$(VBOX_PATH_CROGL_GENFILES)/feedbackspu.c: $(addprefix $(PATH_SUB_CURRENT)/feedback/,feedback.py feedback_special select_special feedback_state_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
418 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
419
420$(VBOX_PATH_CROGL_GENFILES)/feedbackspu_state.c: $(addprefix $(PATH_SUB_CURRENT)/feedback/,feedback_state.py feedback_state_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
421 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
422
423$(VBOX_PATH_CROGL_GENFILES)/feedbackspu_proto.h: $(addprefix $(PATH_SUB_CURRENT)/feedback/,feedbackspu_proto.py feedback_special select_special feedback_state_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
424 $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
425
426include $(KBUILD_PATH)/subfooter.kmk
427
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