CMakeLists.txt
changeset 9077 28e6de55eb07
parent 9075 257a6793aaf5
child 9080 2e4e71ec140f
equal deleted inserted replaced
9076:5e713281410c 9077:28e6de55eb07
   235 set_option(CLOCK_GETTIME       "Use clock_gettime() instead of gettimeofday()" OFF)
   235 set_option(CLOCK_GETTIME       "Use clock_gettime() instead of gettimeofday()" OFF)
   236 set_option(INPUT_TSLIB         "Use the Touchscreen library for input" ${UNIX_SYS})
   236 set_option(INPUT_TSLIB         "Use the Touchscreen library for input" ${UNIX_SYS})
   237 set_option(VIDEO_X11           "Use X11 video driver" ${UNIX_SYS})
   237 set_option(VIDEO_X11           "Use X11 video driver" ${UNIX_SYS})
   238 set_option(VIDEO_WAYLAND       "Use Wayland video driver" ${UNIX_SYS})
   238 set_option(VIDEO_WAYLAND       "Use Wayland video driver" ${UNIX_SYS})
   239 set_option(VIDEO_MIR           "Use Mir video driver" ${UNIX_SYS})
   239 set_option(VIDEO_MIR           "Use Mir video driver" ${UNIX_SYS})
       
   240 set_option(VIDEO_RPI           "Use Raspberry Pi video driver" ${UNIX_SYS})
   240 dep_option(X11_SHARED          "Dynamically load X11 support" ON "VIDEO_X11" OFF)
   241 dep_option(X11_SHARED          "Dynamically load X11 support" ON "VIDEO_X11" OFF)
   241 set(SDL_X11_OPTIONS Xcursor Xinerama XInput Xrandr Xscrnsaver XShape Xvm)
   242 set(SDL_X11_OPTIONS Xcursor Xinerama XInput Xrandr Xscrnsaver XShape Xvm)
   242 foreach(_SUB ${SDL_X11_OPTIONS})
   243 foreach(_SUB ${SDL_X11_OPTIONS})
   243   string(TOUPPER "VIDEO_X11_${_SUB}" _OPT)
   244   string(TOUPPER "VIDEO_X11_${_SUB}" _OPT)
   244   dep_option(${_OPT}           "Enable ${_SUB} support" ON "VIDEO_X11" OFF)
   245   dep_option(${_OPT}           "Enable ${_SUB} support" ON "VIDEO_X11" OFF)
   656     CheckSNDIO()
   657     CheckSNDIO()
   657     CheckFusionSound()
   658     CheckFusionSound()
   658   endif()
   659   endif()
   659 
   660 
   660   if(SDL_VIDEO)
   661   if(SDL_VIDEO)
       
   662     # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
       
   663     CheckRPI()
   661     CheckX11()
   664     CheckX11()
   662     CheckMir()
   665     CheckMir()
   663     CheckDirectFB()
   666     CheckDirectFB()
   664     CheckOpenGLX11()
   667     CheckOpenGLX11()
   665     CheckOpenGLESX11()
   668     CheckOpenGLESX11()