VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedOpenGL/Makefile.kmk@ 67067

Last change on this file since 67067 was 67067, checked in by vboxsync, 7 years ago

drop VBOX_WITH_QTGUI_V5 and friends

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 15.7 KB
Line 
1# $Id: Makefile.kmk 67067 2017-05-24 15:43:59Z vboxsync $
2## @file
3# Sub-Makefile for the Shared OpenGL Host Service.
4#
5
6#
7# Copyright (C) 2008-2016 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#
25ifdef VBOX_WITH_MAIN
26DLLS += VBoxSharedCrOpenGL VBoxOGLrenderspu
27LIBRARIES += VBoxOGLcrserverlib VBoxOGLcrunpacker
28BLDDIRS += \
29 $(VBOX_PATH_CROGL_GENFILES)/
30endif
31
32ifdef VBOX_WITH_CR_DISPLAY_LISTS
33 LIBRARIES += VBoxOGLcrdlm
34 DLLS += VBoxOGLexpandospu
35endif # VBOX_WITH_CR_DISPLAY_LISTS
36
37ifeq ($(KBUILD_TARGET),darwin)
38 #
39 # We have to symlink the system headers of OpenGl cause they have some
40 # different directory hierarchy on Mac OS X (no /GL sub directory).
41 #
42 # See Config.kmk for the global variables.
43 #
44 INSTALLS += DarwinOpenGLHdrs
45 DarwinOpenGLHdrs_INST = $(VBOX_DARWIN_OPENGL_INST)
46 DarwinOpenGLHdrs_SYMLINKS = \
47 $(foreach hdr, $(VBOX_DARWIN_OPENGL_HEADERS),\
48 $(hdr)=>$(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/$(hdr))
49endif # darwin
50
51#
52# VBoxSharedCrOpenGL
53#
54VBoxSharedCrOpenGL_TEMPLATE = VBOXCROGLR3HOSTDLL
55ifdef VBOX_WITH_XPCOM
56 VBoxSharedCrOpenGL_DEFS = VBOX_WITH_XPCOM
57 VBoxSharedCrOpenGL_CXXFLAGS = -Wno-non-virtual-dtor -fshort-wchar $(VBOX_GCC_std)
58endif
59VBoxSharedCrOpenGL_INTERMEDIATES = \
60 $(TEMPLATE_VBOXMAINEXE_INTERMEDIATES)
61VBoxSharedCrOpenGL_INCS = $(VBOX_GRAPHICS_INCS)
62VBoxSharedCrOpenGL_INCS.win = \
63 $(VBOX_PATH_SDK)/bindings/mscom/include
64ifdef VBOX_WITH_XPCOM
65VBoxSharedCrOpenGL_INCS += \
66 $(VBOX_XPCOM_INCS)
67endif
68VBoxSharedCrOpenGL_SOURCES = \
69 crserver/crservice.cpp
70VBoxSharedCrOpenGL_SOURCES.win = \
71 crserver/VBoxSharedCrOpenGL.rc
72VBoxSharedCrOpenGL_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSharedCrOpenGL.dylib
73VBoxSharedCrOpenGL_LIBS = \
74 $(PATH_STAGE_LIB)/VBoxOGLcrserverlib$(VBOX_SUFF_LIB) \
75 $(PATH_STAGE_LIB)/VBoxOGLhostcrstate$(VBOX_SUFF_LIB) \
76 $(PATH_STAGE_LIB)/VBoxOGLcrunpacker$(VBOX_SUFF_LIB) \
77 $(PATH_STAGE_LIB)/VBoxOGLhostcrpacker$(VBOX_SUFF_LIB) \
78 $(PATH_STAGE_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \
79 $(VBOX_LIB_OGL_HOSTCRUTIL) \
80 $(PATH_STAGE_LIB)/VBoxCOM$(VBOX_SUFF_LIB) \
81 $(LIB_RUNTIME) \
82 $(LIB_VMM)
83VBoxSharedCrOpenGL_LIBS.darwin = \
84 $(LIB_REM)
85ifeq ($(KBUILD_TARGET),win)
86 VBoxSharedCrOpenGL_LIBS += \
87 $(PATH_OBJ)/VBoxOGLrenderspu/VBoxOGLrenderspu$(VBOX_SUFF_LIB)
88else
89 VBoxSharedCrOpenGL_LIBS += \
90 $(PATH_STAGE_BIN)/VBoxOGLrenderspu$(VBOX_SUFF_DLL)
91endif
92ifdef VBOX_WITH_XPCOM
93 VBoxSharedCrOpenGL_LIBS += \
94 $(LIB_XPCOM)
95endif
96ifdef VBOX_WITH_CRHGSMI
97VBoxSharedCrOpenGL_DEFS += VBOX_WITH_CRHGSMI
98endif
99ifdef VBOX_WITH_CR_DISPLAY_LISTS
100VBoxSharedCrOpenGL_LIBS += $(PATH_STAGE_LIB)/VBoxOGLcrdlm$(VBOX_SUFF_LIB)
101endif
102
103#
104# VBoxOGLcrserverlib
105#
106VBoxOGLcrserverlib_TEMPLATE = VBOXCROGLR3HOSTLIB
107VBoxOGLcrserverlib_INCS = \
108 . \
109 crserverlib \
110 $(VBOX_GRAPHICS_INCS)
111VBoxOGLcrserverlib_INTERMEDIATES = \
112 $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h \
113 $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.h \
114 $(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h \
115 $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \
116 $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h
117
118ifdef VBOX_WITH_CR_DISPLAY_LISTS
119VBoxOGLcrserverlib_INTERMEDIATES += $(VBOX_PATH_CROGL_GENFILES)/cr_dlm.h
120endif
121
122VBoxOGLcrserverlib_SOURCES := \
123 crserverlib/server_main.c \
124 crserverlib/server_boundsinfo.c \
125 crserverlib/server_bufferobject.c \
126 crserverlib/server_clear.c \
127 crserverlib/server_clip.c \
128 crserverlib/server_config.c \
129 crserverlib/server_context.c \
130 crserverlib/server_gentextures.c \
131 crserverlib/server_getmap.c \
132 crserverlib/server_getstring.c \
133 crserverlib/server_getpointer.c \
134 crserverlib/server_getpixelmap.c \
135 crserverlib/server_getteximage.c \
136 crserverlib/server_lists.c \
137 crserverlib/server_misc.c \
138 crserverlib/server_occlude.c \
139 crserverlib/server_papi.c \
140 crserverlib/server_projmatrix.c \
141 crserverlib/server_readpixels.c \
142 crserverlib/server_stream.c \
143 crserverlib/server_viewport.c \
144 crserverlib/server_window.c \
145 crserverlib/server_winpos.c \
146 crserverlib/server_writeback.c \
147 crserverlib/server_getshaders.c \
148 crserverlib/server_framebuffer.c \
149 crserverlib/server_glsl.c \
150 crserverlib/server_muralfbo.cpp \
151 crserverlib/server_texture.c \
152 crserverlib/presenter/server_presenter.cpp \
153 crserverlib/presenter/display_base.cpp \
154 crserverlib/presenter/display_composite.cpp \
155 crserverlib/presenter/window.cpp \
156 crserverlib/presenter/display_window.cpp \
157 crserverlib/presenter/display_window_rootvr.cpp \
158 crserverlib/presenter/display_vrdp.cpp \
159 crserverlib/server_rpw.cpp \
160 $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.c \
161 $(VBOX_PATH_CROGL_GENFILES)/server_retval.c \
162 $(VBOX_PATH_CROGL_GENFILES)/server_get.c \
163 $(VBOX_PATH_CROGL_GENFILES)/server_simpleget.c
164VBoxOGLcrserverlib_CLEAN = \
165 $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.c \
166 $(VBOX_PATH_CROGL_GENFILES)/server_retval.c \
167 $(VBOX_PATH_CROGL_GENFILES)/server_get.c \
168 $(VBOX_PATH_CROGL_GENFILES)/server_simpleget.c \
169 $(VBOX_PATH_CROGL_GENFILES)/server_dispatch.h
170ifdef VBOX_WITH_CR_DISPLAY_LISTS
171VBoxOGLcrserverlib_DEFS += VBOX_WITH_CR_DISPLAY_LISTS
172endif
173ifdef VBOXCR_LOGFPS
174VBoxOGLcrserverlib_DEFS += VBOXCR_LOGFPS
175endif
176ifdef VBOX_WITH_CRHGSMI
177VBoxOGLcrserverlib_DEFS += ifdef VBOX_WITH_CRHGSMI
178endif
179ifdef VBOX_WITH_CRDUMPER
180VBoxOGLcrserverlib_DEFS += VBOX_WITH_CRDUMPER
181endif
182ifdef VBOX_WITH_CRSERVER_DUMPER
183VBoxOGLcrserverlib_DEFS += VBOX_WITH_CRSERVER_DUMPER
184endif
185
186
187#
188# Generate files for VBoxOGLcrserverlib
189#
190$(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 $$@)
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$(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 $$@)
195 $(call MSG_GENERATE,python,$@,$<)
196 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
197
198$(VBOX_PATH_CROGL_GENFILES)/server_retval.c: $(addprefix $(PATH_SUB_CURRENT)/crserverlib/, server_retval.py server_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
199 $(call MSG_GENERATE,python,$@,$<)
200 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
201
202$(VBOX_PATH_CROGL_GENFILES)/server_get.c: $(addprefix $(PATH_SUB_CURRENT)/crserverlib/, server_get.py server_special) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
203 $(call MSG_GENERATE,python,$@,$<)
204 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
205
206$(VBOX_PATH_CROGL_GENFILES)/server_simpleget.c: $(addprefix $(PATH_SUB_CURRENT)/crserverlib/, server_simpleget.py get_sizes.py) $(VBOX_CROGL_API_FILES) | $$(dir $$@)
207 $(call MSG_GENERATE,python,$@,$<)
208 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
209
210
211#
212# VBoxOGLcrunpacker
213#
214VBoxOGLcrunpacker_TEMPLATE = VBOXCROGLR3HOSTLIB
215VBoxOGLcrunpacker_INCS = \
216 unpacker \
217 $(VBOX_GRAPHICS_INCS)
218VBoxOGLcrunpacker_INTERMEDIATES = \
219 $(VBOX_PATH_CROGL_GENFILES)/spu_dispatch_table.h \
220 $(VBOX_PATH_CROGL_GENFILES)/cr_opcodes.h \
221 $(VBOX_PATH_CROGL_GENFILES)/unpack_extend.h \
222 $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \
223 $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h
224VBoxOGLcrunpacker_SOURCES = \
225 unpacker/unpack_arrays.c \
226 unpacker/unpack_bounds.c \
227 unpacker/unpack_bufferobject.c \
228 unpacker/unpack_calllists.c \
229 unpacker/unpack_clipplane.c \
230 unpacker/unpack_context.c \
231 unpacker/unpack_drawpixels.c \
232 unpacker/unpack_fence.c \
233 unpacker/unpack_fog.c \
234 unpacker/unpack_lights.c \
235 unpacker/unpack_map.c \
236 unpacker/unpack_materials.c \
237 unpacker/unpack_matrices.c \
238 unpacker/unpack_misc.c \
239 unpacker/unpack_pixelmap.c \
240 unpacker/unpack_point.c \
241 unpacker/unpack_program.c \
242 unpacker/unpack_readpixels.c \
243 unpacker/unpack_regcombiner.c \
244 unpacker/unpack_stipple.c \
245 unpacker/unpack_texture.c \
246 unpacker/unpack_writeback.c \
247 unpacker/unpack_visibleregion.c \
248 unpacker/unpack_shaders.c \
249 unpacker/unpack_framebuffer.c \
250 $(VBOX_PATH_CROGL_GENFILES)/unpack.c
251VBoxOGLcrunpacker_CLEAN = \
252 $(VBOX_PATH_CROGL_GENFILES)/unpack.c \
253 $(VBOX_PATH_CROGL_GENFILES)/unpack_extend.h
254
255#
256# Generate files for VBoxOGLcrunpacker.
257#
258$(VBOX_PATH_CROGL_GENFILES)/unpack.c: \
259 $(addprefix $(PATH_SUB_CURRENT)/unpacker/, unpack.py unpacker_special) \
260 $(VBOX_PATH_CROGL_GENFILES)/unpack_extend.h \
261 $(VBOX_CROGL_API_FILES) \
262 | $$(dir $$@)
263 $(call MSG_GENERATE,python,$@,$<)
264 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
265
266$(VBOX_PATH_CROGL_GENFILES)/unpack_extend.h: \
267 $(addprefix $(PATH_SUB_CURRENT)/unpacker/, unpack_extend.py unpacker_special) \
268 $(VBOX_CROGL_API_FILES) \
269 | $$(dir $$@)
270 $(call MSG_GENERATE,python,$@,$<)
271 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D)
272
273
274ifdef VBOX_WITH_CR_DISPLAY_LISTS
275#
276# VBoxOGLcrdlm
277#
278
279VBoxOGLcrdlm_TEMPLATE = VBOXCROGLR3HOSTLIB
280VBoxOGLcrdlm_INCS = \
281 dlm
282VBoxOGLcrdlm_INTERMEDIATES = \
283 $(VBOX_PATH_CROGL_GENFILES)/cr_dlm.h \
284 $(VBOX_PATH_CROGL_GENFILES)/dlm_generated.h
285
286VBoxOGLcrdlm_SOURCES = \
287 dlm/dlm.c \
288 dlm/dlm_arrays.c \
289 dlm/dlm_state.c \
290 dlm/dlm_checklist.c \
291 dlm/dlm_error.c \
292 dlm/dlm_lists.c \
293 dlm/dlm_pointers.c \
294 $(VBOX_PATH_CROGL_GENFILES)/dlm_generated.c
295
296VBoxOGLcrdlm_CLEAN = \
297 $(VBOX_PATH_CROGL_GENFILES)/dlm_generated.c \
298 $(VBOX_PATH_CROGL_GENFILES)/cr_dlm.h \
299 $(VBOX_PATH_CROGL_GENFILES)/dlm_generated.h
300#
301# Generate files for VBoxOGLcrdlm.
302#
303$(VBOX_PATH_CROGL_GENFILES)/cr_dlm.h: \
304 $(addprefix $(PATH_SUB_CURRENT)/dlm/, dlm_header.py) \
305 $(VBOX_CROGL_API_FILES) \
306 | $$(dir $$@)
307 $(call MSG_GENERATE,python,$@,$<)
308 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< header $(<D) $(VBOX_PATH_CROGL_GLAPI) > $@
309
310$(VBOX_PATH_CROGL_GENFILES)/dlm_generated.h: \
311 $(addprefix $(PATH_SUB_CURRENT)/dlm/, dlm_generated.py dlm_special) \
312 $(VBOX_PATH_CROGL_GENFILES)/cr_dlm.h \
313 $(VBOX_CROGL_API_FILES) \
314 | $$(dir $$@)
315 $(call MSG_GENERATE,python,$@,$<)
316 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< headers $(<D) $(VBOX_PATH_CROGL_GLAPI) > $@
317
318$(VBOX_PATH_CROGL_GENFILES)/dlm_generated.c: \
319 $(addprefix $(PATH_SUB_CURRENT)/dlm/, dlm_generated.py dlm_special) \
320 $(VBOX_PATH_CROGL_GENFILES)/dlm_generated.h \
321 $(VBOX_CROGL_API_FILES) \
322 | $$(dir $$@)
323 $(call MSG_GENERATE,python,$@,$<)
324 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< source $(<D) $(VBOX_PATH_CROGL_GLAPI) > $@
325
326
327#
328# VBoxOGLexpandospu
329#
330VBoxOGLexpandospu_TEMPLATE = VBOXCROGLR3HOSTDLL
331VBoxOGLexpandospu_INCS = \
332 expando
333VBoxOGLexpandospu_SOURCES = \
334 expando/expandospu.c \
335 expando/expandospu_config.c \
336 expando/expandospu_init.c \
337 $(VBOX_PATH_CROGL_GENFILES)/expando.c
338VBoxOGLexpandospu_CLEAN = \
339 $(VBOX_PATH_CROGL_GENFILES)/expando.c
340VBoxOGLexpandospu_CLEAN = \
341 $(VBOX_PATH_CROGL_GENFILES)/expando.c
342VBoxOGLexpandospu_LDFLAGS.darwin += -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxOGLexpandospu.dylib
343VBoxOGLexpandospu_LIBS = \
344 $(PATH_STAGE_LIB)/VBoxOGLcrdlm$(VBOX_SUFF_LIB) \
345 $(PATH_STAGE_LIB)/VBoxOGLhostcrstate$(VBOX_SUFF_LIB) \
346 $(PATH_STAGE_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \
347 $(VBOX_LIB_OGL_HOSTCRUTIL) \
348 $(LIB_RUNTIME) \
349 $(LIB_VMM)
350#
351# Generate files for VBoxOGLexpandospu.
352#
353$(VBOX_PATH_CROGL_GENFILES)/expando.c: \
354 $(addprefix $(PATH_SUB_CURRENT)/expando/, expando.py expando_special) \
355 $(VBOX_CROGL_API_FILES) \
356 | $$(dir $$@)
357 $(call MSG_GENERATE,python,$@,$<)
358 $(QUIET)$(call VBOX_CROGL_PYTHON_ENV,$(VBOX_PATH_CROGL_PYTHON_INCLUDE),$@) $(VBOX_BLD_PYTHON) $< $(VBOX_PATH_CROGL_GLAPI) $(<D) > $@
359endif
360
361
362#
363# VBoxOGLrenderspu
364#
365VBoxOGLrenderspu_TEMPLATE = VBOXCROGLR3HOSTDLL
366VBoxOGLrenderspu_INTERMEDIATES = \
367 $(VBOX_PATH_CROGL_GENFILES)/state/cr_currentpointers.h \
368 $(VBOX_PATH_CROGL_GENFILES)/state/cr_statefuncs.h
369VBoxOGLrenderspu_INCS = $(VBOX_GRAPHICS_INCS)
370VBoxOGLrenderspu_SOURCES = \
371 render/renderspu.c \
372 render/renderspu_config.c \
373 render/renderspu_init.c
374VBoxOGLrenderspu_SOURCES.win = \
375 render/renderspu_wgl.c \
376 render/render.def \
377 render/VBoxOGLrenderspu.rc
378VBoxOGLrenderspu_SOURCES.linux = render/renderspu_glx.c
379VBoxOGLrenderspu_SOURCES.solaris = render/renderspu_glx.c
380VBoxOGLrenderspu_SOURCES.freebsd = render/renderspu_glx.c
381VBoxOGLrenderspu_OBJCFLAGS.darwin = -Wno-shadow
382VBoxOGLrenderspu_SOURCES.darwin = \
383 OpenGLTest/OpenGLTestDarwin.cpp \
384 render/renderspu_cocoa.c \
385 render/renderspu_cocoa_helper.m
386ifdef VBOX_WITH_CRHGSMI
387VBoxOGLrenderspu_DEFS += VBOX_WITH_CRHGSMI
388endif
389ifdef VBOX_WITH_VDMA
390VBoxOGLrenderspu_DEFS += VBOX_WITH_VDMA
391endif
392VBoxOGLrenderspu_LDFLAGS.darwin += -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxOGLrenderspu.dylib -framework IOKit
393VBoxOGLrenderspu_LIBS = \
394 $(PATH_STAGE_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \
395 $(VBOX_LIB_OGL_HOSTCRUTIL) \
396 $(LIB_RUNTIME)
397if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # the X11 gang
398 VBoxOGLrenderspu_LIBS += \
399 Xmu \
400 X11 \
401 Xext
402 VBoxOGLrenderspu_LIBPATH = \
403 $(VBOX_LIBPATH_X11)
404endif
405
406LIBRARIES += VBoxOGLTest
407VBoxOGLTest_TEMPLATE = VBOXR3
408ifneq ($(KBUILD_TARGET),darwin)
409 VBoxOGLTest_SOURCES = OpenGLTest/OpenGLTest.cpp
410endif
411VBoxOGLTest_SOURCES.darwin = OpenGLTest/OpenGLTestDarwin.cpp
412
413#
414# VBoxTestOGL - OpenGL support test app.
415# Note! Doesn't link with VBOX_WITH_DEBUG_VCC_CRT defined because it uses Qt.
416#
417if ( defined(VBOX_WITH_QTGUI) \
418 && (defined(VBOX_WITH_CROGL) || defined(VBOX_WITH_VIDEOHWACCEL)) \
419 && !defined(VBOX_WITH_DEBUG_VCC_CRT))
420 ifneq ($(KBUILD_TARGET),darwin)
421 ifdef VBOX_WITH_VIDEOHWACCEL
422 USES += qt5
423 endif
424 PROGRAMS += VBoxTestOGL
425 VBoxTestOGL_TEMPLATE = $(if $(VBOX_WITH_VIDEOHWACCEL),$(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE),VBOXMAINEXE)
426 VBoxTestOGL_SOURCES = OpenGLTest/OpenGLTestApp.cpp
427 VBoxTestOGL_SOURCES.win = OpenGLTest/VBoxTestOGL.rc
428 VBoxTestOGL_LIBS = \
429 $(if $(VBOX_WITH_CROGL), \
430 $(PATH_STAGE_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \
431 $(VBOX_LIB_OGL_HOSTCRUTIL),) \
432 $(if $(VBOX_WITH_VIDEOHWACCEL), $(PATH_STAGE_LIB)/VBoxOGL2D$(VBOX_SUFF_LIB),) \
433 $(LIB_RUNTIME)
434 VBoxTestOGL_DEFS += \
435 VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\" \
436 $(if $(VBOX_WITH_CROGL), VBOX_WITH_CROGL,) \
437 $(if $(VBOX_WITH_VIDEOHWACCEL), VBOX_WITH_VIDEOHWACCEL,)
438 ifdef VBOX_WITH_VIDEOHWACCEL
439 VBoxTestOGL_QT_MODULES += Core Gui OpenGL Widgets
440 VBoxTestOGL_LIBS.linux += xcb
441 VBoxTestOGL_LIBS.solaris += xcb
442 VBoxTestOGL_LIBS.freebsd += xcb
443 VBoxTestOGL_LDFLAGS.darwin += -framework OpenGL
444 VBoxTestOGL_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
445 if1of ($(KBUILD_TARGET), solaris linux freebsd)
446 # must come after VBoxOGL2D, therefore don't set the arch-specific LIBS variable here!
447 VBoxTestOGL_LIBS += GL
448 endif
449 endif
450 VBoxTestOGL_LDFLAGS.win = /SUBSYSTEM:windows
451 endif
452endif
453
454include $(FILE_KBUILD_SUB_FOOTER)
455
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