VirtualBox

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

Last change on this file since 69988 was 69988, checked in by vboxsync, 7 years ago

Additions/common/OpenGL: no static runtime in VBoxEGL.
bugref:9060: vboxvideo: hanging login screen starting Ubuntu 17.10 guest with 3D
This change removes the static runtime library from VBoxEGL.so, similar to
r119487/public r69981 for VBoxOGL.so. Note that both libraries pull in
VBoxOGLcrutil.so, which contains both the runtime and the Guest libraries.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 27.2 KB
Line 
1# $Id: Makefile.kmk 69988 2017-12-07 16:17:56Z vboxsync $
2## @file
3# Sub-Makefile for the VirtualBox Guest OpenGL part
4#
5
6#
7# Copyright (C) 2008-2017 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
18SUB_DEPTH = ../../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21#
22# Target lists.
23#
24BLDDIRS += \
25 $(VBOX_PATH_CROGL_GENFILES)/
26
27if1of ($(KBUILD_TARGET), win linux solaris freebsd)
28 DLLS += \
29 VBoxOGL \
30 VBoxOGLarrayspu \
31 VBoxOGLpassthroughspu \
32 VBoxOGLpackspu \
33 VBoxOGLfeedbackspu
34endif
35
36VBOX_OGL_X86_GUEST_DLLS = \
37 VBoxOGL-x86 \
38 VBoxOGLarrayspu-x86 \
39 VBoxOGLpassthroughspu-x86 \
40 VBoxOGLpackspu-x86 \
41 VBoxOGLfeedbackspu-x86
42
43ifdef VBOX_WITH_WDDM
44 DLLS.win.amd64 += $(VBOX_OGL_X86_GUEST_DLLS)
45endif
46
47if1of ($(KBUILD_TARGET), linux solaris freebsd)
48 #VBoxOGL_DRI = 1
49 DLLS += VBoxEGL
50 ifn1of ($(KBUILD_TARGET),linux solaris) # No DRI on Solaris yet
51 VBoxOGL_FAKEDRI = 1
52 endif
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 ifdef VBoxOGL_FAKEDRI
57 if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),solaris.x86 solaris.amd64 linux.x86 linux.amd64 freebsd.x86 freebsd.amd64)
58 VBOX_OGL_GLX_USE_CSTUBS = 1
59 endif
60 endif
61endif
62
63
64#
65# VBoxOGL
66#
67VBoxOGL_TEMPLATE = VBOXCROGLR3GUESTDLL
68VBoxOGL_INCS = . $(VBOX_GRAPHICS_INCS)
69if1of ($(KBUILD_TARGET), linux solaris freebsd)
70 ifndef VBOX_USE_SYSTEM_GL_HEADERS
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)/libXext-1.3.1 \
75 $(VBOX_PATH_X11_ROOT)/libXfixes-4.0.3 \
76 $(VBOX_PATH_X11_ROOT)/damageproto-1.1.0 \
77 $(VBOX_PATH_X11_ROOT)/compositeproto-0.4 \
78 $(VBOX_PATH_X11_ROOT)/fixesproto-4.0 \
79 $(VBOX_PATH_X11_ROOT)/libx11-1.1.5-other \
80 $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
81 $(VBOX_PATH_X11_ROOT)/xproto-7.0.18 \
82 $(VBOX_GL_INCS)
83 endif
84 VBoxOGL_DEFS += VBOX_NO_NATIVEGL
85endif
86
87ifdef VBoxOGL_DRI
88 VBoxOGL_DEFS += VBOXOGL_DRI IN_DRI_DRIVER
89else ifdef VBoxOGL_FAKEDRI
90 VBoxOGL_DEFS += VBOXOGL_FAKEDRI
91 ifdef VBOX_OGL_GLX_USE_CSTUBS
92 VBoxOGL_DEFS += VBOX_OGL_GLX_USE_CSTUBS
93 endif
94endif
95
96ifdef VBOX_WITH_WDDM
97 VBoxOGL_DEFS.win += VBOX_WITH_WDDM
98 VBoxOGL_SDKS.win += $(VBOX_WINDDK_GST_WLH)
99endif
100
101ifeq ($(KBUILD_TARGET),win)
102#fixme?, INTERMEDIATES.win ain't working
103 VBoxOGL_INTERMEDIATES += $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h
104 if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
105 VBoxOGL_INSTTYPE.win = none
106 VBoxOGL_DEBUG_INSTTYPE.win = both
107 endif
108endif
109ifdef VBoxOGL_DRI
110 VBoxOGL_INTERMEDIATES += \
111 $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h \
112 $(VBOX_PATH_CROGL_GENFILES)/DD_gl.h
113else ifdef VBoxOGL_FAKEDRI
114 VBoxOGL_INTERMEDIATES += \
115 $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h
116endif
117VBoxOGL_SOURCES += \
118 load.c \
119 stub.c \
120 context.c \
121 $(VBOX_PATH_CROGL_GENFILES)/getprocaddress.c \
122 $(VBOX_PATH_CROGL_GENFILES)/NULLfuncs.c \
123 $(VBOX_PATH_CROGL_GENFILES)/tsfuncs.c
124
125if1of ($(KBUILD_TARGET), linux solaris freebsd)
126 VBoxOGL_SOURCES += \
127 glx.c \
128 xfont.c
129 ifdef VBOX_OGL_GLX_USE_CSTUBS
130 VBoxOGL_SOURCES += glx_c_exports.c
131 endif
132
133 ifdef VBoxOGL_DRI
134 VBoxOGL_SOURCES += \
135 $(VBOX_PATH_CROGL_GENFILES)/DD_gl.c \
136 dri_drv.c
137 VBoxOGL_SOURCES.linux += \
138 $(VBOX_PATH_CROGL_GENFILES)/linux_exports_dri.asm
139 VBoxOGL_SOURCES.solaris += \
140 $(VBOX_PATH_CROGL_GENFILES)/solaris_exports_dri.asm
141 VBoxOGL_SOURCES.freebsd += \
142 $(VBOX_PATH_CROGL_GENFILES)/freebsd_exports_dri.asm
143 else ifdef VBoxOGL_FAKEDRI
144 VBoxOGL_SOURCES += \
145 fakedri_drv.c
146 ifndef VBOX_OGL_GLX_USE_CSTUBS
147 VBoxOGL_SOURCES.solaris += \
148 $(VBOX_PATH_CROGL_GENFILES)/solaris_glxapi_exports.asm \
149 $(VBOX_PATH_CROGL_GENFILES)/solaris_exports_dri.asm
150 VBoxOGL_SOURCES.linux += \
151 $(VBOX_PATH_CROGL_GENFILES)/linux_glxapi_exports.asm \
152 $(VBOX_PATH_CROGL_GENFILES)/linux_exports_dri.asm
153 VBoxOGL_SOURCES.freebsd += \
154 $(VBOX_PATH_CROGL_GENFILES)/freebsd_glxapi_exports.asm \
155 $(VBOX_PATH_CROGL_GENFILES)/freebsd_exports_dri.asm
156 else
157 VBoxOGL_SOURCES.solaris += \
158 $(VBOX_PATH_CROGL_GENFILES)/solaris_exports.c
159 VBoxOGL_SOURCES.linux += \
160 $(VBOX_PATH_CROGL_GENFILES)/linux_exports.c
161 VBoxOGL_SOURCES.freebsd += \
162 $(VBOX_PATH_CROGL_GENFILES)/freebsd_exports.c
163 endif
164 else
165 VBoxOGL_SOURCES.linux += \
166 $(VBOX_PATH_CROGL_GENFILES)/linux_exports.c
167 VBoxOGL_SOURCES.solaris += \
168 $(VBOX_PATH_CROGL_GENFILES)/solaris_exports.c
169 VBoxOGL_SOURCES.freebsd += \
170 $(VBOX_PATH_CROGL_GENFILES)/freebsd_exports.c
171 endif
172endif
173
174VBoxOGL_SOURCES.win = \
175 wgl.c \
176 icd_drv.c \
177 VBoxCROGL.rc \
178 $(VBOX_PATH_CROGL_GENFILES)/windows_exports.asm \
179 $(VBOX_PATH_CROGL_GENFILES)/cropengl.def
180VBoxOGL_CLEAN = \
181 $(VBOX_PATH_CROGL_GENFILES)/getprocaddress.c \
182 $(VBOX_PATH_CROGL_GENFILES)/NULLfuncs.c \
183 $(VBOX_PATH_CROGL_GENFILES)/tsfuncs.c
184VBoxOGL_CLEAN.linux += \
185 $(VBOX_PATH_CROGL_GENFILES)/linux_exports.c
186VBoxOGL_CLEAN.solaris += \
187 $(VBOX_PATH_CROGL_GENFILES)/solaris_exports.c
188VBoxOGL_CLEAN.win = \
189 $(VBOX_PATH_CROGL_GENFILES)/windows_exports.asm \
190 $(VBOX_PATH_CROGL_GENFILES)/cropengl.def
191if1of ($(KBUILD_TARGET), linux solaris)
192 ifdef VBoxOGL_DRI
193 VBoxOGL_CLEAN += \
194 $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h \
195 $(VBOX_PATH_CROGL_GENFILES)/DD_gl.h \
196 $(VBOX_PATH_CROGL_GENFILES)/DD_gl.c
197 else ifdef VBoxOGL_FAKEDRI
198 VBoxOGL_CLEAN += \
199 $(VBOX_PATH_CROGL_GENFILES)/cr_gl.h
200 VBoxOGL_CLEAN.linux += \
201 $(VBOX_PATH_CROGL_GENFILES)/linux_glxapi_exports.asm
202 VBoxOGL_CLEAN.solaris += \
203 $(VBOX_PATH_CROGL_GENFILES)/solaris_glxapi_exports.asm
204 endif
205endif
206# VBoxOGL_LIBS = \ # VBOX_LIB_OGL_CRUTIL includes these and caused an interesting conflict.
207# $(VBOX_LIB_IPRT_GUEST_R3_SHARED) \
208# $(VBOX_LIB_VBGL_R3_SHARED) \
209
210VBoxOGL_LIBS = \
211 $(VBOX_LIB_OGL_CRUTIL) \
212 $(PATH_STAGE_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB)
213
214VBoxOGL_LIBS.win += \
215 $(PATH_STAGE_LIB)/additions/VBoxDispMpLogger$(VBOX_SUFF_LIB) \
216 $(PATH_STAGE_LIB)/additions/VBoxWddmUmKmt$(VBOX_SUFF_LIB) \
217 $(PATH_STAGE_LIB)/additions/VBoxCrHgsmi$(VBOX_SUFF_LIB)
218
219if1of ($(KBUILD_TARGET), linux solaris freebsd)
220 ifdef VBOX_USE_SYSTEM_GL_HEADERS
221 VBoxOGL_LIBS += Xcomposite Xdamage Xfixes Xext
222 else
223 VBoxOGL_LIBS += \
224 $(PATH_STAGE_LIB)/libXcomposite.so \
225 $(PATH_STAGE_LIB)/libXdamage.so \
226 $(PATH_STAGE_LIB)/libXfixes.so \
227 $(PATH_STAGE_LIB)/libXext.so
228 endif
229 ifdef VBoxOGL_FAKEDRI
230 ifeq ($(KBUILD_TARGET), freebsd)
231 VBoxOGL_LIBS += \
232 elf
233 else
234 VBoxOGL_LIBS += \
235 dl
236 endif
237 else
238 VBoxOGL_SONAME.linux = libGL.so.1
239 VBoxOGL_LDFLAGS.linux += -Wl,-e,LibMain
240 endif
241endif
242ifdef VBOX_WITH_CRHGSMI
243VBoxOGL_DEFS.win += VBOX_WITH_CRHGSMI
244endif
245ifdef VBOX_WITH_WDDM
246VBoxOGL_DEFS.win += VBOX_WITH_WDDM
247endif
248if1of ($(KBUILD_TARGET), linux)
249VBoxOGL_LDFLAGS += -Wl,-z,nodelete
250endif
251ifdef VBOX_WITH_WDDM
252#
253# VBoxOGL-x86 - x86 VBoxOGL version built for amd64 build
254#
255VBoxOGL-x86_EXTENDS = VBoxOGL
256VBoxOGL-x86_BLD_TRG_ARCH = x86
257VBoxOGL-x86_LIBS = $(VBOX_LIB_IPRT_GUEST_R3_SHARED_X86) \
258 $(VBOX_LIB_VBGL_R3_SHARED_X86) \
259 $(VBOX_LIB_OGL_CRUTIL_X86) \
260 $(PATH_STAGE_LIB)/additions/VBoxOGLspuload-x86$(VBOX_SUFF_LIB)
261
262VBoxOGL-x86_LIBS.win += \
263 $(PATH_STAGE_LIB)/additions/VBoxDispMpLogger-x86$(VBOX_SUFF_LIB) \
264 $(PATH_STAGE_LIB)/additions/VBoxWddmUmKmt-x86$(VBOX_SUFF_LIB) \
265 $(PATH_STAGE_LIB)/additions/VBoxCrHgsmi-x86$(VBOX_SUFF_LIB)
266
267
268VBoxOGL-x86_SOURCES.win = $(subst cropengl.def,cropengl-x86.def,$(VBoxOGL_SOURCES.win))
269VBoxOGL-x86_CLEAN.win = $(subst cropengl.def,cropengl-x86.def,$(VBoxOGL_CLEAN.win))
270VBoxOGL-x86_DEFS = $(VBoxOGL_DEFS) VBOX_WDDM_WOW64
271endif
272
273#
274# Generate files for VBoxOGL.
275#
276$(VBOX_PATH_CROGL_GENFILES)/NULLfuncs.c: $(PATH_SUB_CURRENT)/NULLfuncs.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
277 $(call MSG_GENERATE,python,$@,$<)
278 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
279
280$(VBOX_PATH_CROGL_GENFILES)/tsfuncs.c: $(PATH_SUB_CURRENT)/tsfuncs.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
281 $(call MSG_GENERATE,python,$@,$<)
282 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
283
284
285ifeq ($(KBUILD_TARGET),win)
286 # Windows
287$(VBOX_PATH_CROGL_GENFILES)/getprocaddress.c: $(PATH_SUB_CURRENT)/windows_getprocaddress.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
288 $(call MSG_GENERATE,python,$@,$<)
289 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
290
291 ifeq ($(KBUILD_TARGET_ARCH),amd64)
292$(VBOX_PATH_CROGL_GENFILES)/cropengl.def: $(PATH_SUB_CURRENT)/defs64.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
293 $(call MSG_GENERATE,python,$@,$<)
294 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
295 else
296$(VBOX_PATH_CROGL_GENFILES)/cropengl.def: $(PATH_SUB_CURRENT)/defs.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
297 $(call MSG_GENERATE,python,$@,$<)
298 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
299 endif
300
301$(VBOX_PATH_CROGL_GENFILES)/cr_gl.h: $(PATH_SUB_CURRENT)/cr_gl.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
302 $(call MSG_GENERATE,python,$@,$<)
303 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
304
305$(VBOX_PATH_CROGL_GENFILES)/windows_exports.asm: \
306 $(PATH_SUB_CURRENT)/windows_i386_exports.py \
307 $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
308 | $$(dir $$@)
309 $(call MSG_GENERATE,python,$@,$<)
310 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
311
312 ifdef VBOX_WITH_WDDM
313 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.amd64)
314$(VBOX_PATH_CROGL_GENFILES)/cropengl-x86.def: $(PATH_SUB_CURRENT)/defs.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
315 $(call MSG_GENERATE,python,$@,$<)
316 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
317 endif #ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.amd64)
318 endif #ifdef VBOX_WITH_WDDM
319
320
321else if1of ($(KBUILD_TARGET), freebsd linux solaris)
322 # FreeBSD, Linux, Solaris
323$(VBOX_PATH_CROGL_GENFILES)/getprocaddress.c: $(PATH_SUB_CURRENT)/getprocaddress.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
324 $(call MSG_GENERATE,python,$@,$<)
325 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
326
327 if !defined(VBoxOGL_DRI) && !defined(VBoxOGL_FAKEDRI)
328 ifeq ($(KBUILD_TARGET),solaris)
329$(VBOX_PATH_CROGL_GENFILES)/solaris_exports.c: \
330 $(PATH_SUB_CURRENT)/SunOS_exports.py \
331 $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
332 | $$(dir $$@)
333 $(call MSG_GENERATE,python,$@,$<)
334 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
335
336 else ifeq ($(KBUILD_TARGET),freebsd)
337$(VBOX_PATH_CROGL_GENFILES)/freebsd_exports.c: \
338 $(PATH_SUB_CURRENT)/FreeBSD_exports.py \
339 $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
340 | $$(dir $$@)
341 $(call MSG_GENERATE,python,$@,$<)
342 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
343
344 else
345$(VBOX_PATH_CROGL_GENFILES)/linux_exports.c: \
346 $(PATH_SUB_CURRENT)/Linux_exports.py \
347 $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
348 | $$(dir $$@)
349 $(call MSG_GENERATE,python,$@,$<)
350 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
351 endif
352
353 else ifdef VBoxOGL_DRI
354$(VBOX_PATH_CROGL_GENFILES)/cr_gl.h: $(PATH_SUB_CURRENT)/cr_gl.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
355 $(call MSG_GENERATE,python,$@,$<)
356 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
357
358$(VBOX_PATH_CROGL_GENFILES)/DD_gl.h: $(PATH_SUB_CURRENT)/DD_glh.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
359 $(call MSG_GENERATE,python,$@,$<)
360 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
361
362$(VBOX_PATH_CROGL_GENFILES)/DD_gl.c: $(PATH_SUB_CURRENT)/DD_glc.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
363 $(call MSG_GENERATE,python,$@,$<)
364 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
365
366 ifeq ($(KBUILD_TARGET),solaris)
367$(VBOX_PATH_CROGL_GENFILES)/solaris_exports_dri.asm: \
368 $(PATH_SUB_CURRENT)/SunOS_i386_exports_dri.py \
369 $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
370 | $$(dir $$@)
371 $(call MSG_GENERATE,python,$@,$<)
372 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
373
374 else ifeq ($(KBUILD_TARGET),freebsd)
375$(VBOX_PATH_CROGL_GENFILES)/freebsd_exports_dri.asm: \
376 $(PATH_SUB_CURRENT)/FreeBSD_i386_exports_dri.py \
377 $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
378 | $$(dir $$@)
379 $(call MSG_GENERATE,python,$@,$<)
380 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
381
382 else
383$(VBOX_PATH_CROGL_GENFILES)/linux_exports_dri.asm: \
384 $(PATH_SUB_CURRENT)/Linux_i386_exports_dri.py \
385 $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
386 | $$(dir $$@)
387 $(call MSG_GENERATE,python,$@,$<)
388 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
389 endif
390
391 else ifdef VBoxOGL_FAKEDRI
392$(VBOX_PATH_CROGL_GENFILES)/cr_gl.h: $(PATH_SUB_CURRENT)/cr_gl.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
393 $(call MSG_GENERATE,python,$@,$<)
394 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
395
396 ifndef VBOX_OGL_GLX_USE_CSTUBS
397 ifeq ($(KBUILD_TARGET),solaris)
398$(VBOX_PATH_CROGL_GENFILES)/solaris_exports_dri.asm: \
399 $(PATH_SUB_CURRENT)/SunOS_i386_exports_dri.py \
400 $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
401 | $$(dir $$@)
402 $(call MSG_GENERATE,python,$@,$<)
403 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
404$(VBOX_PATH_CROGL_GENFILES)/solaris_glxapi_exports.asm: $(PATH_SUB_CURRENT)/SunOS_i386_glxapi_exports.py | $$(dir $$@)
405 $(call MSG_GENERATE,python,$@,$<)
406 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $<
407
408 else
409$(VBOX_PATH_CROGL_GENFILES)/linux_exports_dri.asm: \
410 $(PATH_SUB_CURRENT)/Linux_i386_exports_dri.py \
411 $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
412 | $$(dir $$@)
413 $(call MSG_GENERATE,python,$@,$<)
414 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
415$(VBOX_PATH_CROGL_GENFILES)/linux_glxapi_exports.asm: $(PATH_SUB_CURRENT)/Linux_i386_glxapi_exports.py | $$(dir $$@)
416 $(call MSG_GENERATE,python,$@,$<)
417 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $<
418 endif
419
420 else
421 ifeq ($(KBUILD_TARGET),solaris)
422$(VBOX_PATH_CROGL_GENFILES)/solaris_exports.c: \
423 $(PATH_SUB_CURRENT)/SunOS_exports.py \
424 $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
425 | $$(dir $$@)
426 $(call MSG_GENERATE,python,$@,$<)
427 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
428
429 else ifeq ($(KBUILD_TARGET),freebsd)
430$(VBOX_PATH_CROGL_GENFILES)/freebsd_exports.c: \
431 $(PATH_SUB_CURRENT)/FreeBSD_exports.py \
432 $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
433 | $$(dir $$@)
434 $(call MSG_GENERATE,python,$@,$<)
435 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
436 else
437$(VBOX_PATH_CROGL_GENFILES)/linux_exports.c: \
438 $(PATH_SUB_CURRENT)/Linux_exports.py \
439 $(VBOX_CROGL_API_FILES) $(PATH_SUB_CURRENT)/entrypoints.py \
440 | $$(dir $$@)
441 $(call MSG_GENERATE,python,$@,$<)
442 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
443 endif
444
445 endif # VBOX_OGL_GLX_USE_CSTUBS
446 endif
447endif
448
449#
450# VBoxOGLarrayspu
451#
452VBoxOGLarrayspu_TEMPLATE = VBOXCROGLR3GUESTDLL
453VBoxOGLarrayspu_INCS = \
454 array \
455 $(VBOX_GRAPHICS_INCS)
456if1of ($(KBUILD_TARGET), linux solaris freebsd)
457 VBoxOGLarrayspu_INCS += \
458 $(VBOX_GL_INCS)
459endif
460if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
461 VBoxOGLarrayspu_INSTTYPE.win = none
462 VBoxOGLarrayspu_DEBUG_INSTTYPE.win = both
463endif
464VBoxOGLarrayspu_INCS.darwin += $(PATH_OUT)/obj/VBoxOGL
465VBoxOGLarrayspu_INTERMEDIATES = \
466 $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \
467 $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h
468VBoxOGLarrayspu_SOURCES = \
469 array/arrayspu.c \
470 array/arrayspu_config.c \
471 array/arrayspu_init.c
472VBoxOGLarrayspu_SOURCES.win = \
473 array/arrayspu.def \
474 array/arrayspu.rc
475VBoxOGLarrayspu_LIBS = \
476 $(VBOX_LIB_OGL_CRUTIL) \
477 $(PATH_STAGE_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB) \
478 $(PATH_STAGE_LIB)/additions/VBoxOGLcrstate$(VBOX_SUFF_LIB)
479ifdef VBOX_WITH_CRHGSMI
480VBoxOGLarrayspu_DEFS.win += VBOX_WITH_CRHGSMI
481endif
482ifdef VBOX_WITH_WDDM
483VBoxOGLarrayspu_DEFS.win += VBOX_WITH_WDDM
484endif
485
486ifdef VBOX_WITH_WDDM
487#
488# VBoxOGLarrayspu-x86 - x86 version of VBoxOGLarrayspu built for amd64 build
489#
490VBoxOGLarrayspu-x86_EXTENDS = VBoxOGLarrayspu
491VBoxOGLarrayspu-x86_BLD_TRG_ARCH = x86
492VBoxOGLarrayspu-x86_LIBS = $(VBOX_LIB_OGL_CRUTIL_X86) \
493 $(PATH_STAGE_LIB)/additions/VBoxOGLspuload-x86$(VBOX_SUFF_LIB) \
494 $(PATH_STAGE_LIB)/additions/VBoxOGLcrstate-x86$(VBOX_SUFF_LIB)
495VBoxOGLarrayspu-x86_DEFS = $(VBoxOGLarrayspu_DEFS) VBOX_WDDM_WOW64
496endif
497
498#
499# VBoxOGLpassthroughspu
500#
501VBoxOGLpassthroughspu_TEMPLATE = VBOXCROGLR3GUESTDLL
502VBoxOGLpassthroughspu_INCS = \
503 passthrough \
504 $(VBOX_GRAPHICS_INCS)
505if1of ($(KBUILD_TARGET), linux solaris freebsd)
506 VBoxOGLpassthroughspu_INCS += \
507 $(VBOX_GL_INCS)
508endif
509if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
510 VBoxOGLpassthroughspu_INSTTYPE.win = none
511 VBoxOGLpassthroughspu_DEBUG_INSTTYPE.win = both
512endif
513VBoxOGLpassthroughspu_SOURCES = \
514 passthrough/passthroughspu_init.c \
515 $(VBOX_PATH_CROGL_GENFILES)/passthroughspu.c
516VBoxOGLpassthroughspu_SOURCES.win = \
517 passthrough/passthrough.def \
518 passthrough/passthroughspu.rc
519VBoxOGLpassthroughspu_CLEAN = \
520 $(VBOX_PATH_CROGL_GENFILES)/passthroughspu.c
521VBoxOGLpassthroughspu_LIBS = \
522 $(VBOX_LIB_OGL_CRUTIL)
523ifdef VBOX_WITH_CRHGSMI
524VBoxOGLpassthroughspu_DEFS.win += VBOX_WITH_CRHGSMI
525endif
526ifdef VBOX_WITH_WDDM
527VBoxOGLpassthroughspu_DEFS.win += VBOX_WITH_WDDM
528endif
529
530ifdef VBOX_WITH_WDDM
531#
532# VBoxOGLpassthroughspu-x86 - x86 version of VBoxOGLpassthroughspu built for amd64 build
533#
534VBoxOGLpassthroughspu-x86_EXTENDS = VBoxOGLpassthroughspu
535VBoxOGLpassthroughspu-x86_BLD_TRG_ARCH = x86
536VBoxOGLpassthroughspu-x86_LIBS = $(VBOX_LIB_OGL_CRUTIL_X86)
537VBoxOGLpassthroughspu-x86_DEFS = $(VBoxOGLpassthroughspu_DEFS) VBOX_WDDM_WOW64
538endif
539
540#
541# Generate files for VBoxOGLpassthroughspu.
542#
543$(VBOX_PATH_CROGL_GENFILES)/passthroughspu.c: $(PATH_SUB_CURRENT)/passthrough/passthrough.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
544 $(call MSG_GENERATE,python,$@,$<)
545 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
546
547#
548# VBoxOGLpackspu
549#
550VBoxOGLpackspu_TEMPLATE = VBOXCROGLR3GUESTDLL
551VBoxOGLpackspu_DEFS = TRACKS_STATE=1 PACKS=1
552VBoxOGLpackspu_INCS = \
553 pack \
554 $(VBOX_GRAPHICS_INCS)
555if1of ($(KBUILD_TARGET), linux solaris freebsd)
556 VBoxOGLpackspu_INCS += \
557 $(VBOX_GL_INCS)
558endif
559if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
560 VBoxOGLpackspu_INSTTYPE.win = none
561 VBoxOGLpackspu_DEBUG_INSTTYPE.win = both
562endif
563VBoxOGLpackspu_INTERMEDIATES = \
564 $(VBOX_PATH_CROGL_GENFILES)/packspu_proto.h \
565 $(VBOX_PATH_CROGL_GENFILES)/cr_packfunctions.h
566VBoxOGLpackspu_SOURCES = \
567 pack/packspu_bufferobject.c \
568 pack/packspu_client.c \
569 pack/packspu_config.c \
570 pack/packspu_context.c \
571 pack/packspu_getstring.c \
572 pack/packspu_init.c \
573 pack/packspu_misc.c \
574 pack/packspu_net.c \
575 pack/packspu_swapbuf.c \
576 pack/packspu_pixel.c \
577 pack/packspu_texture.c \
578 pack/packspu_getshaders.c \
579 pack/packspu_glsl.c \
580 pack/packspu_framebuffer.c \
581 $(VBOX_PATH_CROGL_GENFILES)/packspu.c \
582 $(VBOX_PATH_CROGL_GENFILES)/packspu_get.c \
583 $(VBOX_PATH_CROGL_GENFILES)/packspu_flush.c \
584 $(VBOX_PATH_CROGL_GENFILES)/packspu_beginend.c
585VBoxOGLpackspu_SOURCES.win = \
586 pack/pack.def \
587 pack/packspu.rc
588VBoxOGLpackspu_CLEAN = \
589 $(VBOX_PATH_CROGL_GENFILES)/packspu_proto.h \
590 $(VBOX_PATH_CROGL_GENFILES)/packspu.c \
591 $(VBOX_PATH_CROGL_GENFILES)/packspu_get.c \
592 $(VBOX_PATH_CROGL_GENFILES)/packspu_flush.c \
593 $(VBOX_PATH_CROGL_GENFILES)/packspu_beginend.c
594VBoxOGLpackspu_LIBS = \
595 $(VBOX_LIB_OGL_CRUTIL) \
596 $(PATH_STAGE_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB) \
597 $(PATH_STAGE_LIB)/additions/VBoxOGLcrstate$(VBOX_SUFF_LIB) \
598 $(PATH_STAGE_LIB)/additions/VBoxOGLcrpacker$(VBOX_SUFF_LIB)
599VBoxOGLpackspu_LIBS.win += \
600 $(PATH_STAGE_LIB)/additions/VBoxDispMpLogger$(VBOX_SUFF_LIB) \
601 $(PATH_STAGE_LIB)/additions/VBoxWddmUmKmt$(VBOX_SUFF_LIB) \
602 $(PATH_STAGE_LIB)/additions/VBoxCrHgsmi$(VBOX_SUFF_LIB)
603
604ifdef VBOX_WITH_CRHGSMI
605VBoxOGLpackspu_DEFS.win += VBOX_WITH_CRHGSMI
606endif
607ifdef VBOX_WITH_CRDUMPER
608VBoxOGLpackspu_DEFS += VBOX_WITH_CRDUMPER
609endif
610ifdef VBOX_WITH_CRPACKSPU_DUMPER
611VBoxOGLpackspu_DEFS += VBOX_WITH_CRPACKSPU_DUMPER
612endif
613ifdef VBOX_WITH_WDDM
614VBoxOGLpackspu_DEFS.win += VBOX_WITH_WDDM
615endif
616
617ifdef VBOX_WITH_WDDM
618#
619# VBoxOGLpackspu-x86 - x86 version of VBoxOGLpackspu built for amd64 build
620#
621VBoxOGLpackspu-x86_EXTENDS = VBoxOGLpackspu
622VBoxOGLpackspu-x86_BLD_TRG_ARCH = x86
623VBoxOGLpackspu-x86_LIBS = $(VBOX_LIB_OGL_CRUTIL_X86) \
624 $(PATH_STAGE_LIB)/additions/VBoxOGLspuload-x86$(VBOX_SUFF_LIB) \
625 $(PATH_STAGE_LIB)/additions/VBoxOGLcrstate-x86$(VBOX_SUFF_LIB) \
626 $(PATH_STAGE_LIB)/additions/VBoxOGLcrpacker-x86$(VBOX_SUFF_LIB)
627VBoxOGLpackspu-x86_LIBS.win += \
628 $(PATH_STAGE_LIB)/additions/VBoxDispMpLogger-x86$(VBOX_SUFF_LIB) \
629 $(PATH_STAGE_LIB)/additions/VBoxWddmUmKmt-x86$(VBOX_SUFF_LIB) \
630 $(PATH_STAGE_LIB)/additions/VBoxCrHgsmi-x86$(VBOX_SUFF_LIB)
631VBoxOGLpackspu-x86_DEFS = $(VBoxOGLpackspu_DEFS) VBOX_WDDM_WOW64
632endif
633
634#
635# Generate files for VBoxOGLpackspu.
636#
637$(VBOX_PATH_CROGL_GENFILES)/packspu.c: $(addprefix $(PATH_SUB_CURRENT)/pack/,pack.py packspu_special packspu_unimplemented_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
638 $(call MSG_GENERATE,python,$@,$<)
639 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
640
641$(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 $$@)
642 $(call MSG_GENERATE,python,$@,$<)
643 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
644
645$(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 $$@)
646 $(call MSG_GENERATE,python,$@,$<)
647 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
648
649$(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 $$@)
650 $(call MSG_GENERATE,python,$@,$<)
651 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
652
653$(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 $$@)
654 $(call MSG_GENERATE,python,$@,$<)
655 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
656
657#
658# VBoxOGLfeedbackspu
659#
660VBoxOGLfeedbackspu_TEMPLATE = VBOXCROGLR3GUESTDLL
661VBoxOGLfeedbackspu_INCS = \
662 feedback \
663 $(VBOX_GRAPHICS_INCS)
664if1of ($(KBUILD_TARGET), linux solaris freebsd)
665 VBoxOGLfeedbackspu_INCS += \
666 $(VBOX_GL_INCS)
667endif
668if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
669 VBoxOGLfeedbackspu_INSTTYPE.win = none
670 VBoxOGLfeedbackspu_DEBUG_INSTTYPE.win = both
671endif
672VBoxOGLarrayspu_INTERMEDIATES = \
673 $(VBOX_PATH_CROGL_GENFILES)/feedbackspu_proto.h
674VBoxOGLfeedbackspu_SOURCES = \
675 feedback/feedbackspu_config.c \
676 feedback/feedbackspu_init.c \
677 feedback/feedback_context.c \
678 $(VBOX_PATH_CROGL_GENFILES)/feedbackspu.c \
679 $(VBOX_PATH_CROGL_GENFILES)/feedbackspu_state.c
680VBoxOGLfeedbackspu_SOURCES.win = \
681 feedback/feedback.def \
682 feedback/feedbackspu.rc
683VBoxOGLfeedbackspu_CLEAN = \
684 $(VBOX_PATH_CROGL_GENFILES)/feedbackspu_proto.h \
685 $(VBOX_PATH_CROGL_GENFILES)/feedbackspu.c \
686 $(VBOX_PATH_CROGL_GENFILES)/feedbackspu_state.c
687VBoxOGLfeedbackspu_LIBS = \
688 $(VBOX_LIB_OGL_CRUTIL) \
689 $(PATH_STAGE_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB) \
690 $(PATH_STAGE_LIB)/additions/VBoxOGLcrstate$(VBOX_SUFF_LIB)
691ifdef VBOX_WITH_CRHGSMI
692VBoxOGLfeedbackspu_DEFS.win += VBOX_WITH_CRHGSMI
693endif
694ifdef VBOX_WITH_WDDM
695VBoxOGLfeedbackspu_DEFS.win += VBOX_WITH_WDDM
696endif
697
698ifdef VBOX_WITH_WDDM
699#
700# VBoxOGLfeedbackspu-x86 - x86 version of VBoxOGLfeedbackspu built for amd64 build
701#
702VBoxOGLfeedbackspu-x86_EXTENDS = VBoxOGLfeedbackspu
703VBoxOGLfeedbackspu-x86_BLD_TRG_ARCH = x86
704VBoxOGLfeedbackspu-x86_LIBS = $(VBOX_LIB_OGL_CRUTIL_X86) \
705 $(PATH_STAGE_LIB)/additions/VBoxOGLspuload-x86$(VBOX_SUFF_LIB) \
706 $(PATH_STAGE_LIB)/additions/VBoxOGLcrstate-x86$(VBOX_SUFF_LIB)
707VBoxOGLfeedbackspu-x86_DEFS = $(VBoxOGLfeedbackspu_DEFS) VBOX_WDDM_WOW64
708endif
709
710#
711# Generate files for VBoxOGLfeedbackspu.
712#
713$(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 $$@)
714 $(call MSG_GENERATE,python,$@,$<)
715 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
716
717$(VBOX_PATH_CROGL_GENFILES)/feedbackspu_state.c: $(addprefix $(PATH_SUB_CURRENT)/feedback/,feedback_state.py feedback_state_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
718 $(call MSG_GENERATE,python,$@,$<)
719 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
720
721$(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 $$@)
722 $(call MSG_GENERATE,python,$@,$<)
723 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
724
725VBoxEGL_TEMPLATE = VBOXCROGLR3GUESTDLL
726VBoxEGL_SOURCES = egl.c
727ifndef VBOX_USE_SYSTEM_GL_HEADERS
728 VBoxEGL_INCS = $(VBOX_PATH_X11_ROOT)/mesa-11.0.7
729endif
730VBoxEGL_LIBS = $(VBOX_LIB_OGL) # $(VBOX_LIB_IPRT_GUEST_R3_SHARED)
731VBoxEGL_SONAME.linux = libEGL.so.1
732
733include $(FILE_KBUILD_SUB_FOOTER)
734
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