Merge "add vsync timer" into tizen
[platform/upstream/SDL.git] / CMakeLists.txt
index 7f70d8c..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})
@@ -1289,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