VirtualBox

source: vbox/trunk/src/VBox/GuestHost/OpenGL/Makefile.kmk@ 43785

Last change on this file since 43785 was 42499, checked in by vboxsync, 12 years ago

crOgl/wddm: per-context connections

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 25.9 KB
Line 
1# $Id: Makefile.kmk 42499 2012-08-01 10:26:43Z vboxsync $
2## @file
3# Sub-Makefile for the VirtualBox Guest/Host 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
18SUB_DEPTH = ../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21
22#
23# Target lists.
24#
25BLDDIRS += \
26 $(VBOX_PATH_CROGL_GENFILES)/ \
27 $(VBOX_PATH_CROGL_GENFILES)/state/
28
29ifdef VBOX_WITH_ADDITIONS
30 DLLS += VBoxOGLcrutil VBoxOGLerrorspu
31 LIBRARIES += VBoxOGLcrpacker VBoxOGLspuload VBoxOGLcrstate
32endif
33
34ifndef VBOX_ONLY_ADDITIONS
35 DLLS += VBoxOGLhostcrutil VBoxOGLhosterrorspu
36 LIBRARIES += VBoxOGLhostcrpacker VBoxOGLhostspuload VBoxOGLhostcrstate
37endif
38
39#
40# VBoxOGLcrutil
41#
42VBoxOGLcrutil_TEMPLATE = VBOXCROGLR3GUESTDLL
43if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
44 VBoxOGLcrutil_INSTTYPE.win = none
45 VBoxOGLcrutil_DEBUG_INSTTYPE.win = both
46endif
47VBoxOGLcrutil_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
48VBoxOGLcrutil_INTERMEDIATES = $(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h
49if1of ($(KBUILD_TARGET), linux solaris freebsd)
50 VBoxOGLcrutil_INCS += \
51 $(VBOX_MESA_INCS)
52endif
53VBoxOGLcrutil_SOURCES = \
54 util/bbox.c \
55 util/bufpool.c \
56 util/calllists.c \
57 util/devnull.c \
58 util/dll.c \
59 util/endian.c \
60 util/environment.c \
61 util/error.c \
62 util/filenet.c \
63 util/hash.c \
64 util/hull.c \
65 util/list.c \
66 util/matrix.c \
67 util/mem.c \
68 util/net.c \
69 util/pixel.c \
70 util/process.c \
71 util/rand.c \
72 util/string.c \
73 util/threads.c \
74 util/tcpip.c \
75 util/udptcpip.c \
76 util/timer.c \
77 util/url.c \
78 util/warp.c \
79 util/vboxhgcm.c \
80 $(VBOX_PATH_CROGL_GENFILES)/debug_opcodes.c
81VBoxOGLcrutil_SOURCES.win.x86 = \
82 util/util.def \
83 util/util.rc
84VBoxOGLcrutil_LIBS.win = \
85 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
86 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
87VBoxOGLcrutil_LIBS = \
88 $(VBOX_LIB_IPRT_GUEST_R3_SHARED) \
89 $(VBOX_LIB_VBGL_R3_SHARED)
90ifdef VBOX_WITH_CRHGSMI
91VBoxOGLcrutil_DEFS.win += VBOX_WITH_CRHGSMI
92VBoxOGLcrutil_LIBS.win += $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi$(VBOX_SUFF_LIB)
93endif
94ifdef VBOX_WITH_WDDM
95VBoxOGLcrutil_DEFS.win += VBOX_WITH_WDDM
96VBoxOGLcrutil_DEFS.win += CR_DEBUG_BACKDOOR_ENABLE
97VBoxOGLcrutil_INCS.win += $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm
98VBoxOGLcrutil_LIBS.win += $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger$(VBOX_SUFF_LIB)
99endif
100VBoxOGLcrutil_CLEAN = \
101 $(VBOX_PATH_CROGL_GENFILES)/debug_opcodes.c
102
103# vc7 hangs during compilation of this file when optimizations are enabled.
104VBoxOGLcrutil_pixel.c_CFLAGS.win.x86 += -Od
105VBoxOGLhostcrutil_pixel.c_CFLAGS.win.x86 += -Od
106
107if defined(VBOX_WITH_WDDM) && defined(VBOX_WITH_ADDITIONS)
108#
109# VBoxOGLcrutil-x86 - x86 VBoxOGLcrutil version built for amd64 build
110#
111DLLS.win.amd64 += VBoxOGLcrutil-x86
112VBoxOGLcrutil-x86_TEMPLATE = VBOXCROGLR3GUESTDLL
113VBoxOGLcrutil-x86_EXTENDS = VBoxOGLcrutil
114VBoxOGLcrutil-x86_BLD_TRG_ARCH = x86
115VBoxOGLcrutil-x86_LIBS = $(VBOX_LIB_IPRT_GUEST_R3_SHARED_X86) \
116 $(VBOX_LIB_VBGL_R3_SHARED_X86)
117VBoxOGLcrutil-x86_LIBS.win = \
118 $(PATH_SDK_$(VBOX_WINDDK)_LIB.x86)/ddraw.lib \
119 $(PATH_SDK_$(VBOX_WINDDK)_LIB.x86)/dxguid.lib
120ifdef VBOX_WITH_CRHGSMI
121# VBOX_WITH_CRHGSMI define is inherited from VBoxOGLcrutil
122VBoxOGLcrutil-x86_LIBS.win += $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi-x86$(VBOX_SUFF_LIB)
123endif
124VBoxOGLcrutil-x86_DEFS = $(VBoxOGLcrutil_DEFS) VBOX_WDDM_WOW64
125ifdef VBOX_WITH_WDDM
126# CR_DEBUG_BACKDOOR_ENABLE define is inherited from VBoxOGLcrutil
127VBoxOGLcrutil-x86_INCS.win += $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm
128VBoxOGLcrutil-x86_LIBS.win += $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger-x86$(VBOX_SUFF_LIB)
129endif
130# vc7 hangs during compilation of this file when optimizations are enabled.
131VBoxOGLcrutil-x86_pixel.c_CFLAGS += -Od
132VBoxOGLcrutil-x86_pixel.c_CFLAGS += -Od
133endif
134
135#
136# VBoxOGLhostcrutil
137#
138VBoxOGLhostcrutil_EXTENDS = VBoxOGLcrutil
139VBoxOGLhostcrutil_TEMPLATE = VBOXCROGLR3HOSTDLL
140if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
141 VBoxOGLhostcrutil_INSTTYPE.win = both
142endif
143VBoxOGLhostcrutil_LDFLAGS.darwin = $(VBoxOGLcrutil_LDFLAGS.darwin) \
144 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxOGLhostcrutil.dylib
145VBoxOGLhostcrutil_LIBS.win = \
146 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
147 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
148VBoxOGLhostcrutil_LIBS = $(LIB_RUNTIME)
149ifdef VBOX_WITH_CRHGSMI
150VBoxOGLhostcrutil_DEFS += VBOX_WITH_CRHGSMI
151endif
152ifdef VBOX_WITH_WDDM
153VBoxOGLhostcrutil_INCS.win = $(NO_SUCH_VARIABLE)
154VBoxOGLhostcrutil_DEFS.win = $(NO_SUCH_VARIABLE)
155endif
156
157#
158# Generate files for VBoxOGLcrutil and VBoxOGLhostcrutil.
159#
160$(VBOX_PATH_CROGL_GENFILES)/debug_opcodes.c: $(PATH_SUB_CURRENT)/util/debug_opcodes.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
161 $(call MSG_GENERATE,python,$@,$<)
162 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
163
164#
165# VBoxOGLcrpacker
166#
167VBoxOGLcrpacker_TEMPLATE = VBOXCROGLR3GUESTLIB
168VBoxOGLcrpacker_INCS = \
169 packer
170if1of ($(KBUILD_TARGET), linux solaris freebsd)
171 VBoxOGLcrpacker_INCS += \
172 $(VBOX_MESA_INCS)
173endif
174VBoxOGLcrpacker_INTERMEDIATES = \
175 $(VBOX_PATH_CROGL_GENFILES)/cr_packfunctions.h \
176 $(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h \
177 $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \
178 $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h \
179 $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h
180VBoxOGLcrpacker_SOURCES = \
181 packer/pack_arrays.c \
182 packer/pack_beginend.c \
183 packer/pack_bounds.c \
184 packer/pack_buffer.c \
185 packer/pack_bufferobject.c \
186 packer/pack_client.c \
187 packer/pack_clipplane.c \
188 packer/pack_context.c \
189 packer/pack_error.c \
190 packer/pack_extensions.c \
191 packer/pack_feedback.c \
192 packer/pack_fence.c \
193 packer/pack_fog.c \
194 packer/pack_init.c \
195 packer/pack_lights.c \
196 packer/pack_lists.c \
197 packer/pack_swap_lists.c \
198 packer/pack_map.c \
199 packer/pack_point.c \
200 packer/pack_swap_map.c \
201 packer/pack_misc.c \
202 packer/pack_materials.c \
203 packer/pack_matrices.c \
204 packer/pack_pixels.c \
205 packer/pack_pixelmap.c \
206 packer/pack_swap_pixelmap.c \
207 packer/pack_program.c \
208 packer/pack_regcombiner.c \
209 packer/pack_stipple.c \
210 packer/pack_texture.c \
211 packer/pack_swap_texture.c \
212 packer/pack_visibleregion.c \
213 packer/pack_shaders.c \
214 packer/pack_framebuffer.c \
215 $(VBOX_PATH_CROGL_GENFILES)/pack_arrays_swap.c \
216 $(VBOX_PATH_CROGL_GENFILES)/pack_bounds_swap.c \
217 $(VBOX_PATH_CROGL_GENFILES)/pack_bufferobject_swap.c \
218 $(VBOX_PATH_CROGL_GENFILES)/pack_client_swap.c \
219 $(VBOX_PATH_CROGL_GENFILES)/pack_clipplane_swap.c \
220 $(VBOX_PATH_CROGL_GENFILES)/pack_fog_swap.c \
221 $(VBOX_PATH_CROGL_GENFILES)/pack_lights_swap.c \
222 $(VBOX_PATH_CROGL_GENFILES)/pack_materials_swap.c \
223 $(VBOX_PATH_CROGL_GENFILES)/pack_matrices_swap.c \
224 $(VBOX_PATH_CROGL_GENFILES)/pack_misc_swap.c \
225 $(VBOX_PATH_CROGL_GENFILES)/pack_pixels_swap.c \
226 $(VBOX_PATH_CROGL_GENFILES)/pack_point_swap.c \
227 $(VBOX_PATH_CROGL_GENFILES)/pack_program_swap.c \
228 $(VBOX_PATH_CROGL_GENFILES)/pack_regcombiner_swap.c \
229 $(VBOX_PATH_CROGL_GENFILES)/pack_stipple_swap.c \
230 $(VBOX_PATH_CROGL_GENFILES)/pack_bbox.c \
231 $(VBOX_PATH_CROGL_GENFILES)/pack_current.c \
232 $(VBOX_PATH_CROGL_GENFILES)/packer.c
233VBoxOGLcrpacker_CLEAN = \
234 $(VBOX_PATH_CROGL_GENFILES)/pack_arrays_swap.c \
235 $(VBOX_PATH_CROGL_GENFILES)/pack_bounds_swap.c \
236 $(VBOX_PATH_CROGL_GENFILES)/pack_bufferobject_swap.c \
237 $(VBOX_PATH_CROGL_GENFILES)/pack_client_swap.c \
238 $(VBOX_PATH_CROGL_GENFILES)/pack_clipplane_swap.c \
239 $(VBOX_PATH_CROGL_GENFILES)/pack_fog_swap.c \
240 $(VBOX_PATH_CROGL_GENFILES)/pack_lights_swap.c \
241 $(VBOX_PATH_CROGL_GENFILES)/pack_materials_swap.c \
242 $(VBOX_PATH_CROGL_GENFILES)/pack_matrices_swap.c \
243 $(VBOX_PATH_CROGL_GENFILES)/pack_misc_swap.c \
244 $(VBOX_PATH_CROGL_GENFILES)/pack_pixels_swap.c \
245 $(VBOX_PATH_CROGL_GENFILES)/pack_point_swap.c \
246 $(VBOX_PATH_CROGL_GENFILES)/pack_program_swap.c \
247 $(VBOX_PATH_CROGL_GENFILES)/pack_regcombiner_swap.c \
248 $(VBOX_PATH_CROGL_GENFILES)/pack_stipple_swap.c \
249 $(VBOX_PATH_CROGL_GENFILES)/pack_bbox.c \
250 $(VBOX_PATH_CROGL_GENFILES)/pack_current.c \
251 $(VBOX_PATH_CROGL_GENFILES)/packer.c \
252 $(VBOX_PATH_CROGL_GENFILES)/cr_packfunctions.h \
253 $(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h \
254 $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h
255ifdef VBOX_WITH_CRHGSMI
256VBoxOGLcrpacker_DEFS.win += VBOX_WITH_CRHGSMI
257endif
258ifdef VBOX_WITH_WDDM
259VBoxOGLcrpacker_DEFS.win += VBOX_WITH_WDDM
260endif
261
262if defined(VBOX_WITH_WDDM) && defined(VBOX_WITH_ADDITIONS)
263#
264# VBoxOGLcrpacker-x86 - x86 VBoxOGLcrpacker version built for amd64 build
265#
266LIBRARIES.win.amd64 += VBoxOGLcrpacker-x86
267VBoxOGLcrpacker-x86_TEMPLATE = VBOXCROGLR3GUESTLIB
268VBoxOGLcrpacker-x86_EXTENDS = VBoxOGLcrpacker
269VBoxOGLcrpacker-x86_BLD_TRG_ARCH = x86
270VBoxOGLcrpacker-x86_DEFS = $(VBoxOGLcrpacker_DEFS) VBOX_WDDM_WOW64
271endif
272
273#
274# VBoxOGLhostcrpacker
275#
276VBoxOGLhostcrpacker_EXTENDS = VBoxOGLcrpacker
277VBoxOGLhostcrpacker_TEMPLATE = VBOXCROGLR3HOSTLIB
278
279#
280# Generate files for VBoxOGLcrpacker and VBoxOGLhostcrpacker.
281#
282$(VBOX_PATH_CROGL_GENFILES)/packer.def: $(PATH_SUB_CURRENT)/packer/packer_defs.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
286$(VBOX_PATH_CROGL_GENFILES)/cr_packfunctions.h: $(PATH_SUB_CURRENT)/packer/pack_header.py $(PATH_SUB_CURRENT)/packer/packer_special $(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) $(<D)
289
290$(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h: $(PATH_SUB_CURRENT)/packer/opcodes.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
291 $(call MSG_GENERATE,python,$@,$<)
292 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
293
294$(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h: $(PATH_SUB_CURRENT)/packer/pack_currentheader.py $(PATH_SUB_CURRENT)/packer/pack_currenttypes.py | $$(dir $(VBOX_PATH_CROGL_GENFILES)) $$(dir $$@)
295 $(call MSG_GENERATE,python,$@,$<)
296 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $<
297
298$(VBOX_PATH_CROGL_GENFILES)/packer.c: $(PATH_SUB_CURRENT)/packer/packer.py $(PATH_SUB_CURRENT)/packer/packer_special $(VBOX_CROGL_API_FILES) | $$(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) $(<D)
301
302$(VBOX_PATH_CROGL_GENFILES)/pack_bbox.c: $(PATH_SUB_CURRENT)/packer/packer_bbox.py | $$(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
306$(VBOX_PATH_CROGL_GENFILES)/pack_current.c: $(PATH_SUB_CURRENT)/packer/pack_current.py $(PATH_SUB_CURRENT)/packer/pack_currenttypes.py | $$(dir $$@)
307 $(call MSG_GENERATE,python,$@,$<)
308 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $<
309
310$(VBOX_PATH_CROGL_GENFILES)/%_swap.c: $(PATH_SUB_CURRENT)/packer/%.c $(PATH_SUB_CURRENT)/packer/pack_swap.py | $$(dir $$@)
311 $(call MSG_GENERATE,python,$@,$<)
312 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/pack_swap.py $<
313
314
315#
316# VBoxOGLspuload
317#
318VBoxOGLspuload_TEMPLATE = VBOXCROGLR3GUESTLIB
319VBoxOGLspuload_INTERMEDIATES = \
320 $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h
321if1of ($(KBUILD_TARGET), linux solaris freebsd)
322 VBoxOGLspuload_INCS += \
323 $(VBOX_MESA_INCS)
324endif
325VBoxOGLspuload_SOURCES = \
326 spu_loader/spuinit.c \
327 spu_loader/spuload.c \
328 spu_loader/choosevisual.c \
329 $(VBOX_PATH_CROGL_GENFILES)/spuchange.c \
330 $(VBOX_PATH_CROGL_GENFILES)/spucopy.c \
331 $(VBOX_PATH_CROGL_GENFILES)/dispatch.c \
332 $(VBOX_PATH_CROGL_GENFILES)/glloader.c
333VBoxOGLspuload_CLEAN = \
334 $(VBOX_PATH_CROGL_GENFILES)/spuchange.c \
335 $(VBOX_PATH_CROGL_GENFILES)/spucopy.c \
336 $(VBOX_PATH_CROGL_GENFILES)/dispatch.c \
337 $(VBOX_PATH_CROGL_GENFILES)/glloader.c \
338 $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h
339ifdef VBOX_WITH_CRHGSMI
340VBoxOGLspuload_DEFS.win += VBOX_WITH_CRHGSMI
341endif
342ifdef VBOX_WITH_WDDM
343VBoxOGLspuload_DEFS.win += VBOX_WITH_WDDM
344endif
345
346if defined(VBOX_WITH_WDDM) && defined(VBOX_WITH_ADDITIONS)
347#
348# VBoxOGLspuload-x86 - x86 VBoxOGLspuload version built for amd64 build
349#
350LIBRARIES.win.amd64 += VBoxOGLspuload-x86
351VBoxOGLspuload-x86_TEMPLATE = VBOXCROGLR3GUESTLIB
352VBoxOGLspuload-x86_EXTENDS = VBoxOGLspuload
353VBoxOGLspuload-x86_BLD_TRG_ARCH = x86
354VBoxOGLspuload-x86_DEFS = $(VBoxOGLspuload_DEFS) VBOX_WDDM_WOW64
355endif
356
357
358#
359# VBoxOGLhostspuload
360#
361VBoxOGLhostspuload_EXTENDS = VBoxOGLspuload
362VBoxOGLhostspuload_TEMPLATE = VBOXCROGLR3HOSTLIB
363
364#
365# Generate files for VBoxOGLspuload and VBoxOGLhostspuload.
366#
367$(VBOX_PATH_CROGL_GENFILES)/dispatch.c: $(PATH_SUB_CURRENT)/spu_loader/dispatch.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
368 $(call MSG_GENERATE,python,$@,$<)
369 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
370
371$(VBOX_PATH_CROGL_GENFILES)/spucopy.c: $(PATH_SUB_CURRENT)/spu_loader/spucopy.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
372 $(call MSG_GENERATE,python,$@,$<)
373 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
374
375$(VBOX_PATH_CROGL_GENFILES)/spuchange.c: $(PATH_SUB_CURRENT)/spu_loader/spuchange.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
376 $(call MSG_GENERATE,python,$@,$<)
377 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
378
379$(VBOX_PATH_CROGL_GENFILES)/glloader.c: $(PATH_SUB_CURRENT)/spu_loader/glloader.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
380 $(call MSG_GENERATE,python,$@,$<)
381 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
382
383$(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h: $(PATH_SUB_CURRENT)/spu_loader/dispatchheader.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
384 $(call MSG_GENERATE,python,$@,$<)
385 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
386
387
388#
389# VBoxOGLcrstate
390#
391VBoxOGLcrstate_TEMPLATE = VBOXCROGLR3GUESTLIB
392VBoxOGLcrstate_INCS = \
393 state_tracker
394if1of ($(KBUILD_TARGET), linux solaris freebsd)
395 VBoxOGLcrstate_INCS += \
396 $(VBOX_MESA_INCS)
397endif
398VBoxOGLcrstate_INTERMEDIATES = \
399 $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h \
400 $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \
401 $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h
402VBoxOGLcrstate_SOURCES = \
403 state_tracker/state_attrib.c \
404 state_tracker/state_buffer.c \
405 state_tracker/state_bufferobject.c \
406 state_tracker/state_client.c \
407 state_tracker/state_current.c \
408 state_tracker/state_diff.c \
409 state_tracker/state_enable.c \
410 state_tracker/state_error.c \
411 state_tracker/state_evaluators.c \
412 state_tracker/state_feedback.c \
413 state_tracker/state_fence.c \
414 state_tracker/state_flush.c \
415 state_tracker/state_fog.c \
416 state_tracker/state_getstring.c \
417 state_tracker/state_hint.c \
418 state_tracker/state_init.c \
419 state_tracker/state_lighting.c \
420 state_tracker/state_limits.c \
421 state_tracker/state_line.c \
422 state_tracker/state_lists.c \
423 state_tracker/state_multisample.c \
424 state_tracker/state_occlude.c \
425 state_tracker/state_pixel.c \
426 state_tracker/state_point.c \
427 state_tracker/state_polygon.c \
428 state_tracker/state_program.c \
429 state_tracker/state_rasterpos.c \
430 state_tracker/state_regcombiner.c \
431 state_tracker/state_stencil.c \
432 state_tracker/state_texture.c \
433 state_tracker/state_teximage.c \
434 state_tracker/state_texdiff.c \
435 state_tracker/state_transform.c \
436 state_tracker/state_viewport.c \
437 state_tracker/state_framebuffer.c \
438 state_tracker/state_glsl.c \
439 $(VBOX_PATH_CROGL_GENFILES)/state_buffer_gen.c \
440 $(VBOX_PATH_CROGL_GENFILES)/state_current_gen.c \
441 $(VBOX_PATH_CROGL_GENFILES)/state_fog_gen.c \
442 $(VBOX_PATH_CROGL_GENFILES)/state_hint_gen.c \
443 $(VBOX_PATH_CROGL_GENFILES)/state_lighting_gen.c \
444 $(VBOX_PATH_CROGL_GENFILES)/state_line_gen.c \
445 $(VBOX_PATH_CROGL_GENFILES)/state_multisample_gen.c \
446 $(VBOX_PATH_CROGL_GENFILES)/state_point_gen.c \
447 $(VBOX_PATH_CROGL_GENFILES)/state_polygon_gen.c \
448 $(VBOX_PATH_CROGL_GENFILES)/state_regcombiner_gen.c \
449 $(VBOX_PATH_CROGL_GENFILES)/state_stencil_gen.c \
450 $(VBOX_PATH_CROGL_GENFILES)/state_viewport_gen.c \
451 $(VBOX_PATH_CROGL_GENFILES)/state_get.c \
452 $(VBOX_PATH_CROGL_GENFILES)/state_isenabled.c
453VBoxOGLcrstate_CLEAN = \
454 $(VBOX_PATH_CROGL_GENFILES)/state_buffer_gen.c \
455 $(VBOX_PATH_CROGL_GENFILES)/state_current_gen.c \
456 $(VBOX_PATH_CROGL_GENFILES)/state_fog_gen.c \
457 $(VBOX_PATH_CROGL_GENFILES)/state_hint_gen.c \
458 $(VBOX_PATH_CROGL_GENFILES)/state_lighting_gen.c \
459 $(VBOX_PATH_CROGL_GENFILES)/state_line_gen.c \
460 $(VBOX_PATH_CROGL_GENFILES)/state_multisample_gen.c \
461 $(VBOX_PATH_CROGL_GENFILES)/state_point_gen.c \
462 $(VBOX_PATH_CROGL_GENFILES)/state_polygon_gen.c \
463 $(VBOX_PATH_CROGL_GENFILES)/state_regcombiner_gen.c \
464 $(VBOX_PATH_CROGL_GENFILES)/state_stencil_gen.c \
465 $(VBOX_PATH_CROGL_GENFILES)/state_viewport_gen.c \
466 $(VBOX_PATH_CROGL_GENFILES)/state_get.c \
467 $(VBOX_PATH_CROGL_GENFILES)/state_isenabled.c \
468 $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h
469ifneq ($(KBUILD_TARGET),win)
470state_tracker/state_lists.c_CFLAGS += $(VBOX_GCC_Wno-pointer-sign)
471VBoxOGLcrstate_CFLAGS +=
472endif
473ifdef VBOX_WITH_CRHGSMI
474VBoxOGLcrstate_DEFS.win += VBOX_WITH_CRHGSMI
475endif
476ifdef VBOX_WITH_WDDM
477VBoxOGLcrstate_DEFS.win += VBOX_WITH_WDDM
478endif
479
480if defined(VBOX_WITH_WDDM) && defined(VBOX_WITH_ADDITIONS)
481#
482# VBoxOGLcrstate-x86 - x86 VBoxOGLcrstate version built for amd64 build
483#
484LIBRARIES.win.amd64 += VBoxOGLcrstate-x86
485VBoxOGLcrstate-x86_TEMPLATE = VBOXCROGLR3GUESTLIB
486VBoxOGLcrstate-x86_EXTENDS = VBoxOGLcrstate
487VBoxOGLcrstate-x86_BLD_TRG_ARCH = x86
488VBoxOGLcrstate-x86_DEFS = $(VBoxOGLcrstate_DEFS) VBOX_WDDM_WOW64
489endif
490
491
492#
493# VBoxOGLhostcrstate
494#
495VBoxOGLhostcrstate_EXTENDS = VBoxOGLcrstate
496VBoxOGLhostcrstate_TEMPLATE = VBOXCROGLR3HOSTLIB
497VBoxOGLhostcrstate_SOURCES = \
498 $(VBoxOGLcrstate_SOURCES) \
499 state_tracker/state_snapshot.c
500
501#
502# Generate files for VBoxOGLcrstate and VBoxOGLhostcrstate.
503#
504
505
506$(VBOX_PATH_CROGL_GENFILES)/state_buffer_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_buffer.txt gendiffcode.py) | $$(dir $$@)
507 $(call MSG_GENERATE,python,$@,$<)
508 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py buffer Buffer $(<D)
509
510$(VBOX_PATH_CROGL_GENFILES)/state_client_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_client.txt gendiffcode.py) | $$(dir $$@)
511 $(call MSG_GENERATE,python,$@,$<)
512 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py client Client $(<D)
513
514$(VBOX_PATH_CROGL_GENFILES)/state_current_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_current.py convert.py) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
515 $(call MSG_GENERATE,python,$@,$<)
516 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/state_current.py
517
518$(VBOX_PATH_CROGL_GENFILES)/state_fog_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_fog.txt gendiffcode.py) | $$(dir $$@)
519 $(call MSG_GENERATE,python,$@,$<)
520 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py fog Fog $(<D)
521
522$(VBOX_PATH_CROGL_GENFILES)/state_hint_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_hint.txt gendiffcode.py) | $$(dir $$@)
523 $(call MSG_GENERATE,python,$@,$<)
524 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py hint Hint $(<D)
525
526$(VBOX_PATH_CROGL_GENFILES)/state_lighting_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_lighting.txt gendiffcode.py) | $$(dir $$@)
527 $(call MSG_GENERATE,python,$@,$<)
528 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py lighting Lighting $(<D)
529
530$(VBOX_PATH_CROGL_GENFILES)/state_line_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_line.txt gendiffcode.py) | $$(dir $$@)
531 $(call MSG_GENERATE,python,$@,$<)
532 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py line Line $(<D)
533
534$(VBOX_PATH_CROGL_GENFILES)/state_multisample_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_multisample.txt gendiffcode.py) | $$(dir $$@)
535 $(call MSG_GENERATE,python,$@,$<)
536 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py multisample Multisample $(<D)
537
538$(VBOX_PATH_CROGL_GENFILES)/state_point_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_point.txt gendiffcode.py) | $$(dir $$@)
539 $(call MSG_GENERATE,python,$@,$<)
540 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py point Point $(<D)
541
542$(VBOX_PATH_CROGL_GENFILES)/state_polygon_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_polygon.txt gendiffcode.py) | $$(dir $$@)
543 $(call MSG_GENERATE,python,$@,$<)
544 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py polygon Polygon $(<D)
545
546$(VBOX_PATH_CROGL_GENFILES)/state_regcombiner_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_regcombiner.txt gendiffcode.py) | $$(dir $$@)
547 $(call MSG_GENERATE,python,$@,$<)
548 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py regcombiner RegCombiner $(<D)
549
550$(VBOX_PATH_CROGL_GENFILES)/state_stencil_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_stencil.txt gendiffcode.py) | $$(dir $$@)
551 $(call MSG_GENERATE,python,$@,$<)
552 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py stencil Stencil $(<D)
553
554$(VBOX_PATH_CROGL_GENFILES)/state_viewport_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_viewport.txt gendiffcode.py) | $$(dir $$@)
555 $(call MSG_GENERATE,python,$@,$<)
556 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py viewport Viewport $(<D)
557
558$(VBOX_PATH_CROGL_GENFILES)/state_get.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_get.py state_get.txt state_extensions_get.txt) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
559 $(call MSG_GENERATE,python,$@,$<)
560 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/state_get.py $(VBOX_PATH_CROGL_GLAPI) $(<D)
561
562$(VBOX_PATH_CROGL_GENFILES)/state_isenabled.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_isenabled.py state_isenabled.txt state_extensions_isenabled.txt) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
563 $(call MSG_GENERATE,python,$@,$<)
564 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/state_isenabled.py $(VBOX_PATH_CROGL_GLAPI) $(<D)
565
566$(VBOX_PATH_CROGL_GENFILES)/state.def: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_defs.py state_special state_select_special state_feedback_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
567 $(call MSG_GENERATE,python,$@,$<)
568 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/state_defs.py $(VBOX_PATH_CROGL_GLAPI) $(<D)
569
570$(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_funcs.py state_special state_feedback_special state_select_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
571 $(call MSG_GENERATE,python,$@,$<)
572 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/state_funcs.py $(VBOX_PATH_CROGL_GLAPI) $(<D)
573
574
575#
576# VBoxOGLerrorspu
577# @remark See HostServices/OpenGL/Makefile for and explanation of the gl.h
578# and glu.h intermediate files on darwin.
579#
580VBoxOGLerrorspu_TEMPLATE = VBOXCROGLR3GUESTDLL
581if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
582 VBoxOGLerrorspu_INSTTYPE.win = none
583 VBoxOGLerrorspu_DEBUG_INSTTYPE.win = both
584endif
585VBoxOGLerrorspu_INTERMEDIATES = \
586 $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h
587if1of ($(KBUILD_TARGET), linux solaris freebsd)
588 VBoxOGLerrorspu_INCS += \
589 $(VBOX_MESA_INCS)
590endif
591VBoxOGLerrorspu_SOURCES = \
592 $(VBOX_PATH_CROGL_GENFILES)/errorspu.c \
593 error/errorspu_init.c
594VBoxOGLerrorspu_SOURCES.win.x86 = \
595 error/error.def \
596 error/errorspu.rc
597VBoxOGLerrorspu_CLEAN = \
598 $(VBOX_PATH_CROGL_GENFILES)/errorspu.c
599VBoxOGLerrorspu_LIBS = \
600 $(VBOX_LIB_OGL_CRUTIL)
601ifdef VBOX_WITH_CRHGSMI
602VBoxOGLerrorspu_DEFS.win += VBOX_WITH_CRHGSMI
603endif
604ifdef VBOX_WITH_WDDM
605VBoxOGLerrorspu_DEFS.win += VBOX_WITH_WDDM
606endif
607
608
609if defined(VBOX_WITH_WDDM) && defined(VBOX_WITH_ADDITIONS)
610#
611# VBoxOGLerrorspu-x86 - x86 VBoxOGLerrorspu version built for amd64 build
612#
613DLLS.win.amd64 += VBoxOGLerrorspu-x86
614VBoxOGLerrorspu-x86_TEMPLATE = VBOXCROGLR3GUESTDLL
615VBoxOGLerrorspu-x86_EXTENDS = VBoxOGLerrorspu
616VBoxOGLerrorspu-x86_BLD_TRG_ARCH = x86
617VBoxOGLerrorspu-x86_LIBS = \
618 $(VBOX_LIB_OGL_CRUTIL_X86)
619VBoxOGLerrorspu-x86_DEFS = $(VBoxOGLerrorspu_DEFS) VBOX_WDDM_WOW64
620endif
621
622#
623# VBoxOGLhosterrorspu
624#
625VBoxOGLhosterrorspu_EXTENDS = VBoxOGLerrorspu
626VBoxOGLhosterrorspu_TEMPLATE = VBOXCROGLR3HOSTDLL
627if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
628 VBoxOGLhosterrorspu_INSTTYPE.win = both
629endif
630VBoxOGLhosterrorspu_LDFLAGS.darwin += $(VBoxOGLerrorspu_LDFLAGS.darwin) \
631 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxOGLhosterrorspu.dylib
632VBoxOGLhosterrorspu_LIBS = \
633 $(VBOX_LIB_OGL_HOSTCRUTIL) \
634 $(LIB_RUNTIME)
635
636#
637# Generate files for VBoxOGLerrorspu and VBoxOGLhosterrorspu.
638#
639$(VBOX_PATH_CROGL_GENFILES)/errorspu.c: $(PATH_SUB_CURRENT)/error/error.py $(VBOX_CROGL_API_FILES)
640 $(call MSG_GENERATE,python,$@,$<)
641 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
642include $(FILE_KBUILD_SUB_FOOTER)
643
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