Merge "add vsync timer" into tizen
[platform/upstream/SDL.git] / CMakeLists.txt
index 74356b6..0218ba4 100755 (executable)
@@ -258,6 +258,7 @@ dep_option(FUSIONSOUND_SHARED  "Dynamically load fusionsound audio support" ON "
 set_option(VIDEO_DUMMY         "Use dummy video driver" ON)
 set_option(VIDEO_OPENGL        "Include OpenGL support" ON)
 set_option(VIDEO_OPENGLES      "Include OpenGL ES support" ON)
+set_option(VIDEO_VULKAN        "Include vulkan support" ON)
 set_option(PTHREADS            "Use POSIX threads for multi-threading" ${SDL_PTHREADS_ENABLED_BY_DEFAULT})
 dep_option(PTHREADS_SEM        "Use pthread semaphores" ON "PTHREADS" OFF)
 set_option(SDL_DLOPEN          "Use dlopen for shared object loading" ${SDL_DLOPEN_ENABLED_BY_DEFAULT})
@@ -284,6 +285,8 @@ set_option(VIDEO_MIR           "Use Mir video driver" ${UNIX_SYS})
 dep_option(MIR_SHARED          "Dynamically load Mir support" ON "VIDEO_MIR" OFF)
 set_option(VIDEO_RPI           "Use Raspberry Pi video driver" ${UNIX_SYS})
 dep_option(X11_SHARED          "Dynamically load X11 support" ON "VIDEO_X11" OFF)
+set_option(VIDEO_TIZEN       "Use Tizen video driver" ${UNIX_SYS})
+dep_option(TIZEN_SHARED      "Dynamically load Tizen support" ON "VIDEO_TIZEN" OFF)
 set(SDL_X11_OPTIONS Xcursor Xinerama XInput Xrandr Xscrnsaver XShape Xvm)
 foreach(_SUB ${SDL_X11_OPTIONS})
   string(TOUPPER "VIDEO_X11_${_SUB}" _OPT)
@@ -1287,6 +1290,15 @@ elseif(HAIKU)
   endif()
 
   CheckPTHREAD()
+elseif(TIZEN)
+  if(SDL_VIDEO)
+    if(VIDEO_VULKAN)
+      set(SDL_VIDEO_VULKAN 1)
+      set(HAVE_VIDEO_VULKAN TRUE)
+      set(SDL_CFLAGS "${SDL_CFLAGS} -I/usr/include")
+      list(APPEND SDL_LIBS "-lvulkan")
+    endif()
+  endif()
 endif()
 
 # Dummies