Forráskód Böngészése

Add extsources to vulkan-loader (#3151)

ImperatorS79 1 éve
szülő
commit
72a8bfde96
1 módosított fájl, 5 hozzáadás és 1 törlés
  1. 5 1
      packages/v/vulkan-loader/xmake.lua

+ 5 - 1
packages/v/vulkan-loader/xmake.lua

@@ -26,9 +26,13 @@ package("vulkan-loader")
 
 
     add_configs("shared", {description = "Build shared library.", default = true, type = "boolean", readonly = true})
     add_configs("shared", {description = "Build shared library.", default = true, type = "boolean", readonly = true})
 
 
-    if is_plat("linux") then
+    if is_plat("mingw") and is_subhost("msys") then
+        add_extsources("pacman::vulkan-loader")
+    elseif is_plat("linux") then
         add_extsources("apt::libvulkan-dev", "pacman::vulkan-icd-loader")
         add_extsources("apt::libvulkan-dev", "pacman::vulkan-icd-loader")
         add_deps("wayland", "libxrandr", "libxrender", "libxcb", "libxkbcommon")
         add_deps("wayland", "libxrandr", "libxrender", "libxcb", "libxkbcommon")
+    elseif is_plat("macosx") then
+        add_extsources("brew::vulkan-loader")
     end
     end
 
 
     on_load("windows", "linux", "macosx", function (package)
     on_load("windows", "linux", "macosx", function (package)