1 | # $Id: Makefile.kmk 53848 2015-01-16 09:09:25Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the Shared OpenGL Host Service.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2008-2014 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 | ifdef VBOX_WITH_MAIN
|
---|
26 | DLLS += VBoxSharedCrOpenGL VBoxOGLrenderspu
|
---|
27 | LIBRARIES += VBoxOGLcrserverlib VBoxOGLcrunpacker
|
---|
28 | BLDDIRS += \
|
---|
29 | $(VBOX_PATH_CROGL_GENFILES)/
|
---|
30 | endif
|
---|
31 |
|
---|
32 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
33 | #
|
---|
34 | # We have to symlink the system headers of OpenGl cause they have some
|
---|
35 | # different directory hierarchy on Mac OS X (no /GL sub directory).
|
---|
36 | #
|
---|
37 | # See Config.kmk for the global variables.
|
---|
38 | #
|
---|
39 | INSTALLS += DarwinOpenGLHdrs
|
---|
40 | DarwinOpenGLHdrs_INST = $(VBOX_DARWIN_OPENGL_INST)
|
---|
41 | DarwinOpenGLHdrs_SYMLINKS = \
|
---|
42 | $(foreach hdr, $(VBOX_DARWIN_OPENGL_HEADERS),\
|
---|
43 | $(hdr)=>$(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/$(hdr))
|
---|
44 | endif # darwin
|
---|
45 |
|
---|
46 | #
|
---|
47 | # VBoxSharedCrOpenGL
|
---|
48 | #
|
---|
49 | VBoxSharedCrOpenGL_TEMPLATE = VBOXCROGLR3HOSTDLL
|
---|
50 | ifdef VBOX_WITH_XPCOM
|
---|
51 | VBoxSharedCrOpenGL_DEFS = VBOX_WITH_XPCOM
|
---|
52 | VBoxSharedCrOpenGL_CXXFLAGS = -Wno-non-virtual-dtor -fshort-wchar $(VBOX_GCC_std)
|
---|
53 | endif
|
---|
54 | VBoxSharedCrOpenGL_INTERMEDIATES = \
|
---|
55 | $(TEMPLATE_VBOXMAINEXE_INTERMEDIATES)
|
---|
56 | VBoxSharedCrOpenGL_INCS.win = \
|
---|
57 | $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_INC) \
|
---|
58 | $(VBOX_PATH_SDK)/bindings/mscom/include
|
---|
59 | ifdef VBOX_WITH_XPCOM
|
---|
60 | VBoxSharedCrOpenGL_INCS += \
|
---|
61 | $(VBOX_XPCOM_INCS)
|
---|
62 | endif
|
---|
63 | VBoxSharedCrOpenGL_SOURCES = \
|
---|
64 | crserver/crservice.cpp
|
---|
65 | VBoxSharedCrOpenGL_SOURCES.win = \
|
---|
66 | crserver/VBoxSharedCrOpenGL.rc
|
---|
67 | VBoxSharedCrOpenGL_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSharedCrOpenGL.dylib
|
---|
68 | VBoxSharedCrOpenGL_LIBS = \
|
---|
69 | $(PATH_STAGE_LIB)/VBoxOGLcrserverlib$(VBOX_SUFF_LIB) \
|
---|
70 | $(PATH_STAGE_LIB)/VBoxOGLhostcrstate$(VBOX_SUFF_LIB) \
|
---|
71 | $(PATH_STAGE_LIB)/VBoxOGLcrunpacker$(VBOX_SUFF_LIB) \
|
---|
72 | $(PATH_STAGE_LIB)/VBoxOGLhostcrpacker$(VBOX_SUFF_LIB) \
|
---|
73 | $(PATH_STAGE_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \
|
---|
74 | $(VBOX_LIB_OGL_HOSTCRUTIL) \
|
---|
75 | $(PATH_STAGE_LIB)/VBoxCOM$(VBOX_SUFF_LIB) \
|
---|
76 | $(LIB_RUNTIME) \
|
---|
77 | $(LIB_VMM)
|
---|
78 | VBoxSharedCrOpenGL_LIBS.darwin = \
|
---|
79 | $(LIB_REM)
|
---|
80 | ifeq ($(KBUILD_TARGET),win)
|
---|
81 | VBoxSharedCrOpenGL_LIBS += \
|
---|
82 | $(PATH_OBJ)/VBoxOGLrenderspu/VBoxOGLrenderspu$(VBOX_SUFF_LIB) \
|
---|
83 | $(PATH_TOOL_$(VBOX_VCC_TOOL)_ATLMFC_LIB)/atls$(VBOX_SUFF_LIB)
|
---|
84 | else
|
---|
85 | VBoxSharedCrOpenGL_LIBS += \
|
---|
86 | $(PATH_STAGE_BIN)/VBoxOGLrenderspu$(VBOX_SUFF_DLL)
|
---|
87 | endif
|
---|
88 | ifdef VBOX_WITH_XPCOM
|
---|
89 | VBoxSharedCrOpenGL_LIBS += \
|
---|
90 | $(LIB_XPCOM)
|
---|
91 | endif
|
---|
92 | ifdef VBOX_WITH_CRHGSMI
|
---|
93 | VBoxSharedCrOpenGL_DEFS += VBOX_WITH_CRHGSMI
|
---|
94 | endif
|
---|
95 |
|
---|
96 | #
|
---|
97 | # VBoxOGLcrserverlib
|
---|
98 | #
|
---|
99 | VBoxOGLcrserverlib_TEMPLATE = VBOXCROGLR3HOSTLIB
|
---|
100 | VBoxOGLcrserverlib_INCS = \
|
---|
101 | . \
|
---|
102 | crserverlib
|
---|
103 | VBoxOGLcrserverlib_INTERMEDIATES = \
|
---|
104 | $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h \
|
---|
105 | $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.h \
|
---|
106 | $(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h \
|
---|
107 | $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \
|
---|
108 | $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h
|
---|
109 | VBoxOGLcrserverlib_SOURCES := \
|
---|
110 | crserverlib/server_main.c \
|
---|
111 | crserverlib/server_boundsinfo.c \
|
---|
112 | crserverlib/server_bufferobject.c \
|
---|
113 | crserverlib/server_clear.c \
|
---|
114 | crserverlib/server_clip.c \
|
---|
115 | crserverlib/server_config.c \
|
---|
116 | crserverlib/server_context.c \
|
---|
117 | crserverlib/server_gentextures.c \
|
---|
118 | crserverlib/server_getmap.c \
|
---|
119 | crserverlib/server_getstring.c \
|
---|
120 | crserverlib/server_getpointer.c \
|
---|
121 | crserverlib/server_getpixelmap.c \
|
---|
122 | crserverlib/server_getteximage.c \
|
---|
123 | crserverlib/server_lists.c \
|
---|
124 | crserverlib/server_misc.c \
|
---|
125 | crserverlib/server_occlude.c \
|
---|
126 | crserverlib/server_papi.c \
|
---|
127 | crserverlib/server_projmatrix.c \
|
---|
128 | crserverlib/server_readpixels.c \
|
---|
129 | crserverlib/server_stream.c \
|
---|
130 | crserverlib/server_viewport.c \
|
---|
131 | crserverlib/server_window.c \
|
---|
132 | crserverlib/server_winpos.c \
|
---|
133 | crserverlib/server_writeback.c \
|
---|
134 | crserverlib/server_getshaders.c \
|
---|
135 | crserverlib/server_framebuffer.c \
|
---|
136 | crserverlib/server_glsl.c \
|
---|
137 | crserverlib/server_muralfbo.cpp \
|
---|
138 | crserverlib/server_texture.c \
|
---|
139 | crserverlib/presenter/server_presenter.cpp \
|
---|
140 | crserverlib/presenter/display_base.cpp \
|
---|
141 | crserverlib/presenter/display_composite.cpp \
|
---|
142 | crserverlib/presenter/window.cpp \
|
---|
143 | crserverlib/presenter/display_window.cpp \
|
---|
144 | crserverlib/presenter/display_window_rootvr.cpp \
|
---|
145 | crserverlib/presenter/display_vrdp.cpp \
|
---|
146 | crserverlib/server_rpw.cpp \
|
---|
147 | $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.c \
|
---|
148 | $(VBOX_PATH_CROGL_GENFILES)/server_retval.c \
|
---|
149 | $(VBOX_PATH_CROGL_GENFILES)/server_get.c \
|
---|
150 | $(VBOX_PATH_CROGL_GENFILES)/server_simpleget.c
|
---|
151 | VBoxOGLcrserverlib_CLEAN = \
|
---|
152 | $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.c \
|
---|
153 | $(VBOX_PATH_CROGL_GENFILES)/server_retval.c \
|
---|
154 | $(VBOX_PATH_CROGL_GENFILES)/server_get.c \
|
---|
155 | $(VBOX_PATH_CROGL_GENFILES)/server_simpleget.c \
|
---|
156 | $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.h
|
---|
157 | ifdef VBOXCR_LOGFPS
|
---|
158 | VBoxOGLcrserverlib_DEFS += VBOXCR_LOGFPS
|
---|
159 | endif
|
---|
160 | ifdef VBOX_WITH_CRHGSMI
|
---|
161 | VBoxOGLcrserverlib_DEFS += ifdef VBOX_WITH_CRHGSMI
|
---|
162 | endif
|
---|
163 | ifdef VBOX_WITH_CRDUMPER
|
---|
164 | VBoxOGLcrserverlib_DEFS += VBOX_WITH_CRDUMPER
|
---|
165 | endif
|
---|
166 | ifdef VBOX_WITH_CRSERVER_DUMPER
|
---|
167 | VBoxOGLcrserverlib_DEFS += VBOX_WITH_CRSERVER_DUMPER
|
---|
168 | endif
|
---|
169 |
|
---|
170 |
|
---|
171 | #
|
---|
172 | # Generate files for VBoxOGLcrserverlib
|
---|
173 | #
|
---|
174 | $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.h: $(addprefix $(PATH_SUB_CURRENT)/crserverlib/, server_dispatch_header.py server_special) $(VBOX_CROGL_API_FILES) $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/state_tracker/state_special | $$(dir $$@)
|
---|
175 | $(call MSG_GENERATE,python,$@,$<)
|
---|
176 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
177 |
|
---|
178 | $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.c: $(addprefix $(PATH_SUB_CURRENT)/crserverlib/, server_dispatch.py server_special) $(VBOX_CROGL_API_FILES) $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/state_tracker/state_special | $$(dir $$@)
|
---|
179 | $(call MSG_GENERATE,python,$@,$<)
|
---|
180 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
181 |
|
---|
182 | $(VBOX_PATH_CROGL_GENFILES)/server_retval.c: $(addprefix $(PATH_SUB_CURRENT)/crserverlib/, server_retval.py server_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
183 | $(call MSG_GENERATE,python,$@,$<)
|
---|
184 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
185 |
|
---|
186 | $(VBOX_PATH_CROGL_GENFILES)/server_get.c: $(addprefix $(PATH_SUB_CURRENT)/crserverlib/, server_get.py server_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
187 | $(call MSG_GENERATE,python,$@,$<)
|
---|
188 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
189 |
|
---|
190 | $(VBOX_PATH_CROGL_GENFILES)/server_simpleget.c: $(addprefix $(PATH_SUB_CURRENT)/crserverlib/, server_simpleget.py get_sizes.py) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
|
---|
191 | $(call MSG_GENERATE,python,$@,$<)
|
---|
192 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
193 |
|
---|
194 |
|
---|
195 | #
|
---|
196 | # VBoxOGLcrunpacker
|
---|
197 | #
|
---|
198 | VBoxOGLcrunpacker_TEMPLATE = VBOXCROGLR3HOSTLIB
|
---|
199 | VBoxOGLcrunpacker_INCS = \
|
---|
200 | unpacker
|
---|
201 | VBoxOGLcrunpacker_INTERMEDIATES = \
|
---|
202 | $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h \
|
---|
203 | $(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h \
|
---|
204 | $(VBOX_PATH_CROGL_GENFILES)/unpack_extend.h \
|
---|
205 | $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \
|
---|
206 | $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h
|
---|
207 | VBoxOGLcrunpacker_SOURCES = \
|
---|
208 | unpacker/unpack_arrays.c \
|
---|
209 | unpacker/unpack_bounds.c \
|
---|
210 | unpacker/unpack_bufferobject.c \
|
---|
211 | unpacker/unpack_calllists.c \
|
---|
212 | unpacker/unpack_clipplane.c \
|
---|
213 | unpacker/unpack_context.c \
|
---|
214 | unpacker/unpack_drawpixels.c \
|
---|
215 | unpacker/unpack_fence.c \
|
---|
216 | unpacker/unpack_fog.c \
|
---|
217 | unpacker/unpack_lights.c \
|
---|
218 | unpacker/unpack_map.c \
|
---|
219 | unpacker/unpack_materials.c \
|
---|
220 | unpacker/unpack_matrices.c \
|
---|
221 | unpacker/unpack_misc.c \
|
---|
222 | unpacker/unpack_pixelmap.c \
|
---|
223 | unpacker/unpack_point.c \
|
---|
224 | unpacker/unpack_program.c \
|
---|
225 | unpacker/unpack_readpixels.c \
|
---|
226 | unpacker/unpack_regcombiner.c \
|
---|
227 | unpacker/unpack_stipple.c \
|
---|
228 | unpacker/unpack_texture.c \
|
---|
229 | unpacker/unpack_writeback.c \
|
---|
230 | unpacker/unpack_visibleregion.c \
|
---|
231 | unpacker/unpack_shaders.c \
|
---|
232 | unpacker/unpack_framebuffer.c \
|
---|
233 | $(VBOX_PATH_CROGL_GENFILES)/unpack.c
|
---|
234 | VBoxOGLcrunpacker_CLEAN = \
|
---|
235 | $(VBOX_PATH_CROGL_GENFILES)/unpack.c \
|
---|
236 | $(VBOX_PATH_CROGL_GENFILES)/unpack_extend.h
|
---|
237 |
|
---|
238 | #
|
---|
239 | # Generate files for VBoxOGLcrunpacker.
|
---|
240 | #
|
---|
241 | $(VBOX_PATH_CROGL_GENFILES)/unpack.c: \
|
---|
242 | $(addprefix $(PATH_SUB_CURRENT)/unpacker/, unpack.py unpacker_special) \
|
---|
243 | $(VBOX_PATH_CROGL_GENFILES)/unpack_extend.h \
|
---|
244 | $(VBOX_CROGL_API_FILES) \
|
---|
245 | | $$(dir $$@)
|
---|
246 | $(call MSG_GENERATE,python,$@,$<)
|
---|
247 | $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
|
---|
248 |
|
---|
249 | $(VBOX_PATH_CROGL_GENFILES)/unpack_extend.h: \
|
---|
250 | $(addprefix $(PATH_SUB_CURRENT)/unpacker/, unpack_extend.py unpacker_special) \
|
---|
251 | $(VBOX_CROGL_API_FILES) \
|
---|
252 | | $$(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) $(<D)
|
---|
255 |
|
---|
256 |
|
---|
257 | #
|
---|
258 | # VBoxOGLrenderspu
|
---|
259 | #
|
---|
260 | VBoxOGLrenderspu_TEMPLATE = VBOXCROGLR3HOSTDLL
|
---|
261 | VBoxOGLrenderspu_INTERMEDIATES = \
|
---|
262 | $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \
|
---|
263 | $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h
|
---|
264 | VBoxOGLrenderspu_SOURCES = \
|
---|
265 | render/renderspu.c \
|
---|
266 | render/renderspu_config.c \
|
---|
267 | render/renderspu_init.c
|
---|
268 | VBoxOGLrenderspu_SOURCES.win = \
|
---|
269 | render/renderspu_wgl.c \
|
---|
270 | render/render.def \
|
---|
271 | render/VBoxOGLrenderspu.rc
|
---|
272 | VBoxOGLrenderspu_SOURCES.linux = render/renderspu_glx.c
|
---|
273 | VBoxOGLrenderspu_SOURCES.solaris = render/renderspu_glx.c
|
---|
274 | VBoxOGLrenderspu_SOURCES.freebsd = render/renderspu_glx.c
|
---|
275 | VBoxOGLrenderspu_OBJCFLAGS.darwin = -Wno-shadow
|
---|
276 | VBoxOGLrenderspu_SOURCES.darwin = \
|
---|
277 | OpenGLTest/OpenGLTestDarwin.cpp \
|
---|
278 | render/renderspu_cocoa.c \
|
---|
279 | render/renderspu_cocoa_helper.m
|
---|
280 | ifdef VBOX_WITH_CRHGSMI
|
---|
281 | VBoxOGLrenderspu_DEFS += VBOX_WITH_CRHGSMI
|
---|
282 | endif
|
---|
283 | ifdef VBOX_WITH_VDMA
|
---|
284 | VBoxOGLrenderspu_DEFS += VBOX_WITH_VDMA
|
---|
285 | endif
|
---|
286 | VBoxOGLrenderspu_LDFLAGS.darwin += -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxOGLrenderspu.dylib -framework IOKit
|
---|
287 | VBoxOGLrenderspu_LIBS = \
|
---|
288 | $(PATH_STAGE_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \
|
---|
289 | $(VBOX_LIB_OGL_HOSTCRUTIL) \
|
---|
290 | $(LIB_RUNTIME)
|
---|
291 | if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # the X11 gang
|
---|
292 | VBoxOGLrenderspu_LIBS += \
|
---|
293 | Xmu \
|
---|
294 | X11 \
|
---|
295 | Xext
|
---|
296 | VBoxOGLrenderspu_LIBPATH = \
|
---|
297 | $(VBOX_LIBPATH_X11)
|
---|
298 | endif
|
---|
299 |
|
---|
300 | LIBRARIES += VBoxOGLTest
|
---|
301 | VBoxOGLTest_TEMPLATE = VBOXR3
|
---|
302 | ifneq ($(KBUILD_TARGET),darwin)
|
---|
303 | VBoxOGLTest_SOURCES = OpenGLTest/OpenGLTest.cpp
|
---|
304 | VBoxOGLTest_SOURCES.win = OpenGLTest/OpenGLTest.rc
|
---|
305 | endif
|
---|
306 | VBoxOGLTest_SOURCES.darwin = OpenGLTest/OpenGLTestDarwin.cpp
|
---|
307 |
|
---|
308 | #
|
---|
309 | # VBoxTestOGL - OpenGL support test app.
|
---|
310 | # Note! Doesn't link with VBOX_WITH_DEBUG_VCC_CRT defined because it uses Qt.
|
---|
311 | #
|
---|
312 | if ( defined(VBOX_WITH_QTGUI) \
|
---|
313 | && (defined(VBOX_WITH_CROGL) || defined(VBOX_WITH_VIDEOHWACCEL)) \
|
---|
314 | && !defined(VBOX_WITH_DEBUG_VCC_CRT))
|
---|
315 | ifneq ($(KBUILD_TARGET),darwin)
|
---|
316 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
317 | USES += qt4
|
---|
318 | endif
|
---|
319 | PROGRAMS += VBoxTestOGL
|
---|
320 | VBoxTestOGL_TEMPLATE = $(if $(VBOX_WITH_VIDEOHWACCEL),$(if $(VBOX_WITH_HARDENING),VBOXQT4GUI,VBOXQT4GUIEXE),VBOXMAINEXE)
|
---|
321 | VBoxTestOGL_SOURCES = OpenGLTest/OpenGLTestApp.cpp
|
---|
322 | VBoxTestOGL_LIBS = \
|
---|
323 | $(if $(VBOX_WITH_CROGL), \
|
---|
324 | $(PATH_STAGE_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \
|
---|
325 | $(VBOX_LIB_OGL_HOSTCRUTIL),) \
|
---|
326 | $(if $(VBOX_WITH_VIDEOHWACCEL), $(PATH_STAGE_LIB)/VBoxOGL2D$(VBOX_SUFF_LIB),) \
|
---|
327 | $(LIB_RUNTIME)
|
---|
328 | VBoxTestOGL_DEFS += \
|
---|
329 | VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\" \
|
---|
330 | $(if $(VBOX_WITH_CROGL), VBOX_WITH_CROGL,) \
|
---|
331 | $(if $(VBOX_WITH_VIDEOHWACCEL), VBOX_WITH_VIDEOHWACCEL,) \
|
---|
332 | $(if $(VBOX_BLEEDING_EDGE),VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\",)
|
---|
333 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
334 | VBoxTestOGL_QT_MODULES += Core Gui OpenGL
|
---|
335 | VBoxTestOGL_LDFLAGS.darwin += -framework OpenGL
|
---|
336 | VBoxTestOGL_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
|
---|
337 | if1of ($(KBUILD_TARGET), solaris linux freebsd)
|
---|
338 | # must come after VBoxOGL2D, therefore don't set the arch-specific LIBS variable here!
|
---|
339 | VBoxTestOGL_LIBS += GL
|
---|
340 | endif
|
---|
341 | endif
|
---|
342 | VBoxTestOGL_LDFLAGS.win = /SUBSYSTEM:windows
|
---|
343 | endif
|
---|
344 | endif
|
---|
345 |
|
---|
346 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
347 |
|
---|