CMakeLists.txt
changeset 8062 4fc5f66d63cc
parent 8056 abd9434c5d3e
child 8089 de8b6fdf6544
equal deleted inserted replaced
8061:a5f8137ccf01 8062:4fc5f66d63cc
   216 set_option(SNDIO               "Support the sndio audio API" ${UNIX_SYS})
   216 set_option(SNDIO               "Support the sndio audio API" ${UNIX_SYS})
   217 set_option(RPATH               "Use an rpath when linking SDL" ${UNIX_SYS})
   217 set_option(RPATH               "Use an rpath when linking SDL" ${UNIX_SYS})
   218 set_option(CLOCK_GETTIME       "Use clock_gettime() instead of gettimeofday()" OFF)
   218 set_option(CLOCK_GETTIME       "Use clock_gettime() instead of gettimeofday()" OFF)
   219 set_option(INPUT_TSLIB         "Use the Touchscreen library for input" ${UNIX_SYS})
   219 set_option(INPUT_TSLIB         "Use the Touchscreen library for input" ${UNIX_SYS})
   220 set_option(VIDEO_X11           "Use X11 video driver" ${UNIX_SYS})
   220 set_option(VIDEO_X11           "Use X11 video driver" ${UNIX_SYS})
       
   221 set_option(VIDEO_WAYLAND       "Use Wayland video driver" ${UNIX_SYS})
   221 dep_option(X11_SHARED          "Dynamically load X11 support" ON "VIDEO_X11" OFF)
   222 dep_option(X11_SHARED          "Dynamically load X11 support" ON "VIDEO_X11" OFF)
   222 set(SDL_X11_OPTIONS Xcursor Xinerama XInput Xrandr Xscrnsaver XShape Xvm)
   223 set(SDL_X11_OPTIONS Xcursor Xinerama XInput Xrandr Xscrnsaver XShape Xvm)
   223 foreach(_SUB ${SDL_X11_OPTIONS})
   224 foreach(_SUB ${SDL_X11_OPTIONS})
   224   string(TOUPPER "VIDEO_X11_${_SUB}" _OPT)
   225   string(TOUPPER "VIDEO_X11_${_SUB}" _OPT)
   225   dep_option(${_OPT}           "Enable ${_SUB} support" ON "VIDEO_X11" OFF)
   226   dep_option(${_OPT}           "Enable ${_SUB} support" ON "VIDEO_X11" OFF)
   639   if(SDL_VIDEO)
   640   if(SDL_VIDEO)
   640     CheckX11()
   641     CheckX11()
   641     CheckDirectFB()
   642     CheckDirectFB()
   642     CheckOpenGLX11()
   643     CheckOpenGLX11()
   643     CheckOpenGLESX11()
   644     CheckOpenGLESX11()
       
   645     CheckWayland()
   644   endif(SDL_VIDEO)
   646   endif(SDL_VIDEO)
   645 
   647 
   646   if(LINUX)
   648   if(LINUX)
   647     check_c_source_compiles("
   649     check_c_source_compiles("
   648         #include <linux/input.h>
   650         #include <linux/input.h>