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