VirtualBox

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

Last change on this file since 44824 was 44740, checked in by vboxsync, 12 years ago

crOpenGL: OSX backend rework; oddscreen rendering generalization

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 25.5 KB
Line 
1# $Id: Makefile.kmk 44740 2013-02-18 17:02:47Z vboxsync $
2## @file
3# Sub-Makefile for the VirtualBox Guest/Host OpenGL part
4#
5
6#
7# Copyright (C) 2008-2013 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/vreg.cpp \
80 util/blitter.cpp \
81 util/vboxhgcm.c \
82 $(VBOX_PATH_CROGL_GENFILES)/debug_opcodes.c
83VBoxOGLcrutil_SOURCES.win.x86 = \
84 util/util.def \
85 util/util.rc
86VBoxOGLcrutil_LIBS.win = \
87 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
88 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
89VBoxOGLcrutil_LIBS = \
90 $(VBOX_LIB_IPRT_GUEST_R3_SHARED) \
91 $(VBOX_LIB_VBGL_R3_SHARED)
92ifdef VBOX_WITH_CRHGSMI
93VBoxOGLcrutil_DEFS.win += VBOX_WITH_CRHGSMI
94VBoxOGLcrutil_LIBS.win += $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi$(VBOX_SUFF_LIB)
95endif
96ifdef VBOX_WITH_WDDM
97VBoxOGLcrutil_DEFS.win += VBOX_WITH_WDDM
98VBoxOGLcrutil_DEFS.win += CR_DEBUG_BACKDOOR_ENABLE
99VBoxOGLcrutil_INCS.win += $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm
100VBoxOGLcrutil_LIBS.win += $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger$(VBOX_SUFF_LIB)
101endif
102VBoxOGLcrutil_CLEAN = \
103 $(VBOX_PATH_CROGL_GENFILES)/debug_opcodes.c
104
105# vc7 hangs during compilation of this file when optimizations are enabled.
106VBoxOGLcrutil_pixel.c_CFLAGS.win.x86 += -Od
107VBoxOGLhostcrutil_pixel.c_CFLAGS.win.x86 += -Od
108
109if defined(VBOX_WITH_WDDM) && defined(VBOX_WITH_ADDITIONS)
110#
111# VBoxOGLcrutil-x86 - x86 VBoxOGLcrutil version built for amd64 build
112#
113DLLS.win.amd64 += VBoxOGLcrutil-x86
114VBoxOGLcrutil-x86_TEMPLATE = VBOXCROGLR3GUESTDLL
115VBoxOGLcrutil-x86_EXTENDS = VBoxOGLcrutil
116VBoxOGLcrutil-x86_BLD_TRG_ARCH = x86
117VBoxOGLcrutil-x86_LIBS = $(VBOX_LIB_IPRT_GUEST_R3_SHARED_X86) \
118 $(VBOX_LIB_VBGL_R3_SHARED_X86)
119VBoxOGLcrutil-x86_LIBS.win = \
120 $(PATH_SDK_$(VBOX_WINDDK)_LIB.x86)/ddraw.lib \
121 $(PATH_SDK_$(VBOX_WINDDK)_LIB.x86)/dxguid.lib
122ifdef VBOX_WITH_CRHGSMI
123# VBOX_WITH_CRHGSMI define is inherited from VBoxOGLcrutil
124VBoxOGLcrutil-x86_LIBS.win += $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi-x86$(VBOX_SUFF_LIB)
125endif
126VBoxOGLcrutil-x86_DEFS = $(VBoxOGLcrutil_DEFS) VBOX_WDDM_WOW64
127ifdef VBOX_WITH_WDDM
128# CR_DEBUG_BACKDOOR_ENABLE define is inherited from VBoxOGLcrutil
129VBoxOGLcrutil-x86_INCS.win += $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm
130VBoxOGLcrutil-x86_LIBS.win += $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger-x86$(VBOX_SUFF_LIB)
131endif
132# vc7 hangs during compilation of this file when optimizations are enabled.
133VBoxOGLcrutil-x86_pixel.c_CFLAGS += -Od
134VBoxOGLcrutil-x86_pixel.c_CFLAGS += -Od
135endif
136
137#
138# VBoxOGLhostcrutil
139#
140VBoxOGLhostcrutil_EXTENDS = VBoxOGLcrutil
141VBoxOGLhostcrutil_TEMPLATE = VBOXCROGLR3HOSTDLL
142if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
143 VBoxOGLhostcrutil_INSTTYPE.win = both
144endif
145VBoxOGLhostcrutil_LDFLAGS.darwin = $(VBoxOGLcrutil_LDFLAGS.darwin) \
146 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxOGLhostcrutil.dylib
147VBoxOGLhostcrutil_LIBS.win = \
148 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
149 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
150VBoxOGLhostcrutil_LIBS = $(LIB_RUNTIME)
151ifdef VBOX_WITH_CRHGSMI
152VBoxOGLhostcrutil_DEFS += VBOX_WITH_CRHGSMI
153endif
154ifdef VBOX_WITH_WDDM
155VBoxOGLhostcrutil_INCS.win = $(NO_SUCH_VARIABLE)
156VBoxOGLhostcrutil_DEFS.win = $(NO_SUCH_VARIABLE)
157endif
158
159#
160# Generate files for VBoxOGLcrutil and VBoxOGLhostcrutil.
161#
162$(VBOX_PATH_CROGL_GENFILES)/debug_opcodes.c: $(PATH_SUB_CURRENT)/util/debug_opcodes.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
163 $(call MSG_GENERATE,python,$@,$<)
164 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
165
166#
167# VBoxOGLcrpacker
168#
169VBoxOGLcrpacker_TEMPLATE = VBOXCROGLR3GUESTLIB
170VBoxOGLcrpacker_INCS = \
171 packer
172if1of ($(KBUILD_TARGET), linux solaris freebsd)
173 VBoxOGLcrpacker_INCS += \
174 $(VBOX_MESA_INCS)
175endif
176VBoxOGLcrpacker_INTERMEDIATES = \
177 $(VBOX_PATH_CROGL_GENFILES)/cr_packfunctions.h \
178 $(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h \
179 $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \
180 $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h \
181 $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h
182VBoxOGLcrpacker_SOURCES = \
183 packer/pack_arrays.c \
184 packer/pack_beginend.c \
185 packer/pack_bounds.c \
186 packer/pack_buffer.c \
187 packer/pack_bufferobject.c \
188 packer/pack_client.c \
189 packer/pack_clipplane.c \
190 packer/pack_context.c \
191 packer/pack_error.c \
192 packer/pack_extensions.c \
193 packer/pack_feedback.c \
194 packer/pack_fence.c \
195 packer/pack_fog.c \
196 packer/pack_init.c \
197 packer/pack_lights.c \
198 packer/pack_lists.c \
199 packer/pack_swap_lists.c \
200 packer/pack_map.c \
201 packer/pack_point.c \
202 packer/pack_swap_map.c \
203 packer/pack_misc.c \
204 packer/pack_materials.c \
205 packer/pack_matrices.c \
206 packer/pack_pixels.c \
207 packer/pack_pixelmap.c \
208 packer/pack_swap_pixelmap.c \
209 packer/pack_program.c \
210 packer/pack_regcombiner.c \
211 packer/pack_stipple.c \
212 packer/pack_texture.c \
213 packer/pack_swap_texture.c \
214 packer/pack_visibleregion.c \
215 packer/pack_shaders.c \
216 packer/pack_framebuffer.c \
217 $(VBOX_PATH_CROGL_GENFILES)/pack_arrays_swap.c \
218 $(VBOX_PATH_CROGL_GENFILES)/pack_bounds_swap.c \
219 $(VBOX_PATH_CROGL_GENFILES)/pack_bufferobject_swap.c \
220 $(VBOX_PATH_CROGL_GENFILES)/pack_client_swap.c \
221 $(VBOX_PATH_CROGL_GENFILES)/pack_clipplane_swap.c \
222 $(VBOX_PATH_CROGL_GENFILES)/pack_fog_swap.c \
223 $(VBOX_PATH_CROGL_GENFILES)/pack_lights_swap.c \
224 $(VBOX_PATH_CROGL_GENFILES)/pack_materials_swap.c \
225 $(VBOX_PATH_CROGL_GENFILES)/pack_matrices_swap.c \
226 $(VBOX_PATH_CROGL_GENFILES)/pack_misc_swap.c \
227 $(VBOX_PATH_CROGL_GENFILES)/pack_pixels_swap.c \
228 $(VBOX_PATH_CROGL_GENFILES)/pack_point_swap.c \
229 $(VBOX_PATH_CROGL_GENFILES)/pack_program_swap.c \
230 $(VBOX_PATH_CROGL_GENFILES)/pack_regcombiner_swap.c \
231 $(VBOX_PATH_CROGL_GENFILES)/pack_stipple_swap.c \
232 $(VBOX_PATH_CROGL_GENFILES)/pack_bbox.c \
233 $(VBOX_PATH_CROGL_GENFILES)/pack_current.c \
234 $(VBOX_PATH_CROGL_GENFILES)/packer.c
235VBoxOGLcrpacker_CLEAN = \
236 $(VBOX_PATH_CROGL_GENFILES)/pack_arrays_swap.c \
237 $(VBOX_PATH_CROGL_GENFILES)/pack_bounds_swap.c \
238 $(VBOX_PATH_CROGL_GENFILES)/pack_bufferobject_swap.c \
239 $(VBOX_PATH_CROGL_GENFILES)/pack_client_swap.c \
240 $(VBOX_PATH_CROGL_GENFILES)/pack_clipplane_swap.c \
241 $(VBOX_PATH_CROGL_GENFILES)/pack_fog_swap.c \
242 $(VBOX_PATH_CROGL_GENFILES)/pack_lights_swap.c \
243 $(VBOX_PATH_CROGL_GENFILES)/pack_materials_swap.c \
244 $(VBOX_PATH_CROGL_GENFILES)/pack_matrices_swap.c \
245 $(VBOX_PATH_CROGL_GENFILES)/pack_misc_swap.c \
246 $(VBOX_PATH_CROGL_GENFILES)/pack_pixels_swap.c \
247 $(VBOX_PATH_CROGL_GENFILES)/pack_point_swap.c \
248 $(VBOX_PATH_CROGL_GENFILES)/pack_program_swap.c \
249 $(VBOX_PATH_CROGL_GENFILES)/pack_regcombiner_swap.c \
250 $(VBOX_PATH_CROGL_GENFILES)/pack_stipple_swap.c \
251 $(VBOX_PATH_CROGL_GENFILES)/pack_bbox.c \
252 $(VBOX_PATH_CROGL_GENFILES)/pack_current.c \
253 $(VBOX_PATH_CROGL_GENFILES)/packer.c \
254 $(VBOX_PATH_CROGL_GENFILES)/cr_packfunctions.h \
255 $(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h \
256 $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h
257ifdef VBOX_WITH_CRHGSMI
258VBoxOGLcrpacker_DEFS.win += VBOX_WITH_CRHGSMI
259endif
260ifdef VBOX_WITH_WDDM
261VBoxOGLcrpacker_DEFS.win += VBOX_WITH_WDDM
262endif
263
264if defined(VBOX_WITH_WDDM) && defined(VBOX_WITH_ADDITIONS)
265#
266# VBoxOGLcrpacker-x86 - x86 VBoxOGLcrpacker version built for amd64 build
267#
268LIBRARIES.win.amd64 += VBoxOGLcrpacker-x86
269VBoxOGLcrpacker-x86_TEMPLATE = VBOXCROGLR3GUESTLIB
270VBoxOGLcrpacker-x86_EXTENDS = VBoxOGLcrpacker
271VBoxOGLcrpacker-x86_BLD_TRG_ARCH = x86
272VBoxOGLcrpacker-x86_DEFS = $(VBoxOGLcrpacker_DEFS) VBOX_WDDM_WOW64
273endif
274
275#
276# VBoxOGLhostcrpacker
277#
278VBoxOGLhostcrpacker_EXTENDS = VBoxOGLcrpacker
279VBoxOGLhostcrpacker_TEMPLATE = VBOXCROGLR3HOSTLIB
280
281#
282# Generate files for VBoxOGLcrpacker and VBoxOGLhostcrpacker.
283#
284$(VBOX_PATH_CROGL_GENFILES)/packer.def: $(PATH_SUB_CURRENT)/packer/packer_defs.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
285 $(call MSG_GENERATE,python,$@,$<)
286 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
287
288$(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 $$@)
289 $(call MSG_GENERATE,python,$@,$<)
290 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
291
292$(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h: $(PATH_SUB_CURRENT)/packer/opcodes.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
296$(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 $$@)
297 $(call MSG_GENERATE,python,$@,$<)
298 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $<
299
300$(VBOX_PATH_CROGL_GENFILES)/packer.c: $(PATH_SUB_CURRENT)/packer/packer.py $(PATH_SUB_CURRENT)/packer/packer_special $(VBOX_CROGL_API_FILES) | $$(dir $$@)
301 $(call MSG_GENERATE,python,$@,$<)
302 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
303
304$(VBOX_PATH_CROGL_GENFILES)/pack_bbox.c: $(PATH_SUB_CURRENT)/packer/packer_bbox.py | $$(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
308$(VBOX_PATH_CROGL_GENFILES)/pack_current.c: $(PATH_SUB_CURRENT)/packer/pack_current.py $(PATH_SUB_CURRENT)/packer/pack_currenttypes.py | $$(dir $$@)
309 $(call MSG_GENERATE,python,$@,$<)
310 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $<
311
312$(VBOX_PATH_CROGL_GENFILES)/%_swap.c: $(PATH_SUB_CURRENT)/packer/%.c $(PATH_SUB_CURRENT)/packer/pack_swap.py | $$(dir $$@)
313 $(call MSG_GENERATE,python,$@,$<)
314 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/pack_swap.py $<
315
316
317#
318# VBoxOGLspuload
319#
320VBoxOGLspuload_TEMPLATE = VBOXCROGLR3GUESTLIB
321VBoxOGLspuload_INTERMEDIATES = \
322 $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h
323if1of ($(KBUILD_TARGET), linux solaris freebsd)
324 VBoxOGLspuload_INCS += \
325 $(VBOX_MESA_INCS)
326endif
327VBoxOGLspuload_SOURCES = \
328 spu_loader/spuinit.c \
329 spu_loader/spuload.c \
330 spu_loader/choosevisual.c \
331 $(VBOX_PATH_CROGL_GENFILES)/spuchange.c \
332 $(VBOX_PATH_CROGL_GENFILES)/spucopy.c \
333 $(VBOX_PATH_CROGL_GENFILES)/dispatch.c \
334 $(VBOX_PATH_CROGL_GENFILES)/glloader.c
335VBoxOGLspuload_CLEAN = \
336 $(VBOX_PATH_CROGL_GENFILES)/spuchange.c \
337 $(VBOX_PATH_CROGL_GENFILES)/spucopy.c \
338 $(VBOX_PATH_CROGL_GENFILES)/dispatch.c \
339 $(VBOX_PATH_CROGL_GENFILES)/glloader.c \
340 $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h
341ifdef VBOX_WITH_CRHGSMI
342VBoxOGLspuload_DEFS.win += VBOX_WITH_CRHGSMI
343endif
344ifdef VBOX_WITH_WDDM
345VBoxOGLspuload_DEFS.win += VBOX_WITH_WDDM
346endif
347
348if defined(VBOX_WITH_WDDM) && defined(VBOX_WITH_ADDITIONS)
349#
350# VBoxOGLspuload-x86 - x86 VBoxOGLspuload version built for amd64 build
351#
352LIBRARIES.win.amd64 += VBoxOGLspuload-x86
353VBoxOGLspuload-x86_TEMPLATE = VBOXCROGLR3GUESTLIB
354VBoxOGLspuload-x86_EXTENDS = VBoxOGLspuload
355VBoxOGLspuload-x86_BLD_TRG_ARCH = x86
356VBoxOGLspuload-x86_DEFS = $(VBoxOGLspuload_DEFS) VBOX_WDDM_WOW64
357endif
358
359
360#
361# VBoxOGLhostspuload
362#
363VBoxOGLhostspuload_EXTENDS = VBoxOGLspuload
364VBoxOGLhostspuload_TEMPLATE = VBOXCROGLR3HOSTLIB
365
366#
367# Generate files for VBoxOGLspuload and VBoxOGLhostspuload.
368#
369$(VBOX_PATH_CROGL_GENFILES)/dispatch.c: $(PATH_SUB_CURRENT)/spu_loader/dispatch.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
370 $(call MSG_GENERATE,python,$@,$<)
371 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
372
373$(VBOX_PATH_CROGL_GENFILES)/spucopy.c: $(PATH_SUB_CURRENT)/spu_loader/spucopy.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
374 $(call MSG_GENERATE,python,$@,$<)
375 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
376
377$(VBOX_PATH_CROGL_GENFILES)/spuchange.c: $(PATH_SUB_CURRENT)/spu_loader/spuchange.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
378 $(call MSG_GENERATE,python,$@,$<)
379 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
380
381$(VBOX_PATH_CROGL_GENFILES)/glloader.c: $(PATH_SUB_CURRENT)/spu_loader/glloader.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
382 $(call MSG_GENERATE,python,$@,$<)
383 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
384
385$(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h: $(PATH_SUB_CURRENT)/spu_loader/dispatchheader.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
386 $(call MSG_GENERATE,python,$@,$<)
387 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
388
389
390#
391# VBoxOGLcrstate
392#
393VBoxOGLcrstate_TEMPLATE = VBOXCROGLR3GUESTLIB
394VBoxOGLcrstate_INCS = \
395 state_tracker
396if1of ($(KBUILD_TARGET), linux solaris freebsd)
397 VBoxOGLcrstate_INCS += \
398 $(VBOX_MESA_INCS)
399endif
400VBoxOGLcrstate_INTERMEDIATES = \
401 $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h \
402 $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \
403 $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h
404VBoxOGLcrstate_SOURCES = \
405 state_tracker/state_attrib.c \
406 state_tracker/state_buffer.c \
407 state_tracker/state_bufferobject.c \
408 state_tracker/state_client.c \
409 state_tracker/state_current.c \
410 state_tracker/state_diff.c \
411 state_tracker/state_enable.c \
412 state_tracker/state_error.c \
413 state_tracker/state_evaluators.c \
414 state_tracker/state_feedback.c \
415 state_tracker/state_fence.c \
416 state_tracker/state_flush.c \
417 state_tracker/state_fog.c \
418 state_tracker/state_getstring.c \
419 state_tracker/state_hint.c \
420 state_tracker/state_init.c \
421 state_tracker/state_lighting.c \
422 state_tracker/state_limits.c \
423 state_tracker/state_line.c \
424 state_tracker/state_lists.c \
425 state_tracker/state_multisample.c \
426 state_tracker/state_occlude.c \
427 state_tracker/state_pixel.c \
428 state_tracker/state_point.c \
429 state_tracker/state_polygon.c \
430 state_tracker/state_program.c \
431 state_tracker/state_rasterpos.c \
432 state_tracker/state_regcombiner.c \
433 state_tracker/state_stencil.c \
434 state_tracker/state_texture.c \
435 state_tracker/state_teximage.c \
436 state_tracker/state_texdiff.c \
437 state_tracker/state_transform.c \
438 state_tracker/state_viewport.c \
439 state_tracker/state_framebuffer.c \
440 state_tracker/state_glsl.c \
441 $(VBOX_PATH_CROGL_GENFILES)/state_buffer_gen.c \
442 $(VBOX_PATH_CROGL_GENFILES)/state_current_gen.c \
443 $(VBOX_PATH_CROGL_GENFILES)/state_fog_gen.c \
444 $(VBOX_PATH_CROGL_GENFILES)/state_hint_gen.c \
445 $(VBOX_PATH_CROGL_GENFILES)/state_lighting_gen.c \
446 $(VBOX_PATH_CROGL_GENFILES)/state_line_gen.c \
447 $(VBOX_PATH_CROGL_GENFILES)/state_multisample_gen.c \
448 $(VBOX_PATH_CROGL_GENFILES)/state_point_gen.c \
449 $(VBOX_PATH_CROGL_GENFILES)/state_polygon_gen.c \
450 $(VBOX_PATH_CROGL_GENFILES)/state_regcombiner_gen.c \
451 $(VBOX_PATH_CROGL_GENFILES)/state_viewport_gen.c \
452 $(VBOX_PATH_CROGL_GENFILES)/state_get.c \
453 $(VBOX_PATH_CROGL_GENFILES)/state_isenabled.c
454VBoxOGLcrstate_CLEAN = \
455 $(VBOX_PATH_CROGL_GENFILES)/state_buffer_gen.c \
456 $(VBOX_PATH_CROGL_GENFILES)/state_current_gen.c \
457 $(VBOX_PATH_CROGL_GENFILES)/state_fog_gen.c \
458 $(VBOX_PATH_CROGL_GENFILES)/state_hint_gen.c \
459 $(VBOX_PATH_CROGL_GENFILES)/state_lighting_gen.c \
460 $(VBOX_PATH_CROGL_GENFILES)/state_line_gen.c \
461 $(VBOX_PATH_CROGL_GENFILES)/state_multisample_gen.c \
462 $(VBOX_PATH_CROGL_GENFILES)/state_point_gen.c \
463 $(VBOX_PATH_CROGL_GENFILES)/state_polygon_gen.c \
464 $(VBOX_PATH_CROGL_GENFILES)/state_regcombiner_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_viewport_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_viewport.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 viewport Viewport $(<D)
553
554$(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 $$@)
555 $(call MSG_GENERATE,python,$@,$<)
556 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/state_get.py $(VBOX_PATH_CROGL_GLAPI) $(<D)
557
558$(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 $$@)
559 $(call MSG_GENERATE,python,$@,$<)
560 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/state_isenabled.py $(VBOX_PATH_CROGL_GLAPI) $(<D)
561
562$(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 $$@)
563 $(call MSG_GENERATE,python,$@,$<)
564 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/state_defs.py $(VBOX_PATH_CROGL_GLAPI) $(<D)
565
566$(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 $$@)
567 $(call MSG_GENERATE,python,$@,$<)
568 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/state_funcs.py $(VBOX_PATH_CROGL_GLAPI) $(<D)
569
570
571#
572# VBoxOGLerrorspu
573# @remark See HostServices/OpenGL/Makefile for and explanation of the gl.h
574# and glu.h intermediate files on darwin.
575#
576VBoxOGLerrorspu_TEMPLATE = VBOXCROGLR3GUESTDLL
577if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
578 VBoxOGLerrorspu_INSTTYPE.win = none
579 VBoxOGLerrorspu_DEBUG_INSTTYPE.win = both
580endif
581VBoxOGLerrorspu_INTERMEDIATES = \
582 $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h
583if1of ($(KBUILD_TARGET), linux solaris freebsd)
584 VBoxOGLerrorspu_INCS += \
585 $(VBOX_MESA_INCS)
586endif
587VBoxOGLerrorspu_SOURCES = \
588 $(VBOX_PATH_CROGL_GENFILES)/errorspu.c \
589 error/errorspu_init.c
590VBoxOGLerrorspu_SOURCES.win.x86 = \
591 error/error.def \
592 error/errorspu.rc
593VBoxOGLerrorspu_CLEAN = \
594 $(VBOX_PATH_CROGL_GENFILES)/errorspu.c
595VBoxOGLerrorspu_LIBS = \
596 $(VBOX_LIB_OGL_CRUTIL)
597ifdef VBOX_WITH_CRHGSMI
598VBoxOGLerrorspu_DEFS.win += VBOX_WITH_CRHGSMI
599endif
600ifdef VBOX_WITH_WDDM
601VBoxOGLerrorspu_DEFS.win += VBOX_WITH_WDDM
602endif
603
604
605if defined(VBOX_WITH_WDDM) && defined(VBOX_WITH_ADDITIONS)
606#
607# VBoxOGLerrorspu-x86 - x86 VBoxOGLerrorspu version built for amd64 build
608#
609DLLS.win.amd64 += VBoxOGLerrorspu-x86
610VBoxOGLerrorspu-x86_TEMPLATE = VBOXCROGLR3GUESTDLL
611VBoxOGLerrorspu-x86_EXTENDS = VBoxOGLerrorspu
612VBoxOGLerrorspu-x86_BLD_TRG_ARCH = x86
613VBoxOGLerrorspu-x86_LIBS = \
614 $(VBOX_LIB_OGL_CRUTIL_X86)
615VBoxOGLerrorspu-x86_DEFS = $(VBoxOGLerrorspu_DEFS) VBOX_WDDM_WOW64
616endif
617
618#
619# VBoxOGLhosterrorspu
620#
621VBoxOGLhosterrorspu_EXTENDS = VBoxOGLerrorspu
622VBoxOGLhosterrorspu_TEMPLATE = VBOXCROGLR3HOSTDLL
623if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
624 VBoxOGLhosterrorspu_INSTTYPE.win = both
625endif
626VBoxOGLhosterrorspu_LDFLAGS.darwin += $(VBoxOGLerrorspu_LDFLAGS.darwin) \
627 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxOGLhosterrorspu.dylib
628VBoxOGLhosterrorspu_LIBS = \
629 $(VBOX_LIB_OGL_HOSTCRUTIL) \
630 $(LIB_RUNTIME)
631
632#
633# Generate files for VBoxOGLerrorspu and VBoxOGLhosterrorspu.
634#
635$(VBOX_PATH_CROGL_GENFILES)/errorspu.c: $(PATH_SUB_CURRENT)/error/error.py $(VBOX_CROGL_API_FILES)
636 $(call MSG_GENERATE,python,$@,$<)
637 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
638include $(FILE_KBUILD_SUB_FOOTER)
639
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