1 | # $Id: Makefile.kmk 21311 2009-07-07 11:04:25Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the VirtualBox Guest/Host OpenGL part
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2008 Sun Microsystems, Inc.
|
---|
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 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
18 | # Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
19 | # additional information or have any questions.
|
---|
20 | #
|
---|
21 |
|
---|
22 | SUB_DEPTH = ../../../..
|
---|
23 | include $(KBUILD_PATH)/subheader.kmk
|
---|
24 |
|
---|
25 |
|
---|
26 | #
|
---|
27 | # Target lists.
|
---|
28 | #
|
---|
29 | BLDDIRS += \
|
---|
30 | $(VBOX_PATH_CROGL_GENFILES)/ \
|
---|
31 | $(VBOX_PATH_CROGL_GENFILES)/state/
|
---|
32 |
|
---|
33 | ifdef VBOX_WITH_ADDITIONS
|
---|
34 | DLLS += VBoxOGLcrutil VBoxOGLerrorspu
|
---|
35 | LIBRARIES += VBoxOGLcrpacker VBoxOGLspuload VBoxOGLcrstate
|
---|
36 | endif
|
---|
37 |
|
---|
38 | ifndef VBOX_ONLY_ADDITIONS
|
---|
39 | DLLS += VBoxOGLhostcrutil VBoxOGLhosterrorspu
|
---|
40 | LIBRARIES += VBoxOGLhostcrpacker VBoxOGLhostspuload VBoxOGLhostcrstate
|
---|
41 | endif
|
---|
42 |
|
---|
43 | #
|
---|
44 | # VBoxOGLcrutil
|
---|
45 | #
|
---|
46 | VBoxOGLcrutil_TEMPLATE = VBOXCROGLR3GUESTDLL
|
---|
47 | VBoxOGLcrutil_SDKS.win = DXSDK
|
---|
48 | VBoxOGLcrutil_INTERMEDIATES = $(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h
|
---|
49 | VBoxOGLcrutil_SOURCES = \
|
---|
50 | util/bbox.c \
|
---|
51 | util/bufpool.c \
|
---|
52 | util/calllists.c \
|
---|
53 | util/devnull.c \
|
---|
54 | util/dll.c \
|
---|
55 | util/endian.c \
|
---|
56 | util/environment.c \
|
---|
57 | util/error.c \
|
---|
58 | util/filenet.c \
|
---|
59 | util/hash.c \
|
---|
60 | util/hull.c \
|
---|
61 | util/list.c \
|
---|
62 | util/matrix.c \
|
---|
63 | util/mem.c \
|
---|
64 | util/net.c \
|
---|
65 | util/pixel.c \
|
---|
66 | util/process.c \
|
---|
67 | util/rand.c \
|
---|
68 | util/string.c \
|
---|
69 | util/threads.c \
|
---|
70 | util/tcpip.c \
|
---|
71 | util/udptcpip.c \
|
---|
72 | util/timer.c \
|
---|
73 | util/url.c \
|
---|
74 | util/warp.c \
|
---|
75 | util/vboxhgcm.c \
|
---|
76 | $(VBOX_PATH_CROGL_GENFILES)/debug_opcodes.c
|
---|
77 | VBoxOGLcrutil_SOURCES.win.x86 = \
|
---|
78 | util/util.def \
|
---|
79 | util/util.rc
|
---|
80 | VBoxOGLcrutil_LIBS.win = \
|
---|
81 | $(PATH_SDK_DXSDK_LIB)/ddraw.lib \
|
---|
82 | $(PATH_SDK_DXSDK_LIB)/dxguid.lib
|
---|
83 | VBoxOGLcrutil_LIBS = \
|
---|
84 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
85 | $(VBOX_LIB_VBGL_R3_SHARED) \
|
---|
86 | $(VBOX_LIB_IPRT_GUEST_R3)
|
---|
87 | VBoxOGLcrutil_CLEAN = \
|
---|
88 | $(VBOX_PATH_CROGL_GENFILES)/debug_opcodes.c
|
---|
89 |
|
---|
90 | # vc7 hangs during compilation of this file when optimizations are enabled.
|
---|
91 | VBoxOGLcrutil_pixel.c_CFLAGS.win.x86 += -Od
|
---|
92 | VBoxOGLhostcrutil_pixel.c_CFLAGS.win.x86 += -Od
|
---|
93 |
|
---|
94 | #
|
---|
95 | # VBoxOGLhostcrutil
|
---|
96 | #
|
---|
97 | VBoxOGLhostcrutil_EXTENDS = VBoxOGLcrutil
|
---|
98 | VBoxOGLhostcrutil_TEMPLATE = VBOXCROGLR3HOSTDLL
|
---|
99 | VBoxOGLhostcrutil_LDFLAGS.darwin = $(VBoxOGLcrutil_LDFLAGS.darwin) \
|
---|
100 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxOGLhostcrutil.dylib \
|
---|
101 | -current_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)
|
---|
102 | ## @todo kBuild bug, possibly same as ticket #51: PATH_SDK_DXSDK_LIB is expanded too early.
|
---|
103 | # Update. bug 51 was fixed.
|
---|
104 | # Still fails as PATH_SDK_DXSDK_LIB is empty.
|
---|
105 | ## @todo kBuild: recheck this (note to self).
|
---|
106 | VBoxOGLhostcrutil_LIBS.win = $(VBoxOGLcrutil_LIBS.win)
|
---|
107 | VBoxOGLhostcrutil_LIBS = $(LIB_RUNTIME)
|
---|
108 |
|
---|
109 | #
|
---|
110 | # Generate files for VBoxOGLcrutil and VBoxOGLhostcrutil.
|
---|
111 | #
|
---|
112 | $(VBOX_PATH_CROGL_GENFILES)/debug_opcodes.c: $(PATH_SUB_CURRENT)/util/debug_opcodes.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
113 | $(call MSG_GENERATE,python,$@,$<)
|
---|
114 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
115 |
|
---|
116 |
|
---|
117 | #
|
---|
118 | # VBoxOGLcrpacker
|
---|
119 | #
|
---|
120 | VBoxOGLcrpacker_TEMPLATE = VBOXCROGLR3GUESTLIB
|
---|
121 | VBoxOGLcrpacker_INCS = \
|
---|
122 | packer
|
---|
123 | VBoxOGLcrpacker_INTERMEDIATES = \
|
---|
124 | $(VBOX_PATH_CROGL_GENFILES)/cr_packfunctions.h \
|
---|
125 | $(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h \
|
---|
126 | $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \
|
---|
127 | $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h \
|
---|
128 | $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h
|
---|
129 | VBoxOGLcrpacker_SOURCES = \
|
---|
130 | packer/pack_arrays.c \
|
---|
131 | packer/pack_beginend.c \
|
---|
132 | packer/pack_bounds.c \
|
---|
133 | packer/pack_buffer.c \
|
---|
134 | packer/pack_bufferobject.c \
|
---|
135 | packer/pack_client.c \
|
---|
136 | packer/pack_clipplane.c \
|
---|
137 | packer/pack_context.c \
|
---|
138 | packer/pack_error.c \
|
---|
139 | packer/pack_extensions.c \
|
---|
140 | packer/pack_feedback.c \
|
---|
141 | packer/pack_fence.c \
|
---|
142 | packer/pack_fog.c \
|
---|
143 | packer/pack_init.c \
|
---|
144 | packer/pack_lights.c \
|
---|
145 | packer/pack_lists.c \
|
---|
146 | packer/pack_swap_lists.c \
|
---|
147 | packer/pack_map.c \
|
---|
148 | packer/pack_point.c \
|
---|
149 | packer/pack_swap_map.c \
|
---|
150 | packer/pack_misc.c \
|
---|
151 | packer/pack_materials.c \
|
---|
152 | packer/pack_matrices.c \
|
---|
153 | packer/pack_pixels.c \
|
---|
154 | packer/pack_pixelmap.c \
|
---|
155 | packer/pack_swap_pixelmap.c \
|
---|
156 | packer/pack_program.c \
|
---|
157 | packer/pack_regcombiner.c \
|
---|
158 | packer/pack_stipple.c \
|
---|
159 | packer/pack_texture.c \
|
---|
160 | packer/pack_swap_texture.c \
|
---|
161 | packer/pack_visibleregion.c \
|
---|
162 | packer/pack_shaders.c \
|
---|
163 | $(VBOX_PATH_CROGL_GENFILES)/pack_arrays_swap.c \
|
---|
164 | $(VBOX_PATH_CROGL_GENFILES)/pack_bounds_swap.c \
|
---|
165 | $(VBOX_PATH_CROGL_GENFILES)/pack_bufferobject_swap.c \
|
---|
166 | $(VBOX_PATH_CROGL_GENFILES)/pack_client_swap.c \
|
---|
167 | $(VBOX_PATH_CROGL_GENFILES)/pack_clipplane_swap.c \
|
---|
168 | $(VBOX_PATH_CROGL_GENFILES)/pack_fog_swap.c \
|
---|
169 | $(VBOX_PATH_CROGL_GENFILES)/pack_lights_swap.c \
|
---|
170 | $(VBOX_PATH_CROGL_GENFILES)/pack_materials_swap.c \
|
---|
171 | $(VBOX_PATH_CROGL_GENFILES)/pack_matrices_swap.c \
|
---|
172 | $(VBOX_PATH_CROGL_GENFILES)/pack_misc_swap.c \
|
---|
173 | $(VBOX_PATH_CROGL_GENFILES)/pack_pixels_swap.c \
|
---|
174 | $(VBOX_PATH_CROGL_GENFILES)/pack_point_swap.c \
|
---|
175 | $(VBOX_PATH_CROGL_GENFILES)/pack_program_swap.c \
|
---|
176 | $(VBOX_PATH_CROGL_GENFILES)/pack_regcombiner_swap.c \
|
---|
177 | $(VBOX_PATH_CROGL_GENFILES)/pack_stipple_swap.c \
|
---|
178 | $(VBOX_PATH_CROGL_GENFILES)/pack_bbox.c \
|
---|
179 | $(VBOX_PATH_CROGL_GENFILES)/pack_current.c \
|
---|
180 | $(VBOX_PATH_CROGL_GENFILES)/packer.c
|
---|
181 | VBoxOGLcrpacker_CLEAN = \
|
---|
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 \
|
---|
200 | $(VBOX_PATH_CROGL_GENFILES)/cr_packfunctions.h \
|
---|
201 | $(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h \
|
---|
202 | $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h
|
---|
203 |
|
---|
204 | #
|
---|
205 | # VBoxOGLhostcrpacker
|
---|
206 | #
|
---|
207 | VBoxOGLhostcrpacker_EXTENDS = VBoxOGLcrpacker
|
---|
208 | VBoxOGLhostcrpacker_TEMPLATE = VBOXCROGLR3HOSTLIB
|
---|
209 |
|
---|
210 | #
|
---|
211 | # Generate files for VBoxOGLcrpacker and VBoxOGLhostcrpacker.
|
---|
212 | #
|
---|
213 | $(VBOX_PATH_CROGL_GENFILES)/packer.def: $(PATH_SUB_CURRENT)/packer/packer_defs.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
214 | $(call MSG_GENERATE,python,$@,$<)
|
---|
215 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
216 |
|
---|
217 | $(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 $$@)
|
---|
218 | $(call MSG_GENERATE,python,$@,$<)
|
---|
219 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
220 |
|
---|
221 | $(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h: $(PATH_SUB_CURRENT)/packer/opcodes.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
222 | $(call MSG_GENERATE,python,$@,$<)
|
---|
223 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
224 |
|
---|
225 | $(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 $$@)
|
---|
226 | $(call MSG_GENERATE,python,$@,$<)
|
---|
227 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $<
|
---|
228 |
|
---|
229 | $(VBOX_PATH_CROGL_GENFILES)/packer.c: $(PATH_SUB_CURRENT)/packer/packer.py $(PATH_SUB_CURRENT)/packer/packer_special $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
230 | $(call MSG_GENERATE,python,$@,$<)
|
---|
231 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
232 |
|
---|
233 | $(VBOX_PATH_CROGL_GENFILES)/pack_bbox.c: $(PATH_SUB_CURRENT)/packer/packer_bbox.py | $$(dir $$@)
|
---|
234 | $(call MSG_GENERATE,python,$@,$<)
|
---|
235 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
236 |
|
---|
237 | $(VBOX_PATH_CROGL_GENFILES)/pack_current.c: $(PATH_SUB_CURRENT)/packer/pack_current.py $(PATH_SUB_CURRENT)/packer/pack_currenttypes.py | $$(dir $$@)
|
---|
238 | $(call MSG_GENERATE,python,$@,$<)
|
---|
239 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $<
|
---|
240 |
|
---|
241 | $(VBOX_PATH_CROGL_GENFILES)/%_swap.c: $(PATH_SUB_CURRENT)/packer/%.c $(PATH_SUB_CURRENT)/packer/pack_swap.py | $$(dir $$@)
|
---|
242 | $(call MSG_GENERATE,python,$@,$<)
|
---|
243 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/pack_swap.py $<
|
---|
244 |
|
---|
245 |
|
---|
246 | #
|
---|
247 | # VBoxOGLspuload
|
---|
248 | #
|
---|
249 | VBoxOGLspuload_TEMPLATE = VBOXCROGLR3GUESTLIB
|
---|
250 | VBoxOGLspuload_INTERMEDIATES = \
|
---|
251 | $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h
|
---|
252 | VBoxOGLspuload_SOURCES = \
|
---|
253 | spu_loader/spuinit.c \
|
---|
254 | spu_loader/spuload.c \
|
---|
255 | spu_loader/choosevisual.c \
|
---|
256 | $(VBOX_PATH_CROGL_GENFILES)/spuchange.c \
|
---|
257 | $(VBOX_PATH_CROGL_GENFILES)/spucopy.c \
|
---|
258 | $(VBOX_PATH_CROGL_GENFILES)/dispatch.c \
|
---|
259 | $(VBOX_PATH_CROGL_GENFILES)/glloader.c
|
---|
260 | VBoxOGLspuload_CLEAN = \
|
---|
261 | $(VBOX_PATH_CROGL_GENFILES)/spuchange.c \
|
---|
262 | $(VBOX_PATH_CROGL_GENFILES)/spucopy.c \
|
---|
263 | $(VBOX_PATH_CROGL_GENFILES)/dispatch.c \
|
---|
264 | $(VBOX_PATH_CROGL_GENFILES)/glloader.c \
|
---|
265 | $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h
|
---|
266 |
|
---|
267 | #
|
---|
268 | # VBoxOGLspuload
|
---|
269 | #
|
---|
270 | VBoxOGLhostspuload_EXTENDS = VBoxOGLspuload
|
---|
271 | VBoxOGLhostspuload_TEMPLATE = VBOXCROGLR3HOSTLIB
|
---|
272 |
|
---|
273 | #
|
---|
274 | # Generate files for VBoxOGLspuload and VBoxOGLhostspuload.
|
---|
275 | #
|
---|
276 | $(VBOX_PATH_CROGL_GENFILES)/dispatch.c: $(PATH_SUB_CURRENT)/spu_loader/dispatch.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
277 | $(call MSG_GENERATE,python,$@,$<)
|
---|
278 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
279 |
|
---|
280 | $(VBOX_PATH_CROGL_GENFILES)/spucopy.c: $(PATH_SUB_CURRENT)/spu_loader/spucopy.py $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
281 | $(call MSG_GENERATE,python,$@,$<)
|
---|
282 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
283 |
|
---|
284 | $(VBOX_PATH_CROGL_GENFILES)/spuchange.c: $(PATH_SUB_CURRENT)/spu_loader/spuchange.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)/glloader.c: $(PATH_SUB_CURRENT)/spu_loader/glloader.py $(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)
|
---|
291 |
|
---|
292 | $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h: $(PATH_SUB_CURRENT)/spu_loader/dispatchheader.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 |
|
---|
297 | #
|
---|
298 | # VBoxOGLcrstate
|
---|
299 | #
|
---|
300 | VBoxOGLcrstate_TEMPLATE = VBOXCROGLR3GUESTLIB
|
---|
301 | VBoxOGLcrstate_INCS = \
|
---|
302 | state_tracker
|
---|
303 | VBoxOGLcrstate_INTERMEDIATES = \
|
---|
304 | $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h \
|
---|
305 | $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \
|
---|
306 | $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h
|
---|
307 | VBoxOGLcrstate_SOURCES = \
|
---|
308 | state_tracker/state_attrib.c \
|
---|
309 | state_tracker/state_buffer.c \
|
---|
310 | state_tracker/state_bufferobject.c \
|
---|
311 | state_tracker/state_client.c \
|
---|
312 | state_tracker/state_current.c \
|
---|
313 | state_tracker/state_diff.c \
|
---|
314 | state_tracker/state_enable.c \
|
---|
315 | state_tracker/state_error.c \
|
---|
316 | state_tracker/state_evaluators.c \
|
---|
317 | state_tracker/state_feedback.c \
|
---|
318 | state_tracker/state_fence.c \
|
---|
319 | state_tracker/state_flush.c \
|
---|
320 | state_tracker/state_fog.c \
|
---|
321 | state_tracker/state_getstring.c \
|
---|
322 | state_tracker/state_hint.c \
|
---|
323 | state_tracker/state_init.c \
|
---|
324 | state_tracker/state_lighting.c \
|
---|
325 | state_tracker/state_limits.c \
|
---|
326 | state_tracker/state_line.c \
|
---|
327 | state_tracker/state_lists.c \
|
---|
328 | state_tracker/state_multisample.c \
|
---|
329 | state_tracker/state_occlude.c \
|
---|
330 | state_tracker/state_pixel.c \
|
---|
331 | state_tracker/state_point.c \
|
---|
332 | state_tracker/state_polygon.c \
|
---|
333 | state_tracker/state_program.c \
|
---|
334 | state_tracker/state_rasterpos.c \
|
---|
335 | state_tracker/state_regcombiner.c \
|
---|
336 | state_tracker/state_stencil.c \
|
---|
337 | state_tracker/state_texture.c \
|
---|
338 | state_tracker/state_teximage.c \
|
---|
339 | state_tracker/state_texdiff.c \
|
---|
340 | state_tracker/state_transform.c \
|
---|
341 | state_tracker/state_viewport.c \
|
---|
342 | $(VBOX_PATH_CROGL_GENFILES)/state_buffer_gen.c \
|
---|
343 | $(VBOX_PATH_CROGL_GENFILES)/state_current_gen.c \
|
---|
344 | $(VBOX_PATH_CROGL_GENFILES)/state_fog_gen.c \
|
---|
345 | $(VBOX_PATH_CROGL_GENFILES)/state_hint_gen.c \
|
---|
346 | $(VBOX_PATH_CROGL_GENFILES)/state_lighting_gen.c \
|
---|
347 | $(VBOX_PATH_CROGL_GENFILES)/state_line_gen.c \
|
---|
348 | $(VBOX_PATH_CROGL_GENFILES)/state_multisample_gen.c \
|
---|
349 | $(VBOX_PATH_CROGL_GENFILES)/state_point_gen.c \
|
---|
350 | $(VBOX_PATH_CROGL_GENFILES)/state_polygon_gen.c \
|
---|
351 | $(VBOX_PATH_CROGL_GENFILES)/state_regcombiner_gen.c \
|
---|
352 | $(VBOX_PATH_CROGL_GENFILES)/state_stencil_gen.c \
|
---|
353 | $(VBOX_PATH_CROGL_GENFILES)/state_viewport_gen.c \
|
---|
354 | $(VBOX_PATH_CROGL_GENFILES)/state_get.c \
|
---|
355 | $(VBOX_PATH_CROGL_GENFILES)/state_isenabled.c
|
---|
356 | VBoxOGLcrstate_CLEAN = \
|
---|
357 | $(VBOX_PATH_CROGL_GENFILES)/state_buffer_gen.c \
|
---|
358 | $(VBOX_PATH_CROGL_GENFILES)/state_current_gen.c \
|
---|
359 | $(VBOX_PATH_CROGL_GENFILES)/state_fog_gen.c \
|
---|
360 | $(VBOX_PATH_CROGL_GENFILES)/state_hint_gen.c \
|
---|
361 | $(VBOX_PATH_CROGL_GENFILES)/state_lighting_gen.c \
|
---|
362 | $(VBOX_PATH_CROGL_GENFILES)/state_line_gen.c \
|
---|
363 | $(VBOX_PATH_CROGL_GENFILES)/state_multisample_gen.c \
|
---|
364 | $(VBOX_PATH_CROGL_GENFILES)/state_point_gen.c \
|
---|
365 | $(VBOX_PATH_CROGL_GENFILES)/state_polygon_gen.c \
|
---|
366 | $(VBOX_PATH_CROGL_GENFILES)/state_regcombiner_gen.c \
|
---|
367 | $(VBOX_PATH_CROGL_GENFILES)/state_stencil_gen.c \
|
---|
368 | $(VBOX_PATH_CROGL_GENFILES)/state_viewport_gen.c \
|
---|
369 | $(VBOX_PATH_CROGL_GENFILES)/state_get.c \
|
---|
370 | $(VBOX_PATH_CROGL_GENFILES)/state_isenabled.c \
|
---|
371 | $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h
|
---|
372 |
|
---|
373 | #
|
---|
374 | # VBoxOGLhostcrstate
|
---|
375 | #
|
---|
376 | VBoxOGLhostcrstate_EXTENDS = VBoxOGLcrstate
|
---|
377 | VBoxOGLhostcrstate_TEMPLATE = VBOXCROGLR3HOSTLIB
|
---|
378 | VBoxOGLhostcrstate_SOURCES = \
|
---|
379 | $(VBoxOGLcrstate_SOURCES) \
|
---|
380 | state_tracker/state_snapshot.c
|
---|
381 |
|
---|
382 | #
|
---|
383 | # Generate files for VBoxOGLcrstate and VBoxOGLhostcrstate.
|
---|
384 | #
|
---|
385 |
|
---|
386 |
|
---|
387 | $(VBOX_PATH_CROGL_GENFILES)/state_buffer_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_buffer.txt gendiffcode.py) | $$(dir $$@)
|
---|
388 | $(call MSG_GENERATE,python,$@,$<)
|
---|
389 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py buffer Buffer $(<D)
|
---|
390 |
|
---|
391 | $(VBOX_PATH_CROGL_GENFILES)/state_client_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_client.txt gendiffcode.py) | $$(dir $$@)
|
---|
392 | $(call MSG_GENERATE,python,$@,$<)
|
---|
393 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py client Client $(<D)
|
---|
394 |
|
---|
395 | $(VBOX_PATH_CROGL_GENFILES)/state_current_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_current.py convert.py) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
396 | $(call MSG_GENERATE,python,$@,$<)
|
---|
397 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/state_current.py
|
---|
398 |
|
---|
399 | $(VBOX_PATH_CROGL_GENFILES)/state_fog_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_fog.txt gendiffcode.py) | $$(dir $$@)
|
---|
400 | $(call MSG_GENERATE,python,$@,$<)
|
---|
401 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py fog Fog $(<D)
|
---|
402 |
|
---|
403 | $(VBOX_PATH_CROGL_GENFILES)/state_hint_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_hint.txt gendiffcode.py) | $$(dir $$@)
|
---|
404 | $(call MSG_GENERATE,python,$@,$<)
|
---|
405 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py hint Hint $(<D)
|
---|
406 |
|
---|
407 | $(VBOX_PATH_CROGL_GENFILES)/state_lighting_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_lighting.txt gendiffcode.py) | $$(dir $$@)
|
---|
408 | $(call MSG_GENERATE,python,$@,$<)
|
---|
409 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py lighting Lighting $(<D)
|
---|
410 |
|
---|
411 | $(VBOX_PATH_CROGL_GENFILES)/state_line_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_line.txt gendiffcode.py) | $$(dir $$@)
|
---|
412 | $(call MSG_GENERATE,python,$@,$<)
|
---|
413 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py line Line $(<D)
|
---|
414 |
|
---|
415 | $(VBOX_PATH_CROGL_GENFILES)/state_multisample_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_multisample.txt gendiffcode.py) | $$(dir $$@)
|
---|
416 | $(call MSG_GENERATE,python,$@,$<)
|
---|
417 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py multisample Multisample $(<D)
|
---|
418 |
|
---|
419 | $(VBOX_PATH_CROGL_GENFILES)/state_point_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_point.txt gendiffcode.py) | $$(dir $$@)
|
---|
420 | $(call MSG_GENERATE,python,$@,$<)
|
---|
421 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py point Point $(<D)
|
---|
422 |
|
---|
423 | $(VBOX_PATH_CROGL_GENFILES)/state_polygon_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_polygon.txt gendiffcode.py) | $$(dir $$@)
|
---|
424 | $(call MSG_GENERATE,python,$@,$<)
|
---|
425 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py polygon Polygon $(<D)
|
---|
426 |
|
---|
427 | $(VBOX_PATH_CROGL_GENFILES)/state_regcombiner_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_regcombiner.txt gendiffcode.py) | $$(dir $$@)
|
---|
428 | $(call MSG_GENERATE,python,$@,$<)
|
---|
429 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py regcombiner RegCombiner $(<D)
|
---|
430 |
|
---|
431 | $(VBOX_PATH_CROGL_GENFILES)/state_stencil_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_stencil.txt gendiffcode.py) | $$(dir $$@)
|
---|
432 | $(call MSG_GENERATE,python,$@,$<)
|
---|
433 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py stencil Stencil $(<D)
|
---|
434 |
|
---|
435 | $(VBOX_PATH_CROGL_GENFILES)/state_viewport_gen.c: $(addprefix $(PATH_SUB_CURRENT)/state_tracker/, state_viewport.txt gendiffcode.py) | $$(dir $$@)
|
---|
436 | $(call MSG_GENERATE,python,$@,$<)
|
---|
437 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/gendiffcode.py viewport Viewport $(<D)
|
---|
438 |
|
---|
439 | $(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 $$@)
|
---|
440 | $(call MSG_GENERATE,python,$@,$<)
|
---|
441 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/state_get.py $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
442 |
|
---|
443 | $(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 $$@)
|
---|
444 | $(call MSG_GENERATE,python,$@,$<)
|
---|
445 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/state_isenabled.py $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
446 |
|
---|
447 | $(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 $$@)
|
---|
448 | $(call MSG_GENERATE,python,$@,$<)
|
---|
449 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/state_defs.py $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
450 |
|
---|
451 | $(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 $$@)
|
---|
452 | $(call MSG_GENERATE,python,$@,$<)
|
---|
453 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $(<D)/state_funcs.py $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
454 |
|
---|
455 |
|
---|
456 | #
|
---|
457 | # VBoxOGLerrorspu
|
---|
458 | # @remark See HostServices/OpenGL/Makefile for and explanation of the gl.h
|
---|
459 | # and glu.h intermediate files on darwin.
|
---|
460 | #
|
---|
461 | VBoxOGLerrorspu_TEMPLATE = VBOXCROGLR3GUESTDLL
|
---|
462 | VBoxOGLerrorspu_INTERMEDIATES = \
|
---|
463 | $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h
|
---|
464 | VBoxOGLerrorspu_SOURCES = \
|
---|
465 | $(VBOX_PATH_CROGL_GENFILES)/errorspu.c \
|
---|
466 | error/errorspu_init.c
|
---|
467 | VBoxOGLerrorspu_SOURCES.win.x86 = \
|
---|
468 | error/error.def \
|
---|
469 | error/errorspu.rc
|
---|
470 | VBoxOGLerrorspu_CLEAN = \
|
---|
471 | $(VBOX_PATH_CROGL_GENFILES)/errorspu.c
|
---|
472 | VBoxOGLerrorspu_LIBS = \
|
---|
473 | $(VBOX_LIB_OGL_CRUTIL)
|
---|
474 |
|
---|
475 | #
|
---|
476 | # VBoxOGLhosterrorspu
|
---|
477 | #
|
---|
478 | VBoxOGLhosterrorspu_EXTENDS = VBoxOGLerrorspu
|
---|
479 | VBoxOGLhosterrorspu_TEMPLATE = VBOXCROGLR3HOSTDLL
|
---|
480 | VBoxOGLhosterrorspu_LDFLAGS.darwin += $(VBoxOGLerrorspu_LDFLAGS.darwin) \
|
---|
481 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxOGLhosterrorspu.dylib \
|
---|
482 | -current_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)
|
---|
483 | VBoxOGLhosterrorspu_LIBS = \
|
---|
484 | $(VBOX_LIB_OGL_HOSTCRUTIL) \
|
---|
485 | $(LIB_RUNTIME)
|
---|
486 |
|
---|
487 | #
|
---|
488 | # Generate files for VBoxOGLerrorspu and VBoxOGLhosterrorspu.
|
---|
489 | #
|
---|
490 | $(VBOX_PATH_CROGL_GENFILES)/errorspu.c: $(PATH_SUB_CURRENT)/error/error.py $(VBOX_CROGL_API_FILES)
|
---|
491 | $(call MSG_GENERATE,python,$@,$<)
|
---|
492 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI)
|
---|
493 |
|
---|
494 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
495 |
|
---|