1 | # $Id: Makefile.kmk 25943 2010-01-20 17:28:48Z 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 | if1of ($(KBUILD_TARGET), linux solaris freebsd)
|
---|
39 | DLLS += \
|
---|
40 | VBoxOGL \
|
---|
41 | VBoxOGLarrayspu \
|
---|
42 | VBoxOGLpassthroughspu \
|
---|
43 | VBoxOGLpackspu \
|
---|
44 | VBoxOGLfeedbackspu
|
---|
45 | endif
|
---|
46 |
|
---|
47 | if1of ($(KBUILD_TARGET), linux solaris freebsd)
|
---|
48 | #VBoxOGL_DRI = 1
|
---|
49 | ifn1of ($(KBUILD_TARGET),solaris freebsd) # No DRI on Solaris yet
|
---|
50 | VBoxOGL_FAKEDRI = 1
|
---|
51 | endif
|
---|
52 |
|
---|
53 | # Only Solaris right now needs C stubs because I can't figure out how to
|
---|
54 | # generate the GOT based relocation ASM yet.
|
---|
55 | ifdef VBoxOGL_FAKEDRI
|
---|
56 | if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),solaris.x86 solaris.amd64 linux.x86 freebsd.x86 freebsd.amd64)
|
---|
57 | VBOX_OGL_GLX_USE_CSTUBS = 1
|
---|
58 | endif
|
---|
59 | endif
|
---|
60 | endif
|
---|
61 |
|
---|
62 |
|
---|
63 | #
|
---|
64 | # VBoxOGL
|
---|
65 | #
|
---|
66 | VBoxOGL_TEMPLATE = VBOXCROGLR3GUESTDLL
|
---|
67 | VBoxOGL_INCS = .
|
---|
68 | if1of ($(KBUILD_TARGET), linux solaris freebsd)
|
---|
69 | VBoxOGL_INCS += \
|
---|
70 | $(VBOX_PATH_X11_ROOT)/libXdamage-1.1 \
|
---|
71 | $(VBOX_PATH_X11_ROOT)/libXcomposite-0.4.0 \
|
---|
72 | $(VBOX_PATH_X11_ROOT)/libXfixes-4.0.3 \
|
---|
73 | $(VBOX_PATH_X11_ROOT)/damageproto-1.1.0 \
|
---|
74 | $(VBOX_PATH_X11_ROOT)/compositeproto-0.4 \
|
---|
75 | $(VBOX_PATH_X11_ROOT)/fixesproto-4.0 \
|
---|
76 | $(VBOX_PATH_X11_ROOT)/libx11-1.1.5-other \
|
---|
77 | $(VBOX_PATH_X11_ROOT)/1.3/xorg \
|
---|
78 | $(VBOX_MESA_INCS) \
|
---|
79 | $(PATH_ROOT)/src/VBox/Additions/x11/x11include/libdrm-2.4.13
|
---|
80 | VBoxOGL_DEFS += VBOX_NO_NATIVEGL
|
---|
81 | endif
|
---|
82 |
|
---|
83 | ifdef VBoxOGL_DRI
|
---|
84 | VBoxOGL_DEFS += VBOXOGL_DRI IN_DRI_DRIVER
|
---|
85 | else ifdef VBoxOGL_FAKEDRI
|
---|
86 | VBoxOGL_DEFS += VBOXOGL_FAKEDRI
|
---|
87 | ifdef VBOX_OGL_GLX_USE_CSTUBS
|
---|
88 | VBoxOGL_DEFS += VBOX_OGL_GLX_USE_CSTUBS
|
---|
89 | endif
|
---|
90 | endif
|
---|
91 |
|
---|
92 | ifeq ($(KBUILD_TARGET),win)
|
---|
93 | #fixme?, INTERMEDIATES.win ain't working
|
---|
94 | VBoxOGL_INTERMEDIATES += $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h
|
---|
95 | endif
|
---|
96 | ifdef VBoxOGL_DRI
|
---|
97 | VBoxOGL_INTERMEDIATES += \
|
---|
98 | $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h \
|
---|
99 | $(VBOX_PATH_CROGL_GENFILES)/DD_gl.h
|
---|
100 | else ifdef VBoxOGL_FAKEDRI
|
---|
101 | VBoxOGL_INTERMEDIATES += \
|
---|
102 | $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h
|
---|
103 | endif
|
---|
104 | VBoxOGL_SOURCES += \
|
---|
105 | load.c \
|
---|
106 | stub.c \
|
---|
107 | context.c \
|
---|
108 | $(VBOX_PATH_CROGL_GENFILES)/getprocaddress.c \
|
---|
109 | $(VBOX_PATH_CROGL_GENFILES)/NULLfuncs.c \
|
---|
110 | $(VBOX_PATH_CROGL_GENFILES)/tsfuncs.c
|
---|
111 |
|
---|
112 | if1of ($(KBUILD_TARGET), linux solaris freebsd)
|
---|
113 | VBoxOGL_SOURCES += \
|
---|
114 | glx.c \
|
---|
115 | xfont.c
|
---|
116 | ifdef VBOX_OGL_GLX_USE_CSTUBS
|
---|
117 | VBoxOGL_SOURCES += glx_c_exports.c
|
---|
118 | endif
|
---|
119 |
|
---|
120 | ifdef VBoxOGL_DRI
|
---|
121 | VBoxOGL_SOURCES += \
|
---|
122 | $(VBOX_PATH_CROGL_GENFILES)/DD_gl.c \
|
---|
123 | dri_drv.c
|
---|
124 | VBoxOGL_SOURCES.linux += \
|
---|
125 | $(VBOX_PATH_CROGL_GENFILES)/linux_exports_dri.asm
|
---|
126 | VBoxOGL_SOURCES.solaris += \
|
---|
127 | $(VBOX_PATH_CROGL_GENFILES)/solaris_exports_dri.asm
|
---|
128 | VBoxOGL_SOURCES.freebsd += \
|
---|
129 | $(VBOX_PATH_CROGL_GENFILES)/freebsd_exports_dri.asm
|
---|
130 | else ifdef VBoxOGL_FAKEDRI
|
---|
131 | VBoxOGL_SOURCES += \
|
---|
132 | fakedri_drv.c
|
---|
133 | ifndef VBOX_OGL_GLX_USE_CSTUBS
|
---|
134 | VBoxOGL_SOURCES.solaris += \
|
---|
135 | $(VBOX_PATH_CROGL_GENFILES)/solaris_glxapi_exports.asm \
|
---|
136 | $(VBOX_PATH_CROGL_GENFILES)/solaris_exports_dri.asm \
|
---|
137 | VBoxOGL_SOURCES.linux += \
|
---|
138 | $(VBOX_PATH_CROGL_GENFILES)/linux_glxapi_exports.asm \
|
---|
139 | $(VBOX_PATH_CROGL_GENFILES)/linux_exports_dri.asm
|
---|
140 | VBoxOGL_SOURCES.freebsd += \
|
---|
141 | $(VBOX_PATH_CROGL_GENFILES)/freebsd_glxapi_exports.asm \
|
---|
142 | $(VBOX_PATH_CROGL_GENFILES)/freebsd_exports_dri.asm \
|
---|
143 |
|
---|
144 | else
|
---|
145 | VBoxOGL_SOURCES.solaris += \
|
---|
146 | $(VBOX_PATH_CROGL_GENFILES)/solaris_exports.c
|
---|
147 | VBoxOGL_SOURCES.linux += \
|
---|
148 | $(VBOX_PATH_CROGL_GENFILES)/linux_exports.c
|
---|
149 | VBoxOGL_SOURCES.freebsd += \
|
---|
150 | $(VBOX_PATH_CROGL_GENFILES)/freebsd_exports.c
|
---|
151 | endif
|
---|
152 | else
|
---|
153 | VBoxOGL_SOURCES.linux += \
|
---|
154 | $(VBOX_PATH_CROGL_GENFILES)/linux_exports.asm
|
---|
155 | VBoxOGL_SOURCES.solaris += \
|
---|
156 | $(VBOX_PATH_CROGL_GENFILES)/solaris_exports.c
|
---|
157 | VBoxOGL_SOURCES.freebsd += \
|
---|
158 | $(VBOX_PATH_CROGL_GENFILES)/freebsd_exports.c
|
---|
159 | endif
|
---|
160 | endif
|
---|
161 |
|
---|
162 | VBoxOGL_SOURCES.win = \
|
---|
163 | wgl.c \
|
---|
164 | icd_drv.c \
|
---|
165 | VBoxCROGL.rc \
|
---|
166 | $(VBOX_PATH_CROGL_GENFILES)/windows_exports.asm \
|
---|
167 | $(VBOX_PATH_CROGL_GENFILES)/cropengl.def
|
---|
168 | VBoxOGL_CLEAN = \
|
---|
169 | $(VBOX_PATH_CROGL_GENFILES)/getprocaddress.c \
|
---|
170 | $(VBOX_PATH_CROGL_GENFILES)/NULLfuncs.c \
|
---|
171 | $(VBOX_PATH_CROGL_GENFILES)/tsfuncs.c
|
---|
172 | VBoxOGL_CLEAN.linux += \
|
---|
173 | $(VBOX_PATH_CROGL_GENFILES)/linux_exports.asm
|
---|
174 | VBoxOGL_CLEAN.solaris += \
|
---|
175 | $(VBOX_PATH_CROGL_GENFILES)/solaris_exports.c
|
---|
176 | VBoxOGL_CLEAN.win = \
|
---|
177 | $(VBOX_PATH_CROGL_GENFILES)/windows_exports.asm \
|
---|
178 | $(VBOX_PATH_CROGL_GENFILES)/cropengl.def
|
---|
179 | if1of ($(KBUILD_TARGET), linux solaris)
|
---|
180 | ifdef VBoxOGL_DRI
|
---|
181 | VBoxOGL_CLEAN += \
|
---|
182 | $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h \
|
---|
183 | $(VBOX_PATH_CROGL_GENFILES)/DD_gl.h \
|
---|
184 | $(VBOX_PATH_CROGL_GENFILES)/DD_gl.c
|
---|
185 | else ifdef VBoxOGL_FAKEDRI
|
---|
186 | VBoxOGL_CLEAN += \
|
---|
187 | $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h
|
---|
188 | VBoxOGL_CLEAN.linux += \
|
---|
189 | $(VBOX_PATH_CROGL_GENFILES)/linux_glxapi_exports.asm
|
---|
190 | VBoxOGL_CLEAN.solaris += \
|
---|
191 | $(VBOX_PATH_CROGL_GENFILES)/solaris_glxapi_exports.asm
|
---|
192 | endif
|
---|
193 | endif
|
---|
194 | VBoxOGL_LIBS = \
|
---|
195 | $(VBOX_LIB_IPRT_GUEST_R3_SHARED) \
|
---|
196 | $(VBOX_LIB_VBGL_R3_SHARED) \
|
---|
197 | $(VBOX_LIB_OGL_CRUTIL) \
|
---|
198 | $(PATH_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB)
|
---|
199 | if1of ($(KBUILD_TARGET), linux solaris freebsd)
|
---|
200 | VBoxOGL_LIBS += \
|
---|
201 | $(PATH_LIB)/libXcomposite.so
|
---|
202 | ifdef VBoxOGL_FAKEDRI
|
---|
203 | VBoxOGL_LIBS += \
|
---|
204 | dl
|
---|
205 | endif
|
---|
206 | endif
|
---|
207 |
|
---|
208 | #
|
---|
209 | # Generate files for VBoxOGL.
|
---|
210 | #
|
---|
211 | $(VBOX_PATH_CROGL_GENFILES)/NULLfuncs.c: $(PATH_SUB_CURRENT)/NULLfuncs.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
212 | $(call MSG_GENERATE,python,$@,$<)
|
---|
213 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
214 | $(VBOX_PATH_CROGL_GENFILES)/tsfuncs.c: $(PATH_SUB_CURRENT)/tsfuncs.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
215 | $(call MSG_GENERATE,python,$@,$<)
|
---|
216 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
217 |
|
---|
218 | ifeq ($(KBUILD_TARGET),win)
|
---|
219 | $(VBOX_PATH_CROGL_GENFILES)/getprocaddress.c: $(PATH_SUB_CURRENT)/windows_getprocaddress.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
220 | $(call MSG_GENERATE,python,$@,$<)
|
---|
221 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
222 | $(VBOX_PATH_CROGL_GENFILES)/cropengl.def: $(PATH_SUB_CURRENT)/defs.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
223 | $(call MSG_GENERATE,python,$@,$<)
|
---|
224 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
225 | $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h: $(PATH_SUB_CURRENT)/cr_gl.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
226 | $(call MSG_GENERATE,python,$@,$<)
|
---|
227 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
228 | $(VBOX_PATH_CROGL_GENFILES)/windows_exports.asm: \
|
---|
229 | $(PATH_SUB_CURRENT)/windows_i386_exports.py \
|
---|
230 | $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
|
---|
231 | | $$(dir $$@)
|
---|
232 | $(call MSG_GENERATE,python,$@,$<)
|
---|
233 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
234 | else if1of ($(KBUILD_TARGET), linux solaris freebsd)
|
---|
235 | $(VBOX_PATH_CROGL_GENFILES)/getprocaddress.c: $(PATH_SUB_CURRENT)/getprocaddress.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
236 | $(call MSG_GENERATE,python,$@,$<)
|
---|
237 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
238 | if !defined(VBoxOGL_DRI) && !defined(VBoxOGL_FAKEDRI)
|
---|
239 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
240 | $(VBOX_PATH_CROGL_GENFILES)/solaris_exports.c: \
|
---|
241 | $(PATH_SUB_CURRENT)/SunOS_exports.py \
|
---|
242 | $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
|
---|
243 | | $$(dir $$@)
|
---|
244 | $(call MSG_GENERATE,python,$@,$<)
|
---|
245 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
246 | else ifeq ($(KBUILD_TARGET),freebsd)
|
---|
247 | $(VBOX_PATH_CROGL_GENFILES)/freebsd_exports.c: \
|
---|
248 | $(PATH_SUB_CURRENT)/FreeBSD_exports.py \
|
---|
249 | $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
|
---|
250 | | $$(dir $$@)
|
---|
251 | $(call MSG_GENERATE,python,$@,$<)
|
---|
252 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
253 | else
|
---|
254 | $(VBOX_PATH_CROGL_GENFILES)/linux_exports.asm: \
|
---|
255 | $(PATH_SUB_CURRENT)/Linux_i386_exports.py \
|
---|
256 | $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
|
---|
257 | | $$(dir $$@)
|
---|
258 | $(call MSG_GENERATE,python,$@,$<)
|
---|
259 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
260 | endif
|
---|
261 | else ifdef VBoxOGL_DRI
|
---|
262 | $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h: $(PATH_SUB_CURRENT)/cr_gl.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
263 | $(call MSG_GENERATE,python,$@,$<)
|
---|
264 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
265 | $(VBOX_PATH_CROGL_GENFILES)/DD_gl.h: $(PATH_SUB_CURRENT)/DD_glh.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
266 | $(call MSG_GENERATE,python,$@,$<)
|
---|
267 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
268 | $(VBOX_PATH_CROGL_GENFILES)/DD_gl.c: $(PATH_SUB_CURRENT)/DD_glc.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
269 | $(call MSG_GENERATE,python,$@,$<)
|
---|
270 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
271 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
272 | $(VBOX_PATH_CROGL_GENFILES)/solaris_exports_dri.asm: \
|
---|
273 | $(PATH_SUB_CURRENT)/SunOS_i386_exports_dri.py \
|
---|
274 | $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
|
---|
275 | | $$(dir $$@)
|
---|
276 | $(call MSG_GENERATE,python,$@,$<)
|
---|
277 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
278 | else ifeq ($(KBUILD_TARGET),freebsd)
|
---|
279 | $(VBOX_PATH_CROGL_GENFILES)/freebsd_exports_dri.asm: \
|
---|
280 | $(PATH_SUB_CURRENT)/FreeBSD_i386_exports_dri.py \
|
---|
281 | $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
|
---|
282 | | $$(dir $$@)
|
---|
283 | $(call MSG_GENERATE,python,$@,$<)
|
---|
284 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
285 | else
|
---|
286 | $(VBOX_PATH_CROGL_GENFILES)/linux_exports_dri.asm: \
|
---|
287 | $(PATH_SUB_CURRENT)/Linux_i386_exports_dri.py \
|
---|
288 | $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
|
---|
289 | | $$(dir $$@)
|
---|
290 | $(call MSG_GENERATE,python,$@,$<)
|
---|
291 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
292 | endif
|
---|
293 | else ifdef VBoxOGL_FAKEDRI
|
---|
294 | $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h: $(PATH_SUB_CURRENT)/cr_gl.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
295 | $(call MSG_GENERATE,python,$@,$<)
|
---|
296 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
297 | ifndef VBOX_OGL_GLX_USE_CSTUBS
|
---|
298 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
299 | $(VBOX_PATH_CROGL_GENFILES)/solaris_exports_dri.asm: \
|
---|
300 | $(PATH_SUB_CURRENT)/SunOS_i386_exports_dri.py \
|
---|
301 | $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
|
---|
302 | | $$(dir $$@)
|
---|
303 | $(call MSG_GENERATE,python,$@,$<)
|
---|
304 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
305 | $(VBOX_PATH_CROGL_GENFILES)/solaris_glxapi_exports.asm: $(PATH_SUB_CURRENT)/SunOS_i386_glxapi_exports.py | $$(dir $$@)
|
---|
306 | $(call MSG_GENERATE,python,$@,$<)
|
---|
307 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $<
|
---|
308 | else
|
---|
309 | $(VBOX_PATH_CROGL_GENFILES)/linux_exports_dri.asm: \
|
---|
310 | $(PATH_SUB_CURRENT)/Linux_i386_exports_dri.py \
|
---|
311 | $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
|
---|
312 | | $$(dir $$@)
|
---|
313 | $(call MSG_GENERATE,python,$@,$<)
|
---|
314 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
315 | $(VBOX_PATH_CROGL_GENFILES)/linux_glxapi_exports.asm: $(PATH_SUB_CURRENT)/Linux_i386_glxapi_exports.py | $$(dir $$@)
|
---|
316 | $(call MSG_GENERATE,python,$@,$<)
|
---|
317 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $<
|
---|
318 | endif
|
---|
319 | else
|
---|
320 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
321 | $(VBOX_PATH_CROGL_GENFILES)/solaris_exports.c: \
|
---|
322 | $(PATH_SUB_CURRENT)/SunOS_exports.py \
|
---|
323 | $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
|
---|
324 | | $$(dir $$@)
|
---|
325 | $(call MSG_GENERATE,python,$@,$<)
|
---|
326 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
327 | else
|
---|
328 | $(VBOX_PATH_CROGL_GENFILES)/linux_exports.c: \
|
---|
329 | $(PATH_SUB_CURRENT)/Linux_exports.py \
|
---|
330 | $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
|
---|
331 | | $$(dir $$@)
|
---|
332 | $(call MSG_GENERATE,python,$@,$<)
|
---|
333 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
334 | endif
|
---|
335 | endif # VBOX_OGL_GLX_USE_CSTUBS
|
---|
336 | endif
|
---|
337 | endif
|
---|
338 |
|
---|
339 | #
|
---|
340 | # VBoxOGLarrayspu
|
---|
341 | #
|
---|
342 | VBoxOGLarrayspu_TEMPLATE = VBOXCROGLR3GUESTDLL
|
---|
343 | VBoxOGLarrayspu_INCS = \
|
---|
344 | array
|
---|
345 | if1of ($(KBUILD_TARGET), linux solaris freebsd)
|
---|
346 | VBoxOGLarrayspu_INCS += \
|
---|
347 | $(VBOX_MESA_INCS)
|
---|
348 | endif
|
---|
349 | VBoxOGLarrayspu_INCS.darwin += $(PATH_OUT)/obj/VBoxOGL
|
---|
350 | VBoxOGLarrayspu_INTERMEDIATES = \
|
---|
351 | $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \
|
---|
352 | $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h
|
---|
353 | VBoxOGLarrayspu_SOURCES = \
|
---|
354 | array/arrayspu.c \
|
---|
355 | array/arrayspu_config.c \
|
---|
356 | array/arrayspu_init.c
|
---|
357 | VBoxOGLarrayspu_SOURCES.win = \
|
---|
358 | array/arrayspu.def \
|
---|
359 | array/arrayspu.rc
|
---|
360 | VBoxOGLarrayspu_LIBS = \
|
---|
361 | $(VBOX_LIB_OGL_CRUTIL) \
|
---|
362 | $(PATH_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB) \
|
---|
363 | $(PATH_LIB)/additions/VBoxOGLcrstate$(VBOX_SUFF_LIB)
|
---|
364 |
|
---|
365 | #
|
---|
366 | # VBoxOGLpassthroughspu
|
---|
367 | #
|
---|
368 | VBoxOGLpassthroughspu_TEMPLATE = VBOXCROGLR3GUESTDLL
|
---|
369 | VBoxOGLpassthroughspu_INCS = \
|
---|
370 | passthrough
|
---|
371 | if1of ($(KBUILD_TARGET), linux solaris freebsd)
|
---|
372 | VBoxOGLpassthroughspu_INCS += \
|
---|
373 | $(VBOX_MESA_INCS)
|
---|
374 | endif
|
---|
375 | VBoxOGLpassthroughspu_SOURCES = \
|
---|
376 | passthrough/passthroughspu_init.c \
|
---|
377 | $(VBOX_PATH_CROGL_GENFILES)/passthroughspu.c
|
---|
378 | VBoxOGLpassthroughspu_SOURCES.win = \
|
---|
379 | passthrough/passthrough.def \
|
---|
380 | passthrough/passthroughspu.rc
|
---|
381 | VBoxOGLpassthroughspu_CLEAN = \
|
---|
382 | $(VBOX_PATH_CROGL_GENFILES)/passthroughspu.c
|
---|
383 | VBoxOGLpassthroughspu_LIBS = \
|
---|
384 | $(VBOX_LIB_OGL_CRUTIL)
|
---|
385 |
|
---|
386 | #
|
---|
387 | # Generate files for VBoxOGLpassthroughspu.
|
---|
388 | #
|
---|
389 | $(VBOX_PATH_CROGL_GENFILES)/passthroughspu.c: $(PATH_SUB_CURRENT)/passthrough/passthrough.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
390 | $(call MSG_GENERATE,python,$@,$<)
|
---|
391 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
392 |
|
---|
393 | #
|
---|
394 | # VBoxOGLpackspu
|
---|
395 | #
|
---|
396 | VBoxOGLpackspu_TEMPLATE = VBOXCROGLR3GUESTDLL
|
---|
397 | VBoxOGLpackspu_DEFS = TRACKS_STATE=1 PACKS=1
|
---|
398 | VBoxOGLpackspu_INCS = \
|
---|
399 | pack
|
---|
400 | if1of ($(KBUILD_TARGET), linux solaris freebsd)
|
---|
401 | VBoxOGLpackspu_INCS += \
|
---|
402 | $(VBOX_MESA_INCS)
|
---|
403 | endif
|
---|
404 | VBoxOGLpackspu_INTERMEDIATES = \
|
---|
405 | $(VBOX_PATH_CROGL_GENFILES)/packspu_proto.h \
|
---|
406 | $(VBOX_PATH_CROGL_GENFILES)/cr_packfunctions.h
|
---|
407 | VBoxOGLpackspu_SOURCES = \
|
---|
408 | pack/packspu_bufferobject.c \
|
---|
409 | pack/packspu_client.c \
|
---|
410 | pack/packspu_config.c \
|
---|
411 | pack/packspu_context.c \
|
---|
412 | pack/packspu_getstring.c \
|
---|
413 | pack/packspu_init.c \
|
---|
414 | pack/packspu_misc.c \
|
---|
415 | pack/packspu_net.c \
|
---|
416 | pack/packspu_swapbuf.c \
|
---|
417 | pack/packspu_pixel.c \
|
---|
418 | pack/packspu_texture.c \
|
---|
419 | pack/packspu_getshaders.c \
|
---|
420 | pack/packspu_glsl.c \
|
---|
421 | pack/packspu_framebuffer.c \
|
---|
422 | $(VBOX_PATH_CROGL_GENFILES)/packspu.c \
|
---|
423 | $(VBOX_PATH_CROGL_GENFILES)/packspu_get.c \
|
---|
424 | $(VBOX_PATH_CROGL_GENFILES)/packspu_flush.c \
|
---|
425 | $(VBOX_PATH_CROGL_GENFILES)/packspu_beginend.c
|
---|
426 | VBoxOGLpackspu_SOURCES.win = \
|
---|
427 | pack/pack.def \
|
---|
428 | pack/packspu.rc
|
---|
429 | VBoxOGLpackspu_CLEAN = \
|
---|
430 | $(VBOX_PATH_CROGL_GENFILES)/packspu_proto.h \
|
---|
431 | $(VBOX_PATH_CROGL_GENFILES)/packspu.c \
|
---|
432 | $(VBOX_PATH_CROGL_GENFILES)/packspu_get.c \
|
---|
433 | $(VBOX_PATH_CROGL_GENFILES)/packspu_flush.c \
|
---|
434 | $(VBOX_PATH_CROGL_GENFILES)/packspu_beginend.c
|
---|
435 | VBoxOGLpackspu_LIBS = \
|
---|
436 | $(VBOX_LIB_OGL_CRUTIL) \
|
---|
437 | $(PATH_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB) \
|
---|
438 | $(PATH_LIB)/additions/VBoxOGLcrstate$(VBOX_SUFF_LIB) \
|
---|
439 | $(PATH_LIB)/additions/VBoxOGLcrpacker$(VBOX_SUFF_LIB)
|
---|
440 |
|
---|
441 | #
|
---|
442 | # Generate files for VBoxOGLpackspu.
|
---|
443 | #
|
---|
444 | $(VBOX_PATH_CROGL_GENFILES)/packspu.c: $(addprefix $(PATH_SUB_CURRENT)/pack/,pack.py packspu_special packspu_unimplemented_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
445 | $(call MSG_GENERATE,python,$@,$<)
|
---|
446 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
447 |
|
---|
448 | $(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 $$@)
|
---|
449 | $(call MSG_GENERATE,python,$@,$<)
|
---|
450 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
451 |
|
---|
452 | $(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 $$@)
|
---|
453 | $(call MSG_GENERATE,python,$@,$<)
|
---|
454 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
455 |
|
---|
456 | $(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 $$@)
|
---|
457 | $(call MSG_GENERATE,python,$@,$<)
|
---|
458 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
459 |
|
---|
460 | $(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 $$@)
|
---|
461 | $(call MSG_GENERATE,python,$@,$<)
|
---|
462 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
463 |
|
---|
464 | #
|
---|
465 | # VBoxOGLfeedbackspu
|
---|
466 | #
|
---|
467 | VBoxOGLfeedbackspu_TEMPLATE = VBOXCROGLR3GUESTDLL
|
---|
468 | VBoxOGLfeedbackspu_INCS = \
|
---|
469 | feedback
|
---|
470 | if1of ($(KBUILD_TARGET), linux solaris freebsd)
|
---|
471 | VBoxOGLfeedbackspu_INCS += \
|
---|
472 | $(VBOX_MESA_INCS)
|
---|
473 | endif
|
---|
474 | VBoxOGLarrayspu_INTERMEDIATES = \
|
---|
475 | $(VBOX_PATH_CROGL_GENFILES)/feedbackspu_proto.h
|
---|
476 | VBoxOGLfeedbackspu_SOURCES = \
|
---|
477 | feedback/feedbackspu_config.c \
|
---|
478 | feedback/feedbackspu_init.c \
|
---|
479 | feedback/feedback_context.c \
|
---|
480 | $(VBOX_PATH_CROGL_GENFILES)/feedbackspu.c \
|
---|
481 | $(VBOX_PATH_CROGL_GENFILES)/feedbackspu_state.c
|
---|
482 | VBoxOGLfeedbackspu_SOURCES.win = \
|
---|
483 | feedback/feedback.def \
|
---|
484 | feedback/feedbackspu.rc
|
---|
485 | VBoxOGLfeedbackspu_CLEAN = \
|
---|
486 | $(VBOX_PATH_CROGL_GENFILES)/feedbackspu_proto.h \
|
---|
487 | $(VBOX_PATH_CROGL_GENFILES)/feedbackspu.c \
|
---|
488 | $(VBOX_PATH_CROGL_GENFILES)/feedbackspu_state.c
|
---|
489 | VBoxOGLfeedbackspu_LIBS = \
|
---|
490 | $(VBOX_LIB_OGL_CRUTIL) \
|
---|
491 | $(PATH_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB) \
|
---|
492 | $(PATH_LIB)/additions/VBoxOGLcrstate$(VBOX_SUFF_LIB)
|
---|
493 |
|
---|
494 | #
|
---|
495 | # Generate files for VBoxOGLfeedbackspu.
|
---|
496 | #
|
---|
497 | $(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 $$@)
|
---|
498 | $(call MSG_GENERATE,python,$@,$<)
|
---|
499 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
500 |
|
---|
501 | $(VBOX_PATH_CROGL_GENFILES)/feedbackspu_state.c: $(addprefix $(PATH_SUB_CURRENT)/feedback/,feedback_state.py feedback_state_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
502 | $(call MSG_GENERATE,python,$@,$<)
|
---|
503 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
504 |
|
---|
505 | $(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 $$@)
|
---|
506 | $(call MSG_GENERATE,python,$@,$<)
|
---|
507 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
508 |
|
---|
509 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
510 |
|
---|