1 | # $Id: Makefile.kmk 18088 2009-03-19 11:47:52Z 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 |
|
---|
22 | SUB_DEPTH = ../../../../..
|
---|
23 | include $(KBUILD_PATH)/subheader.kmk
|
---|
24 |
|
---|
25 | #
|
---|
26 | # Target lists.
|
---|
27 | #
|
---|
28 | BLDDIRS += \
|
---|
29 | $(VBOX_PATH_CROGL_GENFILES)/
|
---|
30 |
|
---|
31 | DLLS.win += \
|
---|
32 | VBoxOGL \
|
---|
33 | VBoxOGLarrayspu \
|
---|
34 | VBoxOGLpassthroughspu \
|
---|
35 | VBoxOGLpackspu \
|
---|
36 | VBoxOGLfeedbackspu
|
---|
37 |
|
---|
38 | ifndef VBOX_OSE ## @todo Solaris too?
|
---|
39 | DLLS.linux += \
|
---|
40 | VBoxOGL \
|
---|
41 | VBoxOGLarrayspu \
|
---|
42 | VBoxOGLpassthroughspu \
|
---|
43 | VBoxOGLpackspu \
|
---|
44 | VBoxOGLfeedbackspu
|
---|
45 | endif
|
---|
46 |
|
---|
47 | ifeq ($(KBUILD_TARGET),linux)
|
---|
48 | #VBoxOGL_DRI = 1
|
---|
49 | VBoxOGL_FAKEDRI = 1
|
---|
50 | VBOX_PATH_MESA_SOURCE = $(VBOX_PATH_X11_ROOT)/mesa-7.2
|
---|
51 | endif
|
---|
52 |
|
---|
53 | #
|
---|
54 | # VBoxOGL
|
---|
55 | #
|
---|
56 | VBoxOGL_TEMPLATE = VBOXCROGLR3GUESTDLL
|
---|
57 | VBoxOGL_INCS = .
|
---|
58 | VBoxOGL_INCS.linux = \
|
---|
59 | $(VBOX_PATH_X11_ROOT)/libXdamage-1.1 \
|
---|
60 | $(VBOX_PATH_X11_ROOT)/libXcomposite-0.4.0 \
|
---|
61 | $(VBOX_PATH_X11_ROOT)/libXfixes-4.0.3 \
|
---|
62 | $(VBOX_PATH_X11_ROOT)/damageproto-1.1.0 \
|
---|
63 | $(VBOX_PATH_X11_ROOT)/compositeproto-0.4 \
|
---|
64 | $(VBOX_PATH_X11_ROOT)/fixesproto-4.0 \
|
---|
65 | $(VBOX_PATH_X11_ROOT)/libx11-1.1.5-other \
|
---|
66 | $(VBOX_PATH_X11_ROOT)/1.3/xorg \
|
---|
67 | $(VBOX_PATH_MESA_SOURCE) \
|
---|
68 | $(VBOX_PATH_MESA_SOURCE)/include \
|
---|
69 | $(VBOX_PATH_MESA_SOURCE)/src/mesa/ \
|
---|
70 | $(VBOX_PATH_MESA_SOURCE)/src/mesa/glapi \
|
---|
71 | $(VBOX_PATH_MESA_SOURCE)/src/mesa/main \
|
---|
72 | $(VBOX_PATH_MESA_SOURCE)/src/mesa/drivers/dri/common \
|
---|
73 | $(PATH_ROOT)/src/VBox/Additions/x11/x11include/libdrm-2.4.5
|
---|
74 | VBoxOGL_DEFS.linux += VBOX_NO_NATIVEGL
|
---|
75 | ifdef VBoxOGL_DRI
|
---|
76 | VBoxOGL_DEFS += VBOXOGL_DRI IN_DRI_DRIVER
|
---|
77 | else ifdef VBoxOGL_FAKEDRI
|
---|
78 | VBoxOGL_DEFS += VBOXOGL_FAKEDRI
|
---|
79 | endif
|
---|
80 | ifeq ($(KBUILD_TARGET),win)
|
---|
81 | #fixme?, INTERMEDIATES.win ain't working
|
---|
82 | VBoxOGL_INTERMEDIATES += $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h
|
---|
83 | endif
|
---|
84 | ifdef VBoxOGL_DRI
|
---|
85 | VBoxOGL_INTERMEDIATES += \
|
---|
86 | $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h \
|
---|
87 | $(VBOX_PATH_CROGL_GENFILES)/DD_gl.h
|
---|
88 | else ifdef VBoxOGL_FAKEDRI
|
---|
89 | VBoxOGL_INTERMEDIATES += \
|
---|
90 | $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h
|
---|
91 | endif
|
---|
92 | VBoxOGL_SOURCES = \
|
---|
93 | load.c \
|
---|
94 | stub.c \
|
---|
95 | context.c \
|
---|
96 | $(VBOX_PATH_CROGL_GENFILES)/getprocaddress.c \
|
---|
97 | $(VBOX_PATH_CROGL_GENFILES)/NULLfuncs.c \
|
---|
98 | $(VBOX_PATH_CROGL_GENFILES)/tsfuncs.c
|
---|
99 | VBoxOGL_SOURCES.linux = \
|
---|
100 | glx.c \
|
---|
101 | xfont.c
|
---|
102 | ifdef VBoxOGL_DRI
|
---|
103 | VBoxOGL_SOURCES.linux += \
|
---|
104 | $(VBOX_PATH_CROGL_GENFILES)/DD_gl.c \
|
---|
105 | $(VBOX_PATH_CROGL_GENFILES)/linux_exports_dri.asm \
|
---|
106 | dri_drv.c
|
---|
107 | else ifdef VBoxOGL_FAKEDRI
|
---|
108 | VBoxOGL_SOURCES.linux += \
|
---|
109 | $(VBOX_PATH_CROGL_GENFILES)/linux_glxapi_exports.asm \
|
---|
110 | $(VBOX_PATH_CROGL_GENFILES)/linux_exports_dri.asm \
|
---|
111 | fakedri_drv.c
|
---|
112 | else
|
---|
113 | VBoxOGL_SOURCES.linux += \
|
---|
114 | $(VBOX_PATH_CROGL_GENFILES)/linux_exports.asm
|
---|
115 | endif
|
---|
116 | VBoxOGL_SOURCES.win = \
|
---|
117 | wgl.c \
|
---|
118 | icd_drv.c \
|
---|
119 | VBoxCROGL.rc \
|
---|
120 | $(VBOX_PATH_CROGL_GENFILES)/windows_exports.asm \
|
---|
121 | $(VBOX_PATH_CROGL_GENFILES)/cropengl.def
|
---|
122 | VBoxOGL_CLEAN = \
|
---|
123 | $(VBOX_PATH_CROGL_GENFILES)/getprocaddress.c \
|
---|
124 | $(VBOX_PATH_CROGL_GENFILES)/NULLfuncs.c \
|
---|
125 | $(VBOX_PATH_CROGL_GENFILES)/tsfuncs.c
|
---|
126 | VBoxOGL_CLEAN.linux = \
|
---|
127 | $(VBOX_PATH_CROGL_GENFILES)/linux_exports.asm
|
---|
128 | VBoxOGL_CLEAN.win = \
|
---|
129 | $(VBOX_PATH_CROGL_GENFILES)/windows_exports.asm \
|
---|
130 | $(VBOX_PATH_CROGL_GENFILES)/cropengl.def
|
---|
131 | ifdef VBoxOGL_DRI
|
---|
132 | VBoxOGL_CLEAN.linux += \
|
---|
133 | $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h \
|
---|
134 | $(VBOX_PATH_CROGL_GENFILES)/DD_gl.h \
|
---|
135 | $(VBOX_PATH_CROGL_GENFILES)/DD_gl.c
|
---|
136 | else ifdef VBoxOGL_FAKEDRI
|
---|
137 | VBoxOGL_CLEAN.linux += \
|
---|
138 | $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h \
|
---|
139 | $(VBOX_PATH_CROGL_GENFILES)/linux_glxapi_exports.asm
|
---|
140 | endif
|
---|
141 | VBoxOGL_LIBS = \
|
---|
142 | $(VBOX_LIB_IPRT_GUEST_R3_SHARED) \
|
---|
143 | $(VBOX_LIB_VBGL_R3_SHARED) \
|
---|
144 | $(VBOX_LIB_OGL_CRUTIL) \
|
---|
145 | $(PATH_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB)
|
---|
146 | if1of ($(KBUILD_TARGET),linux solaris)
|
---|
147 | VBoxOGL_LIBS += \
|
---|
148 | $(PATH_LIB)/libXcomposite.so
|
---|
149 | ifdef VBoxOGL_FAKEDRI
|
---|
150 | VBoxOGL_LIBS += \
|
---|
151 | dl
|
---|
152 | endif
|
---|
153 | endif
|
---|
154 |
|
---|
155 | #
|
---|
156 | # Generate files for VBoxOGL.
|
---|
157 | #
|
---|
158 | $(VBOX_PATH_CROGL_GENFILES)/NULLfuncs.c: $(PATH_SUB_CURRENT)/NULLfuncs.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
159 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
160 | $(VBOX_PATH_CROGL_GENFILES)/tsfuncs.c: $(PATH_SUB_CURRENT)/tsfuncs.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
161 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
162 |
|
---|
163 | ifeq ($(KBUILD_TARGET),win)
|
---|
164 | $(VBOX_PATH_CROGL_GENFILES)/getprocaddress.c: $(PATH_SUB_CURRENT)/windows_getprocaddress.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
165 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
166 | $(VBOX_PATH_CROGL_GENFILES)/cropengl.def: $(PATH_SUB_CURRENT)/defs.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
167 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
168 | $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h: $(PATH_SUB_CURRENT)/cr_gl.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
169 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
170 | $(VBOX_PATH_CROGL_GENFILES)/windows_exports.asm: \
|
---|
171 | $(PATH_SUB_CURRENT)/windows_i386_exports.py \
|
---|
172 | $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
|
---|
173 | | $$(dir $$@)
|
---|
174 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
175 | else ifeq ($(KBUILD_TARGET),linux)
|
---|
176 | $(VBOX_PATH_CROGL_GENFILES)/getprocaddress.c: $(PATH_SUB_CURRENT)/getprocaddress.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
177 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
178 | if !defined(VBoxOGL_DRI) && !defined(VBoxOGL_FAKEDRI)
|
---|
179 | $(VBOX_PATH_CROGL_GENFILES)/linux_exports.asm: \
|
---|
180 | $(PATH_SUB_CURRENT)/Linux_i386_exports.py \
|
---|
181 | $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
|
---|
182 | | $$(dir $$@)
|
---|
183 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
184 | else ifdef VBoxOGL_DRI
|
---|
185 | $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h: $(PATH_SUB_CURRENT)/cr_gl.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
186 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
187 | $(VBOX_PATH_CROGL_GENFILES)/DD_gl.h: $(PATH_SUB_CURRENT)/DD_glh.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
188 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
189 | $(VBOX_PATH_CROGL_GENFILES)/DD_gl.c: $(PATH_SUB_CURRENT)/DD_glc.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
190 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
191 | $(VBOX_PATH_CROGL_GENFILES)/linux_exports_dri.asm: \
|
---|
192 | $(PATH_SUB_CURRENT)/Linux_i386_exports_dri.py \
|
---|
193 | $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
|
---|
194 | | $$(dir $$@)
|
---|
195 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
196 | else ifdef VBoxOGL_FAKEDRI
|
---|
197 | $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h: $(PATH_SUB_CURRENT)/cr_gl.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
198 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
199 | $(VBOX_PATH_CROGL_GENFILES)/linux_exports_dri.asm: \
|
---|
200 | $(PATH_SUB_CURRENT)/Linux_i386_exports_dri.py \
|
---|
201 | $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
|
---|
202 | | $$(dir $$@)
|
---|
203 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
204 | $(VBOX_PATH_CROGL_GENFILES)/linux_glxapi_exports.asm: $(PATH_SUB_CURRENT)/Linux_i386_glxapi_exports.py | $$(dir $$@)
|
---|
205 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $<
|
---|
206 | endif
|
---|
207 | endif
|
---|
208 |
|
---|
209 | #
|
---|
210 | # VBoxOGLarrayspu
|
---|
211 | #
|
---|
212 | VBoxOGLarrayspu_TEMPLATE = VBOXCROGLR3GUESTDLL
|
---|
213 | VBoxOGLarrayspu_INCS = \
|
---|
214 | array
|
---|
215 | VBoxOGLarrayspu_INCS.darwin += $(PATH_OUT)/obj/VBoxOGL
|
---|
216 | VBoxOGLarrayspu_INTERMEDIATES = \
|
---|
217 | $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \
|
---|
218 | $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h
|
---|
219 | VBoxOGLarrayspu_SOURCES = \
|
---|
220 | array/arrayspu.c \
|
---|
221 | array/arrayspu_config.c \
|
---|
222 | array/arrayspu_init.c
|
---|
223 | VBoxOGLarrayspu_SOURCES.win = \
|
---|
224 | array/arrayspu.def
|
---|
225 | VBoxOGLarrayspu_LIBS = \
|
---|
226 | $(VBOX_LIB_OGL_CRUTIL) \
|
---|
227 | $(PATH_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB) \
|
---|
228 | $(PATH_LIB)/additions/VBoxOGLcrstate$(VBOX_SUFF_LIB)
|
---|
229 |
|
---|
230 | #
|
---|
231 | # VBoxOGLpassthroughspu
|
---|
232 | #
|
---|
233 | VBoxOGLpassthroughspu_TEMPLATE = VBOXCROGLR3GUESTDLL
|
---|
234 | VBoxOGLpassthroughspu_INCS = \
|
---|
235 | passthrough
|
---|
236 | VBoxOGLpassthroughspu_SOURCES = \
|
---|
237 | passthrough/passthroughspu_init.c \
|
---|
238 | $(VBOX_PATH_CROGL_GENFILES)/passthroughspu.c
|
---|
239 | VBoxOGLpassthroughspu_SOURCES.win = \
|
---|
240 | passthrough/passthrough.def
|
---|
241 | VBoxOGLpassthroughspu_CLEAN = \
|
---|
242 | $(VBOX_PATH_CROGL_GENFILES)/passthroughspu.c
|
---|
243 | VBoxOGLpassthroughspu_LIBS = \
|
---|
244 | $(VBOX_LIB_OGL_CRUTIL)
|
---|
245 |
|
---|
246 | #
|
---|
247 | # Generate files for VBoxOGLpassthroughspu.
|
---|
248 | #
|
---|
249 | $(VBOX_PATH_CROGL_GENFILES)/passthroughspu.c: $(PATH_SUB_CURRENT)/passthrough/passthrough.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
250 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
251 |
|
---|
252 | #
|
---|
253 | # VBoxOGLpackspu
|
---|
254 | #
|
---|
255 | VBoxOGLpackspu_TEMPLATE = VBOXCROGLR3GUESTDLL
|
---|
256 | VBoxOGLpackspu_DEFS = TRACKS_STATE=1 PACKS=1
|
---|
257 | VBoxOGLpackspu_INCS = \
|
---|
258 | pack
|
---|
259 | VBoxOGLpackspu_INTERMEDIATES = \
|
---|
260 | $(VBOX_PATH_CROGL_GENFILES)/packspu_proto.h
|
---|
261 | VBoxOGLpackspu_SOURCES = \
|
---|
262 | pack/packspu_bufferobject.c \
|
---|
263 | pack/packspu_client.c \
|
---|
264 | pack/packspu_config.c \
|
---|
265 | pack/packspu_context.c \
|
---|
266 | pack/packspu_getstring.c \
|
---|
267 | pack/packspu_init.c \
|
---|
268 | pack/packspu_misc.c \
|
---|
269 | pack/packspu_net.c \
|
---|
270 | pack/packspu_swapbuf.c \
|
---|
271 | pack/packspu_pixel.c \
|
---|
272 | $(VBOX_PATH_CROGL_GENFILES)/packspu.c \
|
---|
273 | $(VBOX_PATH_CROGL_GENFILES)/packspu_get.c \
|
---|
274 | $(VBOX_PATH_CROGL_GENFILES)/packspu_flush.c \
|
---|
275 | $(VBOX_PATH_CROGL_GENFILES)/packspu_beginend.c
|
---|
276 | VBoxOGLpackspu_SOURCES.win = \
|
---|
277 | pack/pack.def
|
---|
278 | VBoxOGLpackspu_CLEAN = \
|
---|
279 | $(VBOX_PATH_CROGL_GENFILES)/packspu_proto.h \
|
---|
280 | $(VBOX_PATH_CROGL_GENFILES)/packspu.c \
|
---|
281 | $(VBOX_PATH_CROGL_GENFILES)/packspu_get.c \
|
---|
282 | $(VBOX_PATH_CROGL_GENFILES)/packspu_flush.c \
|
---|
283 | $(VBOX_PATH_CROGL_GENFILES)/packspu_beginend.c
|
---|
284 | VBoxOGLpackspu_LIBS = \
|
---|
285 | $(VBOX_LIB_OGL_CRUTIL) \
|
---|
286 | $(PATH_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB) \
|
---|
287 | $(PATH_LIB)/additions/VBoxOGLcrstate$(VBOX_SUFF_LIB) \
|
---|
288 | $(PATH_LIB)/additions/VBoxOGLcrpacker$(VBOX_SUFF_LIB)
|
---|
289 |
|
---|
290 | #
|
---|
291 | # Generate files for VBoxOGLpackspu.
|
---|
292 | #
|
---|
293 | $(VBOX_PATH_CROGL_GENFILES)/packspu.c: $(addprefix $(PATH_SUB_CURRENT)/pack/,pack.py packspu_special packspu_unimplemented_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
294 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
295 |
|
---|
296 | $(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 $$@)
|
---|
297 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
298 |
|
---|
299 | $(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 $$@)
|
---|
300 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
301 |
|
---|
302 | $(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 $$@)
|
---|
303 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
304 |
|
---|
305 | $(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 $$@)
|
---|
306 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
307 |
|
---|
308 | #
|
---|
309 | # VBoxOGLfeedbackspu
|
---|
310 | #
|
---|
311 | VBoxOGLfeedbackspu_TEMPLATE = VBOXCROGLR3GUESTDLL
|
---|
312 | VBoxOGLfeedbackspu_INCS = \
|
---|
313 | feedback
|
---|
314 | VBoxOGLarrayspu_INTERMEDIATES = \
|
---|
315 | $(VBOX_PATH_CROGL_GENFILES)/feedbackspu_proto.h
|
---|
316 | VBoxOGLfeedbackspu_SOURCES = \
|
---|
317 | feedback/feedbackspu_config.c \
|
---|
318 | feedback/feedbackspu_init.c \
|
---|
319 | $(VBOX_PATH_CROGL_GENFILES)/feedbackspu.c \
|
---|
320 | $(VBOX_PATH_CROGL_GENFILES)/feedbackspu_state.c
|
---|
321 | VBoxOGLfeedbackspu_SOURCES.win = \
|
---|
322 | feedback/feedback.def
|
---|
323 | VBoxOGLfeedbackspu_CLEAN = \
|
---|
324 | $(VBOX_PATH_CROGL_GENFILES)/feedbackspu_proto.h \
|
---|
325 | $(VBOX_PATH_CROGL_GENFILES)/feedbackspu.c \
|
---|
326 | $(VBOX_PATH_CROGL_GENFILES)/feedbackspu_state.c
|
---|
327 | VBoxOGLfeedbackspu_LIBS = \
|
---|
328 | $(VBOX_LIB_OGL_CRUTIL) \
|
---|
329 | $(PATH_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB) \
|
---|
330 | $(PATH_LIB)/additions/VBoxOGLcrstate$(VBOX_SUFF_LIB)
|
---|
331 |
|
---|
332 | #
|
---|
333 | # Generate files for VBoxOGLfeedbackspu.
|
---|
334 | #
|
---|
335 | $(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 $$@)
|
---|
336 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
337 |
|
---|
338 | $(VBOX_PATH_CROGL_GENFILES)/feedbackspu_state.c: $(addprefix $(PATH_SUB_CURRENT)/feedback/,feedback_state.py feedback_state_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
339 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
340 |
|
---|
341 | $(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 $$@)
|
---|
342 | $(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
343 |
|
---|
344 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
345 |
|
---|