CMakeLists.txt
changeset 11175 cbc6a8a5b701
parent 11138 c936a84f05ba
child 11207 4ed2e42b7497
equal deleted inserted replaced
11174:3767cdd2d64b 11175:cbc6a8a5b701
   312 endforeach()
   312 endforeach()
   313 set_option(VIDEO_COCOA         "Use Cocoa video driver" ${APPLE})
   313 set_option(VIDEO_COCOA         "Use Cocoa video driver" ${APPLE})
   314 set_option(DIRECTX             "Use DirectX for Windows audio/video" ${WINDOWS})
   314 set_option(DIRECTX             "Use DirectX for Windows audio/video" ${WINDOWS})
   315 set_option(RENDER_D3D          "Enable the Direct3D render driver" ${WINDOWS})
   315 set_option(RENDER_D3D          "Enable the Direct3D render driver" ${WINDOWS})
   316 set_option(VIDEO_VIVANTE       "Use Vivante EGL video driver" ${UNIX_SYS})
   316 set_option(VIDEO_VIVANTE       "Use Vivante EGL video driver" ${UNIX_SYS})
       
   317 set_option(VIDEO_KMSDRM        "Use KMS DRM video driver" ${UNIX_SYS})
       
   318 dep_option(KMSDRM_SHARED       "Dynamically load KMS DRM support" ON "VIDEO_KMSDRM" OFF)
   317 
   319 
   318 # TODO: We should (should we?) respect cmake's ${BUILD_SHARED_LIBS} flag here
   320 # TODO: We should (should we?) respect cmake's ${BUILD_SHARED_LIBS} flag here
   319 # The options below are for compatibility to configure's default behaviour.
   321 # The options below are for compatibility to configure's default behaviour.
   320 set(SDL_SHARED ${SDL_SHARED_ENABLED_BY_DEFAULT} CACHE BOOL "Build a shared version of the library")
   322 set(SDL_SHARED ${SDL_SHARED_ENABLED_BY_DEFAULT} CACHE BOOL "Build a shared version of the library")
   321 set(SDL_STATIC ON CACHE BOOL "Build a static version of the library")
   323 set(SDL_STATIC ON CACHE BOOL "Build a static version of the library")
   915     CheckDirectFB()
   917     CheckDirectFB()
   916     CheckOpenGLX11()
   918     CheckOpenGLX11()
   917     CheckOpenGLESX11()
   919     CheckOpenGLESX11()
   918     CheckWayland()
   920     CheckWayland()
   919     CheckVivante()
   921     CheckVivante()
       
   922     CheckKMSDRM()
   920   endif()
   923   endif()
   921 
   924 
   922   if(LINUX)
   925   if(LINUX)
   923     check_c_source_compiles("
   926     check_c_source_compiles("
   924         #include <linux/input.h>
   927         #include <linux/input.h>