Răsfoiți Sursa

Add extsources for vulkan-headers (#3149)

ImperatorS79 1 an în urmă
părinte
comite
783082ec83
1 a modificat fișierele cu 5 adăugiri și 1 ștergeri
  1. 5 1
      packages/v/vulkan-headers/xmake.lua

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

@@ -30,8 +30,12 @@ package("vulkan-headers")
 
     add_deps("cmake")
 
-    if is_plat("linux") then
+    if is_plat("mingw") and is_subhost("msys") then
         add_extsources("pacman::vulkan-headers")
+    elseif is_plat("linux") then
+        add_extsources("apt::libvulkan-dev", "pacman::vulkan-headers")
+    elseif is_plat("macosx") then
+        add_extsources("brew::vulkan-headers")
     end
 
     on_install(function (package)