VirtualBox

Changeset 40845 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Apr 10, 2012 1:07:39 PM (13 years ago)
Author:
vboxsync
Message:

3D check: direct invocation on the client side

Location:
trunk/src/VBox/HostServices/SharedOpenGL
Files:
1 added
1 edited
3 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/Makefile.kmk

    r39288 r40845  
    274274endif
    275275
     276LIBRARIES += VBoxOGLTest
     277VBoxOGLTest_TEMPLATE = VBOXR3STATIC
     278ifneq ($(KBUILD_TARGET),darwin)
     279  VBoxOGLTest_SOURCES = OpenGLTest/OpenGLTest.cpp
     280endif
     281VBoxOGLTest_SOURCES.darwin = OpenGLTest/OpenGLTestDarwin.cpp
     282
     283#
     284# VBoxTestOGL - OpenGL support test app.
     285# Note! Doesn't link with VBOX_WITH_DEBUG_VCC_CRT defined because it uses Qt.
     286#
     287if (   defined(VBOX_WITH_QTGUI) \
     288    && (defined(VBOX_WITH_CROGL) || defined(VBOX_WITH_VIDEOHWACCEL)) \
     289    && !defined(VBOX_WITH_DEBUG_VCC_CRT))
     290 ifneq ($(KBUILD_TARGET),darwin)
     291  ifdef VBOX_WITH_VIDEOHWACCEL
     292   USES += qt4
     293  endif
     294  PROGRAMS += VBoxTestOGL
     295  VBoxTestOGL_TEMPLATE = $(if $(VBOX_WITH_VIDEOHWACCEL),$(if $(VBOX_WITH_HARDENING),VBOXQT4GUI,VBOXQT4GUIEXE),VBOXMAINEXE)
     296  VBoxTestOGL_SOURCES = OpenGLTest/OpenGLTestApp.cpp
     297  VBoxTestOGL_LIBS = \
     298    $(if $(VBOX_WITH_CROGL), \
     299      $(PATH_STAGE_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \
     300      $(VBOX_LIB_OGL_HOSTCRUTIL),) \
     301    $(if $(VBOX_WITH_VIDEOHWACCEL), $(PATH_STAGE_LIB)/VBoxOGL2D$(VBOX_SUFF_LIB),) \
     302    $(LIB_RUNTIME)
     303  VBoxTestOGL_DEFS += \
     304    $(if $(VBOX_WITH_CROGL), VBOX_WITH_CROGL,) \
     305    $(if $(VBOX_WITH_VIDEOHWACCEL), VBOX_WITH_VIDEOHWACCEL,) \
     306    VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\" \
     307    $(if $(VBOX_BLEEDING_EDGE),VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\",)
     308  ifdef VBOX_WITH_VIDEOHWACCEL
     309   VBoxTestOGL_QT_MODULES += Core Gui OpenGL
     310   VBoxTestOGL_LDFLAGS.darwin += -framework OpenGL
     311   VBoxTestOGL_LIBS.win += $(PATH_SDK_WINPSDK_LIB)/Opengl32.lib
     312   if1of ($(KBUILD_TARGET), solaris linux freebsd)
     313    # must come after VBoxOGL2D, therefore don't set the arch-specific LIBS variable here!
     314    VBoxTestOGL_LIBS += GL
     315   endif
     316  endif
     317  VBoxTestOGL_LDFLAGS.win = /SUBSYSTEM:windows
     318 endif
     319endif
     320
    276321include $(KBUILD_PATH)/subfooter.kmk
    277322
  • trunk/src/VBox/HostServices/SharedOpenGL/OpenGLTest/OpenGLTest.cpp

    r40649 r40845  
    2626#include <iprt/thread.h>
    2727
    28 bool is3DAccelerationSupported()
     28#include <VBox/VBoxOGLTest.h>
     29
     30bool RTCALL VBoxOglIs3DAccelerationSupported()
    2931{
    3032    static char pszVBoxPath[RTPATH_MAX];
  • trunk/src/VBox/HostServices/SharedOpenGL/OpenGLTest/OpenGLTestDarwin.cpp

    r40649 r40845  
    2626#endif /* VBOX_WITH_COCOA_QT */
    2727
    28 bool is3DAccelerationSupported()
     28#include <VBox/VBoxOGLTest.h>
     29
     30bool RTCALL VBoxOglIs3DAccelerationSupported()
    2931{
    3032    CGDirectDisplayID   display = CGMainDisplayID ();
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette