VirtualBox

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

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

crOpenGL: exported the remaining Additions bits to OSE

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