VirtualBox

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

Last change on this file since 35273 was 35152, checked in by vboxsync, 14 years ago

*: added fFlags parameter to SUPR3HardenedLdrLoadAppPriv(), SUPR3HardenedLdrLoad() and RTLdrLoadEx(). VBoxSVC: slurp in VBoxVMM because it is required by the extension packs

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 22.4 KB
Line 
1# $Id: Makefile.kmk 35152 2010-12-15 16:45:42Z vboxsync $
2## @file
3# Sub-Makefile for the VirtualBox Guest/Host OpenGL part
4#
5
6#
7# Copyright (C) 2008 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_NOINST.win.x86 = true
45endif
46VBoxOGLcrutil_SDKS.win = DXSDK
47VBoxOGLcrutil_INTERMEDIATES = $(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h
48if1of ($(KBUILD_TARGET), linux solaris freebsd)
49 VBoxOGLcrutil_INCS += \
50 $(VBOX_MESA_INCS)
51endif
52VBoxOGLcrutil_SOURCES = \
53 util/bbox.c \
54 util/bufpool.c \
55 util/calllists.c \
56 util/devnull.c \
57 util/dll.c \
58 util/endian.c \
59 util/environment.c \
60 util/error.c \
61 util/filenet.c \
62 util/hash.c \
63 util/hull.c \
64 util/list.c \
65 util/matrix.c \
66 util/mem.c \
67 util/net.c \
68 util/pixel.c \
69 util/process.c \
70 util/rand.c \
71 util/string.c \
72 util/threads.c \
73 util/tcpip.c \
74 util/udptcpip.c \
75 util/timer.c \
76 util/url.c \
77 util/warp.c \
78 util/vboxhgcm.c \
79 $(VBOX_PATH_CROGL_GENFILES)/debug_opcodes.c
80VBoxOGLcrutil_SOURCES.win.x86 = \
81 util/util.def \
82 util/util.rc
83VBoxOGLcrutil_LIBS.win = \
84 $(PATH_SDK_DXSDK_LIB)/ddraw.lib \
85 $(PATH_SDK_DXSDK_LIB)/dxguid.lib
86VBoxOGLcrutil_LIBS = \
87 $(VBOX_LIB_IPRT_GUEST_R3_SHARED) \
88 $(VBOX_LIB_VBGL_R3_SHARED) \
89 $(VBOX_LIB_IPRT_GUEST_R3_SHARED)
90ifdef VBOX_WITH_CRHGSMI
91VBoxOGLcrutil_DEFS.win.x86 += VBOX_WITH_CRHGSMI
92VBoxOGLcrutil_LIBS.win.x86 += $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi$(VBOX_SUFF_LIB)
93endif
94VBoxOGLcrutil_CLEAN = \
95 $(VBOX_PATH_CROGL_GENFILES)/debug_opcodes.c
96
97# vc7 hangs during compilation of this file when optimizations are enabled.
98VBoxOGLcrutil_pixel.c_CFLAGS.win.x86 += -Od
99VBoxOGLhostcrutil_pixel.c_CFLAGS.win.x86 += -Od
100
101#
102# VBoxOGLhostcrutil
103#
104VBoxOGLhostcrutil_EXTENDS = VBoxOGLcrutil
105VBoxOGLhostcrutil_TEMPLATE = VBOXCROGLR3HOSTDLL
106if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
107 # need to reset the NOINST flag
108 VBoxOGLhostcrutil_NOINST.win.x86 = $(NO_SUCH_VARIABLE)
109endif
110VBoxOGLhostcrutil_LDFLAGS.darwin = $(VBoxOGLcrutil_LDFLAGS.darwin) \
111 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxOGLhostcrutil.dylib
112## @todo kBuild bug, possibly same as ticket #51: PATH_SDK_DXSDK_LIB is expanded too early.
113# Update. bug 51 was fixed.
114# Still fails as PATH_SDK_DXSDK_LIB is empty.
115## @todo kBuild: recheck this (note to self).
116VBoxOGLhostcrutil_LIBS.win = $(VBoxOGLcrutil_LIBS.win)
117VBoxOGLhostcrutil_LIBS = $(LIB_RUNTIME)
118ifdef VBOX_WITH_CRHGSMI
119VBoxOGLhostcrutil_DEFS.win.x86 = $(subst VBOX_WITH_CRHGSMI,,$(VBoxOGLcrutil_DEFS.win.x86))
120VBoxOGLhostcrutil_LIBS.win.x86 = $(subst $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi$(VBOX_SUFF_LIB),,$(VBoxOGLcrutil_LIBS.win.x86))
121endif
122
123#
124# Generate files for VBoxOGLcrutil and VBoxOGLhostcrutil.
125#
126$(VBOX_PATH_CROGL_GENFILES)/debug_opcodes.c: $(PATH_SUB_CURRENT)/util/debug_opcodes.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
127 $(call MSG_GENERATE,python,$@,$<)
128 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
129
130
131#
132# VBoxOGLcrpacker
133#
134VBoxOGLcrpacker_TEMPLATE = VBOXCROGLR3GUESTLIB
135VBoxOGLcrpacker_INCS = \
136 packer
137if1of ($(KBUILD_TARGET), linux solaris freebsd)
138 VBoxOGLcrpacker_INCS += \
139 $(VBOX_MESA_INCS)
140endif
141VBoxOGLcrpacker_INTERMEDIATES = \
142 $(VBOX_PATH_CROGL_GENFILES)/cr_packfunctions.h \
143 $(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h \
144 $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \
145 $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h \
146 $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h
147VBoxOGLcrpacker_SOURCES = \
148 packer/pack_arrays.c \
149 packer/pack_beginend.c \
150 packer/pack_bounds.c \
151 packer/pack_buffer.c \
152 packer/pack_bufferobject.c \
153 packer/pack_client.c \
154 packer/pack_clipplane.c \
155 packer/pack_context.c \
156 packer/pack_error.c \
157 packer/pack_extensions.c \
158 packer/pack_feedback.c \
159 packer/pack_fence.c \
160 packer/pack_fog.c \
161 packer/pack_init.c \
162 packer/pack_lights.c \
163 packer/pack_lists.c \
164 packer/pack_swap_lists.c \
165 packer/pack_map.c \
166 packer/pack_point.c \
167 packer/pack_swap_map.c \
168 packer/pack_misc.c \
169 packer/pack_materials.c \
170 packer/pack_matrices.c \
171 packer/pack_pixels.c \
172 packer/pack_pixelmap.c \
173 packer/pack_swap_pixelmap.c \
174 packer/pack_program.c \
175 packer/pack_regcombiner.c \
176 packer/pack_stipple.c \
177 packer/pack_texture.c \
178 packer/pack_swap_texture.c \
179 packer/pack_visibleregion.c \
180 packer/pack_shaders.c \
181 packer/pack_framebuffer.c \
182 $(VBOX_PATH_CROGL_GENFILES)/pack_arrays_swap.c \
183 $(VBOX_PATH_CROGL_GENFILES)/pack_bounds_swap.c \
184 $(VBOX_PATH_CROGL_GENFILES)/pack_bufferobject_swap.c \
185 $(VBOX_PATH_CROGL_GENFILES)/pack_client_swap.c \
186 $(VBOX_PATH_CROGL_GENFILES)/pack_clipplane_swap.c \
187 $(VBOX_PATH_CROGL_GENFILES)/pack_fog_swap.c \
188 $(VBOX_PATH_CROGL_GENFILES)/pack_lights_swap.c \
189 $(VBOX_PATH_CROGL_GENFILES)/pack_materials_swap.c \
190 $(VBOX_PATH_CROGL_GENFILES)/pack_matrices_swap.c \
191 $(VBOX_PATH_CROGL_GENFILES)/pack_misc_swap.c \
192 $(VBOX_PATH_CROGL_GENFILES)/pack_pixels_swap.c \
193 $(VBOX_PATH_CROGL_GENFILES)/pack_point_swap.c \
194 $(VBOX_PATH_CROGL_GENFILES)/pack_program_swap.c \
195 $(VBOX_PATH_CROGL_GENFILES)/pack_regcombiner_swap.c \
196 $(VBOX_PATH_CROGL_GENFILES)/pack_stipple_swap.c \
197 $(VBOX_PATH_CROGL_GENFILES)/pack_bbox.c \
198 $(VBOX_PATH_CROGL_GENFILES)/pack_current.c \
199 $(VBOX_PATH_CROGL_GENFILES)/packer.c
200VBoxOGLcrpacker_CLEAN = \
201 $(VBOX_PATH_CROGL_GENFILES)/pack_arrays_swap.c \
202 $(VBOX_PATH_CROGL_GENFILES)/pack_bounds_swap.c \
203 $(VBOX_PATH_CROGL_GENFILES)/pack_bufferobject_swap.c \
204 $(VBOX_PATH_CROGL_GENFILES)/pack_client_swap.c \
205 $(VBOX_PATH_CROGL_GENFILES)/pack_clipplane_swap.c \
206 $(VBOX_PATH_CROGL_GENFILES)/pack_fog_swap.c \
207 $(VBOX_PATH_CROGL_GENFILES)/pack_lights_swap.c \
208 $(VBOX_PATH_CROGL_GENFILES)/pack_materials_swap.c \
209 $(VBOX_PATH_CROGL_GENFILES)/pack_matrices_swap.c \
210 $(VBOX_PATH_CROGL_GENFILES)/pack_misc_swap.c \
211 $(VBOX_PATH_CROGL_GENFILES)/pack_pixels_swap.c \
212 $(VBOX_PATH_CROGL_GENFILES)/pack_point_swap.c \
213 $(VBOX_PATH_CROGL_GENFILES)/pack_program_swap.c \
214 $(VBOX_PATH_CROGL_GENFILES)/pack_regcombiner_swap.c \
215 $(VBOX_PATH_CROGL_GENFILES)/pack_stipple_swap.c \
216 $(VBOX_PATH_CROGL_GENFILES)/pack_bbox.c \
217 $(VBOX_PATH_CROGL_GENFILES)/pack_current.c \
218 $(VBOX_PATH_CROGL_GENFILES)/packer.c \
219 $(VBOX_PATH_CROGL_GENFILES)/cr_packfunctions.h \
220 $(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h \
221 $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h
222
223#
224# VBoxOGLhostcrpacker
225#
226VBoxOGLhostcrpacker_EXTENDS = VBoxOGLcrpacker
227VBoxOGLhostcrpacker_TEMPLATE = VBOXCROGLR3HOSTLIB
228
229#
230# Generate files for VBoxOGLcrpacker and VBoxOGLhostcrpacker.
231#
232$(VBOX_PATH_CROGL_GENFILES)/packer.def: $(PATH_SUB_CURRENT)/packer/packer_defs.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
233 $(call MSG_GENERATE,python,$@,$<)
234 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
235
236$(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 $$@)
237 $(call MSG_GENERATE,python,$@,$<)
238 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
239
240$(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h: $(PATH_SUB_CURRENT)/packer/opcodes.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
241 $(call MSG_GENERATE,python,$@,$<)
242 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
243
244$(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 $$@)
245 $(call MSG_GENERATE,python,$@,$<)
246 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $<
247
248$(VBOX_PATH_CROGL_GENFILES)/packer.c: $(PATH_SUB_CURRENT)/packer/packer.py $(PATH_SUB_CURRENT)/packer/packer_special $(VBOX_CROGL_API_FILES) | $$(dir $$@)
249 $(call MSG_GENERATE,python,$@,$<)
250 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
251
252$(VBOX_PATH_CROGL_GENFILES)/pack_bbox.c: $(PATH_SUB_CURRENT)/packer/packer_bbox.py | $$(dir $$@)
253 $(call MSG_GENERATE,python,$@,$<)
254 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
255
256$(VBOX_PATH_CROGL_GENFILES)/pack_current.c: $(PATH_SUB_CURRENT)/packer/pack_current.py $(PATH_SUB_CURRENT)/packer/pack_currenttypes.py | $$(dir $$@)
257 $(call MSG_GENERATE,python,$@,$<)
258 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $<
259
260$(VBOX_PATH_CROGL_GENFILES)/%_swap.c: $(PATH_SUB_CURRENT)/packer/%.c $(PATH_SUB_CURRENT)/packer/pack_swap.py | $$(dir $$@)
261 $(call MSG_GENERATE,python,$@,$<)
262 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/pack_swap.py $<
263
264
265#
266# VBoxOGLspuload
267#
268VBoxOGLspuload_TEMPLATE = VBOXCROGLR3GUESTLIB
269VBoxOGLspuload_INTERMEDIATES = \
270 $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h
271if1of ($(KBUILD_TARGET), linux solaris freebsd)
272 VBoxOGLspuload_INCS += \
273 $(VBOX_MESA_INCS)
274endif
275VBoxOGLspuload_SOURCES = \
276 spu_loader/spuinit.c \
277 spu_loader/spuload.c \
278 spu_loader/choosevisual.c \
279 $(VBOX_PATH_CROGL_GENFILES)/spuchange.c \
280 $(VBOX_PATH_CROGL_GENFILES)/spucopy.c \
281 $(VBOX_PATH_CROGL_GENFILES)/dispatch.c \
282 $(VBOX_PATH_CROGL_GENFILES)/glloader.c
283VBoxOGLspuload_CLEAN = \
284 $(VBOX_PATH_CROGL_GENFILES)/spuchange.c \
285 $(VBOX_PATH_CROGL_GENFILES)/spucopy.c \
286 $(VBOX_PATH_CROGL_GENFILES)/dispatch.c \
287 $(VBOX_PATH_CROGL_GENFILES)/glloader.c \
288 $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h
289
290
291#
292# VBoxOGLspuload
293#
294VBoxOGLhostspuload_EXTENDS = VBoxOGLspuload
295VBoxOGLhostspuload_TEMPLATE = VBOXCROGLR3HOSTLIB
296
297#
298# Generate files for VBoxOGLspuload and VBoxOGLhostspuload.
299#
300$(VBOX_PATH_CROGL_GENFILES)/dispatch.c: $(PATH_SUB_CURRENT)/spu_loader/dispatch.py $(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)
303
304$(VBOX_PATH_CROGL_GENFILES)/spucopy.c: $(PATH_SUB_CURRENT)/spu_loader/spucopy.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
308$(VBOX_PATH_CROGL_GENFILES)/spuchange.c: $(PATH_SUB_CURRENT)/spu_loader/spuchange.py $(VBOX_CROGL_API_FILES) | $$(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$(VBOX_PATH_CROGL_GENFILES)/glloader.c: $(PATH_SUB_CURRENT)/spu_loader/glloader.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
313 $(call MSG_GENERATE,python,$@,$<)
314 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
315
316$(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h: $(PATH_SUB_CURRENT)/spu_loader/dispatchheader.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
317 $(call MSG_GENERATE,python,$@,$<)
318 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
319
320
321#
322# VBoxOGLcrstate
323#
324VBoxOGLcrstate_TEMPLATE = VBOXCROGLR3GUESTLIB
325VBoxOGLcrstate_INCS = \
326 state_tracker
327if1of ($(KBUILD_TARGET), linux solaris freebsd)
328 VBoxOGLcrstate_INCS += \
329 $(VBOX_MESA_INCS)
330endif
331VBoxOGLcrstate_INTERMEDIATES = \
332 $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h \
333 $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \
334 $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h
335VBoxOGLcrstate_SOURCES = \
336 state_tracker/state_attrib.c \
337 state_tracker/state_buffer.c \
338 state_tracker/state_bufferobject.c \
339 state_tracker/state_client.c \
340 state_tracker/state_current.c \
341 state_tracker/state_diff.c \
342 state_tracker/state_enable.c \
343 state_tracker/state_error.c \
344 state_tracker/state_evaluators.c \
345 state_tracker/state_feedback.c \
346 state_tracker/state_fence.c \
347 state_tracker/state_flush.c \
348 state_tracker/state_fog.c \
349 state_tracker/state_getstring.c \
350 state_tracker/state_hint.c \
351 state_tracker/state_init.c \
352 state_tracker/state_lighting.c \
353 state_tracker/state_limits.c \
354 state_tracker/state_line.c \
355 state_tracker/state_lists.c \
356 state_tracker/state_multisample.c \
357 state_tracker/state_occlude.c \
358 state_tracker/state_pixel.c \
359 state_tracker/state_point.c \
360 state_tracker/state_polygon.c \
361 state_tracker/state_program.c \
362 state_tracker/state_rasterpos.c \
363 state_tracker/state_regcombiner.c \
364 state_tracker/state_stencil.c \
365 state_tracker/state_texture.c \
366 state_tracker/state_teximage.c \
367 state_tracker/state_texdiff.c \
368 state_tracker/state_transform.c \
369 state_tracker/state_viewport.c \
370 state_tracker/state_framebuffer.c \
371 state_tracker/state_glsl.c \
372 $(VBOX_PATH_CROGL_GENFILES)/state_buffer_gen.c \
373 $(VBOX_PATH_CROGL_GENFILES)/state_current_gen.c \
374 $(VBOX_PATH_CROGL_GENFILES)/state_fog_gen.c \
375 $(VBOX_PATH_CROGL_GENFILES)/state_hint_gen.c \
376 $(VBOX_PATH_CROGL_GENFILES)/state_lighting_gen.c \
377 $(VBOX_PATH_CROGL_GENFILES)/state_line_gen.c \
378 $(VBOX_PATH_CROGL_GENFILES)/state_multisample_gen.c \
379 $(VBOX_PATH_CROGL_GENFILES)/state_point_gen.c \
380 $(VBOX_PATH_CROGL_GENFILES)/state_polygon_gen.c \
381 $(VBOX_PATH_CROGL_GENFILES)/state_regcombiner_gen.c \
382 $(VBOX_PATH_CROGL_GENFILES)/state_stencil_gen.c \
383 $(VBOX_PATH_CROGL_GENFILES)/state_viewport_gen.c \
384 $(VBOX_PATH_CROGL_GENFILES)/state_get.c \
385 $(VBOX_PATH_CROGL_GENFILES)/state_isenabled.c
386VBoxOGLcrstate_CLEAN = \
387 $(VBOX_PATH_CROGL_GENFILES)/state_buffer_gen.c \
388 $(VBOX_PATH_CROGL_GENFILES)/state_current_gen.c \
389 $(VBOX_PATH_CROGL_GENFILES)/state_fog_gen.c \
390 $(VBOX_PATH_CROGL_GENFILES)/state_hint_gen.c \
391 $(VBOX_PATH_CROGL_GENFILES)/state_lighting_gen.c \
392 $(VBOX_PATH_CROGL_GENFILES)/state_line_gen.c \
393 $(VBOX_PATH_CROGL_GENFILES)/state_multisample_gen.c \
394 $(VBOX_PATH_CROGL_GENFILES)/state_point_gen.c \
395 $(VBOX_PATH_CROGL_GENFILES)/state_polygon_gen.c \
396 $(VBOX_PATH_CROGL_GENFILES)/state_regcombiner_gen.c \
397 $(VBOX_PATH_CROGL_GENFILES)/state_stencil_gen.c \
398 $(VBOX_PATH_CROGL_GENFILES)/state_viewport_gen.c \
399 $(VBOX_PATH_CROGL_GENFILES)/state_get.c \
400 $(VBOX_PATH_CROGL_GENFILES)/state_isenabled.c \
401 $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h
402ifneq ($(KBUILD_TARGET),win)
403state_tracker/state_lists.c_CFLAGS += $(VBOX_GCC_Wno-pointer-sign)
404VBoxOGLcrstate_CFLAGS +=
405endif
406
407#
408# VBoxOGLhostcrstate
409#
410VBoxOGLhostcrstate_EXTENDS = VBoxOGLcrstate
411VBoxOGLhostcrstate_TEMPLATE = VBOXCROGLR3HOSTLIB
412VBoxOGLhostcrstate_SOURCES = \
413 $(VBoxOGLcrstate_SOURCES) \
414 state_tracker/state_snapshot.c
415
416#
417# Generate files for VBoxOGLcrstate and VBoxOGLhostcrstate.
418#
419
420
421$(VBOX_PATH_CROGL_GENFILES)/state_buffer_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_buffer.txt gendiffcode.py) | $$(dir $$@)
422 $(call MSG_GENERATE,python,$@,$<)
423 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py buffer Buffer $(<D)
424
425$(VBOX_PATH_CROGL_GENFILES)/state_client_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_client.txt gendiffcode.py) | $$(dir $$@)
426 $(call MSG_GENERATE,python,$@,$<)
427 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py client Client $(<D)
428
429$(VBOX_PATH_CROGL_GENFILES)/state_current_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_current.py convert.py) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
430 $(call MSG_GENERATE,python,$@,$<)
431 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/state_current.py
432
433$(VBOX_PATH_CROGL_GENFILES)/state_fog_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_fog.txt gendiffcode.py) | $$(dir $$@)
434 $(call MSG_GENERATE,python,$@,$<)
435 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py fog Fog $(<D)
436
437$(VBOX_PATH_CROGL_GENFILES)/state_hint_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_hint.txt gendiffcode.py) | $$(dir $$@)
438 $(call MSG_GENERATE,python,$@,$<)
439 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py hint Hint $(<D)
440
441$(VBOX_PATH_CROGL_GENFILES)/state_lighting_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_lighting.txt gendiffcode.py) | $$(dir $$@)
442 $(call MSG_GENERATE,python,$@,$<)
443 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py lighting Lighting $(<D)
444
445$(VBOX_PATH_CROGL_GENFILES)/state_line_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_line.txt gendiffcode.py) | $$(dir $$@)
446 $(call MSG_GENERATE,python,$@,$<)
447 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py line Line $(<D)
448
449$(VBOX_PATH_CROGL_GENFILES)/state_multisample_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_multisample.txt gendiffcode.py) | $$(dir $$@)
450 $(call MSG_GENERATE,python,$@,$<)
451 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py multisample Multisample $(<D)
452
453$(VBOX_PATH_CROGL_GENFILES)/state_point_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_point.txt gendiffcode.py) | $$(dir $$@)
454 $(call MSG_GENERATE,python,$@,$<)
455 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py point Point $(<D)
456
457$(VBOX_PATH_CROGL_GENFILES)/state_polygon_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_polygon.txt gendiffcode.py) | $$(dir $$@)
458 $(call MSG_GENERATE,python,$@,$<)
459 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py polygon Polygon $(<D)
460
461$(VBOX_PATH_CROGL_GENFILES)/state_regcombiner_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_regcombiner.txt gendiffcode.py) | $$(dir $$@)
462 $(call MSG_GENERATE,python,$@,$<)
463 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py regcombiner RegCombiner $(<D)
464
465$(VBOX_PATH_CROGL_GENFILES)/state_stencil_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_stencil.txt gendiffcode.py) | $$(dir $$@)
466 $(call MSG_GENERATE,python,$@,$<)
467 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py stencil Stencil $(<D)
468
469$(VBOX_PATH_CROGL_GENFILES)/state_viewport_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_viewport.txt gendiffcode.py) | $$(dir $$@)
470 $(call MSG_GENERATE,python,$@,$<)
471 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py viewport Viewport $(<D)
472
473$(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 $$@)
474 $(call MSG_GENERATE,python,$@,$<)
475 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/state_get.py $(VBOX_PATH_CROGL_GLAPI) $(<D)
476
477$(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 $$@)
478 $(call MSG_GENERATE,python,$@,$<)
479 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/state_isenabled.py $(VBOX_PATH_CROGL_GLAPI) $(<D)
480
481$(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 $$@)
482 $(call MSG_GENERATE,python,$@,$<)
483 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/state_defs.py $(VBOX_PATH_CROGL_GLAPI) $(<D)
484
485$(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 $$@)
486 $(call MSG_GENERATE,python,$@,$<)
487 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/state_funcs.py $(VBOX_PATH_CROGL_GLAPI) $(<D)
488
489
490#
491# VBoxOGLerrorspu
492# @remark See HostServices/OpenGL/Makefile for and explanation of the gl.h
493# and glu.h intermediate files on darwin.
494#
495VBoxOGLerrorspu_TEMPLATE = VBOXCROGLR3GUESTDLL
496if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
497 VBoxOGLerrorspu_NOINST.win.x86 = true
498endif
499VBoxOGLerrorspu_INTERMEDIATES = \
500 $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h
501if1of ($(KBUILD_TARGET), linux solaris freebsd)
502 VBoxOGLerrorspu_INCS += \
503 $(VBOX_MESA_INCS)
504endif
505VBoxOGLerrorspu_SOURCES = \
506 $(VBOX_PATH_CROGL_GENFILES)/errorspu.c \
507 error/errorspu_init.c
508VBoxOGLerrorspu_SOURCES.win.x86 = \
509 error/error.def \
510 error/errorspu.rc
511VBoxOGLerrorspu_CLEAN = \
512 $(VBOX_PATH_CROGL_GENFILES)/errorspu.c
513VBoxOGLerrorspu_LIBS = \
514 $(VBOX_LIB_OGL_CRUTIL)
515
516#
517# VBoxOGLhosterrorspu
518#
519VBoxOGLhosterrorspu_EXTENDS = VBoxOGLerrorspu
520VBoxOGLhosterrorspu_TEMPLATE = VBOXCROGLR3HOSTDLL
521if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
522 # need to reset the NOINST flag
523 VBoxOGLhosterrorspu_NOINST.win.x86 = $(NO_SUCH_VARIABLE)
524endif
525VBoxOGLhosterrorspu_LDFLAGS.darwin += $(VBoxOGLerrorspu_LDFLAGS.darwin) \
526 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxOGLhosterrorspu.dylib
527VBoxOGLhosterrorspu_LIBS = \
528 $(VBOX_LIB_OGL_HOSTCRUTIL) \
529 $(LIB_RUNTIME)
530
531#
532# Generate files for VBoxOGLerrorspu and VBoxOGLhosterrorspu.
533#
534$(VBOX_PATH_CROGL_GENFILES)/errorspu.c: $(PATH_SUB_CURRENT)/error/error.py $(VBOX_CROGL_API_FILES)
535 $(call MSG_GENERATE,python,$@,$<)
536 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
537
538include $(KBUILD_PATH)/subfooter.kmk
539
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