Browse Source

Add extsources for vulkan-headers (#3149)

ImperatorS79 1 year ago
parent
commit
783082ec83
1 changed files with 5 additions and 1 deletions
  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)