- Timestamp:
- Aug 12, 2020 2:21:54 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139864
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-helper-apps/OpenGLTest/Makefile.kmk
r85338 r85717 35 35 36 36 # 37 # App for testing GL support38 #39 if defined(VBOX_WITH_VIDEOHWACCEL)40 if1of ($(KBUILD_TARGET), win linux freebsd)41 LIBRARIES += VBoxOGL2D42 VBoxOGL2D_TEMPLATE = $(if $(VBOX_WITH_VIDEOHWACCEL),$(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE),VBOXMAINEXE)43 VBoxOGL2D_DEFS = QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL44 VBoxOGL2D_QT_MODULES += OpenGL45 VBoxOGL2D_SOURCES = VBoxGLSupportInfo.cpp46 endif47 endif48 49 #50 37 # VBoxTestOGL - OpenGL support test app. 51 38 # Note! Doesn't link with VBOX_WITH_DEBUG_VCC_CRT defined because it uses Qt. … … 55 42 && !defined(VBOX_WITH_DEBUG_VCC_CRT)) 56 43 ifneq ($(KBUILD_TARGET),darwin) 44 57 45 ifdef VBOX_WITH_VIDEOHWACCEL 58 46 USES += qt5 … … 63 51 VBoxTestOGL_DEFS.linux = Linux=1 _GNU_SOURCE 64 52 VBoxTestOGL_DEFS.solaris = SunOS=1 _GNU_SOURCE #GLEXT_64_TYPES_DEFINED 65 VBoxTestOGL_DEFS.darwin = DARWIN=1 GL_GLEXT_LEGACY _GNU_SOURCE66 53 VBoxTestOGL_DEFS.freebsd = FreeBSD=1 _GNU_SOURCE 67 54 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING … … 70 57 VBoxTestOGL_DEFS = VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\" 71 58 endif 59 VBoxTestOGL_SOURCES = OpenGLTestApp.cpp 60 VBoxTestOGL_SOURCES.win = VBoxTestOGL.rc 61 VBoxTestOGL_LIBS = $(LIB_RUNTIME) 72 62 ifdef VBOX_WITH_VIDEOHWACCEL 73 63 VBoxTestOGL_DEFS += VBOX_WITH_VIDEOHWACCEL 74 endif 75 VBoxTestOGL_SOURCES = OpenGLTestApp.cpp 76 VBoxTestOGL_SOURCES.win = VBoxTestOGL.rc 77 VBoxTestOGL_LIBS = \ 78 $(if $(VBOX_WITH_VIDEOHWACCEL), $(PATH_STAGE_LIB)/VBoxOGL2D$(VBOX_SUFF_LIB),) \ 79 $(LIB_RUNTIME) 80 ifdef VBOX_WITH_VIDEOHWACCEL 81 VBoxTestOGL_QT_MODULES += Core Gui OpenGL Widgets 82 VBoxTestOGL_LIBS.linux += xcb 83 VBoxTestOGL_LIBS.solaris += xcb 84 VBoxTestOGL_LIBS.freebsd += xcb 85 VBoxTestOGL_LDFLAGS.darwin += -framework OpenGL -framework IOKit 64 VBoxTestOGL_LIBS <= $(PATH_STAGE_LIB)/VBoxOGL2D$(VBOX_SUFF_LIB) 65 VBoxTestOGL_QT_MODULES += Core Gui OpenGL Widgets 66 VBoxTestOGL_LIBS.linux += xcb 67 VBoxTestOGL_LIBS.solaris += xcb 68 VBoxTestOGL_LIBS.freebsd += xcb 86 69 VBoxTestOGL_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib 87 70 if1of ($(KBUILD_TARGET), solaris linux freebsd) … … 89 72 VBoxTestOGL_LIBS += GL pthread dl 90 73 endif 74 ## @todo not sure why this is a separate library, but whatever. 75 LIBRARIES += VBoxOGL2D 76 VBoxOGL2D_TEMPLATE = $(if $(VBOX_WITH_VIDEOHWACCEL),$(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE),VBOXMAINEXE) 77 VBoxOGL2D_DEFS = QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H VBOX_WITH_VIDEOHWACCEL VBOX_GUI_USE_QGL 78 VBoxOGL2D_QT_MODULES += OpenGL 79 VBoxOGL2D_SOURCES = VBoxGLSupportInfo.cpp 91 80 endif 92 81 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) # the X11 gang … … 96 85 VBoxTestOGL_LIBPATH = \ 97 86 $(VBOX_LIBPATH_X11) 98 endif 87 endif 88 99 89 # Don't let ld strip out explicitly linked libraries even when they are not needed. 100 90 # This was causing some dynamic library loading problems in case of indirect dependencies … … 102 92 VBoxTestOGL_LDFLAGS.linux = -Wl,--no-as-needed 103 93 VBoxTestOGL_LDFLAGS.win = /SUBSYSTEM:windows 104 endif 94 95 endif # KBUILD_TARGET != darwin 105 96 endif 106 97
Note:
See TracChangeset
for help on using the changeset viewer.