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 |
|
---|
18 | SUB_DEPTH = ../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 |
|
---|
22 | #
|
---|
23 | # Target lists.
|
---|
24 | #
|
---|
25 | BLDDIRS += \
|
---|
26 | $(VBOX_PATH_CROGL_GENFILES)/ \
|
---|
27 | $(VBOX_PATH_CROGL_GENFILES)/state/
|
---|
28 |
|
---|
29 | ifdef VBOX_WITH_ADDITIONS
|
---|
30 | DLLS += VBoxOGLcrutil VBoxOGLerrorspu
|
---|
31 | LIBRARIES += VBoxOGLcrpacker VBoxOGLspuload VBoxOGLcrstate
|
---|
32 | endif
|
---|
33 |
|
---|
34 | ifndef VBOX_ONLY_ADDITIONS
|
---|
35 | DLLS += VBoxOGLhostcrutil VBoxOGLhosterrorspu
|
---|
36 | LIBRARIES += VBoxOGLhostcrpacker VBoxOGLhostspuload VBoxOGLhostcrstate
|
---|
37 | endif
|
---|
38 |
|
---|
39 | #
|
---|
40 | # VBoxOGLcrutil
|
---|
41 | #
|
---|
42 | VBoxOGLcrutil_TEMPLATE = VBOXCROGLR3GUESTDLL
|
---|
43 | if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
|
---|
44 | VBoxOGLcrutil_INSTTYPE.win = none
|
---|
45 | VBoxOGLcrutil_DEBUG_INSTTYPE.win = both
|
---|
46 | endif
|
---|
47 | VBoxOGLcrutil_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
|
---|
48 | VBoxOGLcrutil_INTERMEDIATES = $(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h
|
---|
49 | if1of ($(KBUILD_TARGET), linux solaris freebsd)
|
---|
50 | VBoxOGLcrutil_INCS += \
|
---|
51 | $(VBOX_MESA_INCS)
|
---|
52 | endif
|
---|
53 | VBoxOGLcrutil_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
|
---|
81 | VBoxOGLcrutil_SOURCES.win.x86 = \
|
---|
82 | util/util.def \
|
---|
83 | util/util.rc
|
---|
84 | VBoxOGLcrutil_LIBS.win = \
|
---|
85 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
|
---|
86 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
|
---|
87 | VBoxOGLcrutil_LIBS = \
|
---|
88 | $(VBOX_LIB_IPRT_GUEST_R3_SHARED) \
|
---|
89 | $(VBOX_LIB_VBGL_R3_SHARED)
|
---|
90 | ifdef VBOX_WITH_CRHGSMI
|
---|
91 | VBoxOGLcrutil_DEFS.win += VBOX_WITH_CRHGSMI
|
---|
92 | VBoxOGLcrutil_LIBS.win += $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi$(VBOX_SUFF_LIB)
|
---|
93 | endif
|
---|
94 | ifdef VBOX_WITH_WDDM
|
---|
95 | VBoxOGLcrutil_DEFS.win += VBOX_WITH_WDDM
|
---|
96 | VBoxOGLcrutil_DEFS.win += CR_DEBUG_BACKDOOR_ENABLE
|
---|
97 | VBoxOGLcrutil_INCS.win += $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm
|
---|
98 | VBoxOGLcrutil_LIBS.win += $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger$(VBOX_SUFF_LIB)
|
---|
99 | endif
|
---|
100 | VBoxOGLcrutil_CLEAN = \
|
---|
101 | $(VBOX_PATH_CROGL_GENFILES)/debug_opcodes.c
|
---|
102 |
|
---|
103 | # vc7 hangs during compilation of this file when optimizations are enabled.
|
---|
104 | VBoxOGLcrutil_pixel.c_CFLAGS.win.x86 += -Od
|
---|
105 | VBoxOGLhostcrutil_pixel.c_CFLAGS.win.x86 += -Od
|
---|
106 |
|
---|
107 | if defined(VBOX_WITH_WDDM) && defined(VBOX_WITH_ADDITIONS)
|
---|
108 | #
|
---|
109 | # VBoxOGLcrutil-x86 - x86 VBoxOGLcrutil version built for amd64 build
|
---|
110 | #
|
---|
111 | DLLS.win.amd64 += VBoxOGLcrutil-x86
|
---|
112 | VBoxOGLcrutil-x86_TEMPLATE = VBOXCROGLR3GUESTDLL
|
---|
113 | VBoxOGLcrutil-x86_EXTENDS = VBoxOGLcrutil
|
---|
114 | VBoxOGLcrutil-x86_BLD_TRG_ARCH = x86
|
---|
115 | VBoxOGLcrutil-x86_LIBS = $(VBOX_LIB_IPRT_GUEST_R3_SHARED_X86) \
|
---|
116 | $(VBOX_LIB_VBGL_R3_SHARED_X86)
|
---|
117 | VBoxOGLcrutil-x86_LIBS.win = \
|
---|
118 | $(PATH_SDK_$(VBOX_WINDDK)_LIB.x86)/ddraw.lib \
|
---|
119 | $(PATH_SDK_$(VBOX_WINDDK)_LIB.x86)/dxguid.lib
|
---|
120 | ifdef VBOX_WITH_CRHGSMI
|
---|
121 | # VBOX_WITH_CRHGSMI define is inherited from VBoxOGLcrutil
|
---|
122 | VBoxOGLcrutil-x86_LIBS.win += $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi-x86$(VBOX_SUFF_LIB)
|
---|
123 | endif
|
---|
124 | VBoxOGLcrutil-x86_DEFS = $(VBoxOGLcrutil_DEFS) VBOX_WDDM_WOW64
|
---|
125 | ifdef VBOX_WITH_WDDM
|
---|
126 | # CR_DEBUG_BACKDOOR_ENABLE define is inherited from VBoxOGLcrutil
|
---|
127 | VBoxOGLcrutil-x86_INCS.win += $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm
|
---|
128 | VBoxOGLcrutil-x86_LIBS.win += $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger-x86$(VBOX_SUFF_LIB)
|
---|
129 | endif
|
---|
130 | # vc7 hangs during compilation of this file when optimizations are enabled.
|
---|
131 | VBoxOGLcrutil-x86_pixel.c_CFLAGS += -Od
|
---|
132 | VBoxOGLcrutil-x86_pixel.c_CFLAGS += -Od
|
---|
133 | endif
|
---|
134 |
|
---|
135 | #
|
---|
136 | # VBoxOGLhostcrutil
|
---|
137 | #
|
---|
138 | VBoxOGLhostcrutil_EXTENDS = VBoxOGLcrutil
|
---|
139 | VBoxOGLhostcrutil_TEMPLATE = VBOXCROGLR3HOSTDLL
|
---|
140 | if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
|
---|
141 | VBoxOGLhostcrutil_INSTTYPE.win = both
|
---|
142 | endif
|
---|
143 | VBoxOGLhostcrutil_LDFLAGS.darwin = $(VBoxOGLcrutil_LDFLAGS.darwin) \
|
---|
144 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxOGLhostcrutil.dylib
|
---|
145 | VBoxOGLhostcrutil_LIBS.win = \
|
---|
146 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ddraw.lib \
|
---|
147 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
|
---|
148 | VBoxOGLhostcrutil_LIBS = $(LIB_RUNTIME)
|
---|
149 | ifdef VBOX_WITH_CRHGSMI
|
---|
150 | VBoxOGLhostcrutil_DEFS += VBOX_WITH_CRHGSMI
|
---|
151 | endif
|
---|
152 | ifdef VBOX_WITH_WDDM
|
---|
153 | VBoxOGLhostcrutil_INCS.win = $(NO_SUCH_VARIABLE)
|
---|
154 | VBoxOGLhostcrutil_DEFS.win = $(NO_SUCH_VARIABLE)
|
---|
155 | endif
|
---|
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 | #
|
---|
167 | VBoxOGLcrpacker_TEMPLATE = VBOXCROGLR3GUESTLIB
|
---|
168 | VBoxOGLcrpacker_INCS = \
|
---|
169 | packer
|
---|
170 | if1of ($(KBUILD_TARGET), linux solaris freebsd)
|
---|
171 | VBoxOGLcrpacker_INCS += \
|
---|
172 | $(VBOX_MESA_INCS)
|
---|
173 | endif
|
---|
174 | VBoxOGLcrpacker_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
|
---|
180 | VBoxOGLcrpacker_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
|
---|
233 | VBoxOGLcrpacker_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
|
---|
255 | ifdef VBOX_WITH_CRHGSMI
|
---|
256 | VBoxOGLcrpacker_DEFS.win += VBOX_WITH_CRHGSMI
|
---|
257 | endif
|
---|
258 | ifdef VBOX_WITH_WDDM
|
---|
259 | VBoxOGLcrpacker_DEFS.win += VBOX_WITH_WDDM
|
---|
260 | endif
|
---|
261 |
|
---|
262 | if defined(VBOX_WITH_WDDM) && defined(VBOX_WITH_ADDITIONS)
|
---|
263 | #
|
---|
264 | # VBoxOGLcrpacker-x86 - x86 VBoxOGLcrpacker version built for amd64 build
|
---|
265 | #
|
---|
266 | LIBRARIES.win.amd64 += VBoxOGLcrpacker-x86
|
---|
267 | VBoxOGLcrpacker-x86_TEMPLATE = VBOXCROGLR3GUESTLIB
|
---|
268 | VBoxOGLcrpacker-x86_EXTENDS = VBoxOGLcrpacker
|
---|
269 | VBoxOGLcrpacker-x86_BLD_TRG_ARCH = x86
|
---|
270 | VBoxOGLcrpacker-x86_DEFS = $(VBoxOGLcrpacker_DEFS) VBOX_WDDM_WOW64
|
---|
271 | endif
|
---|
272 |
|
---|
273 | #
|
---|
274 | # VBoxOGLhostcrpacker
|
---|
275 | #
|
---|
276 | VBoxOGLhostcrpacker_EXTENDS = VBoxOGLcrpacker
|
---|
277 | VBoxOGLhostcrpacker_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 | #
|
---|
318 | VBoxOGLspuload_TEMPLATE = VBOXCROGLR3GUESTLIB
|
---|
319 | VBoxOGLspuload_INTERMEDIATES = \
|
---|
320 | $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h
|
---|
321 | if1of ($(KBUILD_TARGET), linux solaris freebsd)
|
---|
322 | VBoxOGLspuload_INCS += \
|
---|
323 | $(VBOX_MESA_INCS)
|
---|
324 | endif
|
---|
325 | VBoxOGLspuload_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
|
---|
333 | VBoxOGLspuload_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
|
---|
339 | ifdef VBOX_WITH_CRHGSMI
|
---|
340 | VBoxOGLspuload_DEFS.win += VBOX_WITH_CRHGSMI
|
---|
341 | endif
|
---|
342 | ifdef VBOX_WITH_WDDM
|
---|
343 | VBoxOGLspuload_DEFS.win += VBOX_WITH_WDDM
|
---|
344 | endif
|
---|
345 |
|
---|
346 | if defined(VBOX_WITH_WDDM) && defined(VBOX_WITH_ADDITIONS)
|
---|
347 | #
|
---|
348 | # VBoxOGLspuload-x86 - x86 VBoxOGLspuload version built for amd64 build
|
---|
349 | #
|
---|
350 | LIBRARIES.win.amd64 += VBoxOGLspuload-x86
|
---|
351 | VBoxOGLspuload-x86_TEMPLATE = VBOXCROGLR3GUESTLIB
|
---|
352 | VBoxOGLspuload-x86_EXTENDS = VBoxOGLspuload
|
---|
353 | VBoxOGLspuload-x86_BLD_TRG_ARCH = x86
|
---|
354 | VBoxOGLspuload-x86_DEFS = $(VBoxOGLspuload_DEFS) VBOX_WDDM_WOW64
|
---|
355 | endif
|
---|
356 |
|
---|
357 |
|
---|
358 | #
|
---|
359 | # VBoxOGLhostspuload
|
---|
360 | #
|
---|
361 | VBoxOGLhostspuload_EXTENDS = VBoxOGLspuload
|
---|
362 | VBoxOGLhostspuload_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 | #
|
---|
391 | VBoxOGLcrstate_TEMPLATE = VBOXCROGLR3GUESTLIB
|
---|
392 | VBoxOGLcrstate_INCS = \
|
---|
393 | state_tracker
|
---|
394 | if1of ($(KBUILD_TARGET), linux solaris freebsd)
|
---|
395 | VBoxOGLcrstate_INCS += \
|
---|
396 | $(VBOX_MESA_INCS)
|
---|
397 | endif
|
---|
398 | VBoxOGLcrstate_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
|
---|
402 | VBoxOGLcrstate_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
|
---|
453 | VBoxOGLcrstate_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
|
---|
469 | ifneq ($(KBUILD_TARGET),win)
|
---|
470 | state_tracker/state_lists.c_CFLAGS += $(VBOX_GCC_Wno-pointer-sign)
|
---|
471 | VBoxOGLcrstate_CFLAGS +=
|
---|
472 | endif
|
---|
473 | ifdef VBOX_WITH_CRHGSMI
|
---|
474 | VBoxOGLcrstate_DEFS.win += VBOX_WITH_CRHGSMI
|
---|
475 | endif
|
---|
476 | ifdef VBOX_WITH_WDDM
|
---|
477 | VBoxOGLcrstate_DEFS.win += VBOX_WITH_WDDM
|
---|
478 | endif
|
---|
479 |
|
---|
480 | if defined(VBOX_WITH_WDDM) && defined(VBOX_WITH_ADDITIONS)
|
---|
481 | #
|
---|
482 | # VBoxOGLcrstate-x86 - x86 VBoxOGLcrstate version built for amd64 build
|
---|
483 | #
|
---|
484 | LIBRARIES.win.amd64 += VBoxOGLcrstate-x86
|
---|
485 | VBoxOGLcrstate-x86_TEMPLATE = VBOXCROGLR3GUESTLIB
|
---|
486 | VBoxOGLcrstate-x86_EXTENDS = VBoxOGLcrstate
|
---|
487 | VBoxOGLcrstate-x86_BLD_TRG_ARCH = x86
|
---|
488 | VBoxOGLcrstate-x86_DEFS = $(VBoxOGLcrstate_DEFS) VBOX_WDDM_WOW64
|
---|
489 | endif
|
---|
490 |
|
---|
491 |
|
---|
492 | #
|
---|
493 | # VBoxOGLhostcrstate
|
---|
494 | #
|
---|
495 | VBoxOGLhostcrstate_EXTENDS = VBoxOGLcrstate
|
---|
496 | VBoxOGLhostcrstate_TEMPLATE = VBOXCROGLR3HOSTLIB
|
---|
497 | VBoxOGLhostcrstate_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 | #
|
---|
580 | VBoxOGLerrorspu_TEMPLATE = VBOXCROGLR3GUESTDLL
|
---|
581 | if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
|
---|
582 | VBoxOGLerrorspu_INSTTYPE.win = none
|
---|
583 | VBoxOGLerrorspu_DEBUG_INSTTYPE.win = both
|
---|
584 | endif
|
---|
585 | VBoxOGLerrorspu_INTERMEDIATES = \
|
---|
586 | $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h
|
---|
587 | if1of ($(KBUILD_TARGET), linux solaris freebsd)
|
---|
588 | VBoxOGLerrorspu_INCS += \
|
---|
589 | $(VBOX_MESA_INCS)
|
---|
590 | endif
|
---|
591 | VBoxOGLerrorspu_SOURCES = \
|
---|
592 | $(VBOX_PATH_CROGL_GENFILES)/errorspu.c \
|
---|
593 | error/errorspu_init.c
|
---|
594 | VBoxOGLerrorspu_SOURCES.win.x86 = \
|
---|
595 | error/error.def \
|
---|
596 | error/errorspu.rc
|
---|
597 | VBoxOGLerrorspu_CLEAN = \
|
---|
598 | $(VBOX_PATH_CROGL_GENFILES)/errorspu.c
|
---|
599 | VBoxOGLerrorspu_LIBS = \
|
---|
600 | $(VBOX_LIB_OGL_CRUTIL)
|
---|
601 | ifdef VBOX_WITH_CRHGSMI
|
---|
602 | VBoxOGLerrorspu_DEFS.win += VBOX_WITH_CRHGSMI
|
---|
603 | endif
|
---|
604 | ifdef VBOX_WITH_WDDM
|
---|
605 | VBoxOGLerrorspu_DEFS.win += VBOX_WITH_WDDM
|
---|
606 | endif
|
---|
607 |
|
---|
608 |
|
---|
609 | if defined(VBOX_WITH_WDDM) && defined(VBOX_WITH_ADDITIONS)
|
---|
610 | #
|
---|
611 | # VBoxOGLerrorspu-x86 - x86 VBoxOGLerrorspu version built for amd64 build
|
---|
612 | #
|
---|
613 | DLLS.win.amd64 += VBoxOGLerrorspu-x86
|
---|
614 | VBoxOGLerrorspu-x86_TEMPLATE = VBOXCROGLR3GUESTDLL
|
---|
615 | VBoxOGLerrorspu-x86_EXTENDS = VBoxOGLerrorspu
|
---|
616 | VBoxOGLerrorspu-x86_BLD_TRG_ARCH = x86
|
---|
617 | VBoxOGLerrorspu-x86_LIBS = \
|
---|
618 | $(VBOX_LIB_OGL_CRUTIL_X86)
|
---|
619 | VBoxOGLerrorspu-x86_DEFS = $(VBoxOGLerrorspu_DEFS) VBOX_WDDM_WOW64
|
---|
620 | endif
|
---|
621 |
|
---|
622 | #
|
---|
623 | # VBoxOGLhosterrorspu
|
---|
624 | #
|
---|
625 | VBoxOGLhosterrorspu_EXTENDS = VBoxOGLerrorspu
|
---|
626 | VBoxOGLhosterrorspu_TEMPLATE = VBOXCROGLR3HOSTDLL
|
---|
627 | if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM)
|
---|
628 | VBoxOGLhosterrorspu_INSTTYPE.win = both
|
---|
629 | endif
|
---|
630 | VBoxOGLhosterrorspu_LDFLAGS.darwin += $(VBoxOGLerrorspu_LDFLAGS.darwin) \
|
---|
631 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxOGLhosterrorspu.dylib
|
---|
632 | VBoxOGLhosterrorspu_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)
|
---|
642 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
643 |
|
---|