cmake/sdlchecks.cmake
changeset 9127 a8c38ed1a674
parent 9077 28e6de55eb07
child 9164 494876610c49
     1.1 --- a/cmake/sdlchecks.cmake	Mon Sep 08 01:36:22 2014 -0400
     1.2 +++ b/cmake/sdlchecks.cmake	Wed Sep 10 08:54:01 2014 -0700
     1.3 @@ -601,6 +601,25 @@
     1.4  endmacro(CheckDirectFB)
     1.5  
     1.6  # Requires:
     1.7 +# - n/a
     1.8 +macro(CheckMX6)
     1.9 +  if(VIDEO_MX6)
    1.10 +    check_c_source_compiles("
    1.11 +        #define EGL_API_FB
    1.12 +        #include <EGL/eglvivante.h>
    1.13 +        int main(int argc, char** argv) {}" HAVE_VIDEO_OPENGL_EGL_VIVANTE)
    1.14 +    if(HAVE_VIDEO_OPENGL_EGL_VIVANTE)
    1.15 +      set(HAVE_VIDEO_MX6 TRUE)
    1.16 +      set(HAVE_SDL_VIDEO TRUE)
    1.17 +
    1.18 +      file(GLOB MX6_SOURCES ${SDL2_SOURCE_DIR}/src/video/mx6/*.c)
    1.19 +      set(SOURCE_FILES ${SOURCE_FILES} ${MX6_SOURCES})
    1.20 +      set(SDL_VIDEO_DRIVER_MX6 1)
    1.21 +    endif(HAVE_VIDEO_OPENGL_EGL_VIVANTE)
    1.22 +  endif(VIDEO_MX6)
    1.23 +endmacro(CheckMX6)
    1.24 +
    1.25 +# Requires:
    1.26  # - nada
    1.27  macro(CheckOpenGLX11)
    1.28    if(VIDEO_OPENGL)
    1.29 @@ -624,6 +643,7 @@
    1.30  macro(CheckOpenGLESX11)
    1.31    if(VIDEO_OPENGLES)
    1.32      check_c_source_compiles("
    1.33 +        #define EGL_API_FB
    1.34          #include <EGL/egl.h>
    1.35          int main (int argc, char** argv) {}" HAVE_VIDEO_OPENGL_EGL)
    1.36      if(HAVE_VIDEO_OPENGL_EGL)