Browse Source

Remove vulkansdk dependency from imgui (#6767)

Cappecasper03 6 months ago
parent
commit
53d63a76db

+ 2 - 2
packages/c/cimgui/port/xmake.lua

@@ -18,7 +18,7 @@ if has_config("sdl2") then
 end
 end
 
 
 if has_config("vulkan") then
 if has_config("vulkan") then
-    add_requires("vulkansdk")
+    add_requires("vulkan-headers")
 end
 end
 
 
 if has_config("freetype") then
 if has_config("freetype") then
@@ -69,7 +69,7 @@ target("cimgui")
     if has_config("vulkan") then
     if has_config("vulkan") then
         add_files("imgui/backends/imgui_impl_vulkan.cpp")
         add_files("imgui/backends/imgui_impl_vulkan.cpp")
         add_headerfiles("imgui/(backends/imgui_impl_vulkan.h)")
         add_headerfiles("imgui/(backends/imgui_impl_vulkan.h)")
-        add_packages("vulkansdk")
+        add_packages("vulkan-headers")
     end
     end
 
 
     if has_config("freetype") then
     if has_config("freetype") then

+ 1 - 1
packages/c/cimgui/xmake.lua

@@ -47,7 +47,7 @@ package("cimgui")
             package:add("defines", "CIMGUI_USE_GLFW")
             package:add("defines", "CIMGUI_USE_GLFW")
         end
         end
         if package:config("vulkan") then
         if package:config("vulkan") then
-            package:add("deps", "vulkansdk")
+            package:add("deps", "vulkan-headers")
         end
         end
         if package:config("freetype") then
         if package:config("freetype") then
             package:add("deps", "freetype")
             package:add("deps", "freetype")

+ 2 - 2
packages/i/imgui/port/xmake.lua

@@ -40,7 +40,7 @@ if has_config("sdl3") or has_config("sdl3_renderer") or has_config("sdl3_gpu") t
 end
 end
 
 
 if has_config("vulkan") then
 if has_config("vulkan") then
-    add_requires("vulkansdk")
+    add_requires("vulkan-headers")
 end
 end
 
 
 if has_config("wgpu") then
 if has_config("wgpu") then
@@ -146,7 +146,7 @@ target("imgui")
     if has_config("vulkan") then
     if has_config("vulkan") then
         add_files("backends/imgui_impl_vulkan.cpp")
         add_files("backends/imgui_impl_vulkan.cpp")
         add_headerfiles("(backends/imgui_impl_vulkan.h)")
         add_headerfiles("(backends/imgui_impl_vulkan.h)")
-        add_packages("vulkansdk")
+        add_packages("vulkan-headers")
     end
     end
 
 
     if has_config("win32") then
     if has_config("win32") then

+ 1 - 1
packages/i/imgui/xmake.lua

@@ -154,7 +154,7 @@ package("imgui")
             package:add("deps", "libsdl3")
             package:add("deps", "libsdl3")
         end
         end
         if package:config("vulkan") then
         if package:config("vulkan") then
-            package:add("deps", "vulkansdk")
+            package:add("deps", "vulkan-headers")
         end
         end
         if package:config("wgpu") then
         if package:config("wgpu") then
             package:add("deps", "wgpu-native")
             package:add("deps", "wgpu-native")