Browse Source

Add extsources to stb (#605)

ImperatorS79 4 years ago
parent
commit
6acf7687f9
1 changed files with 6 additions and 0 deletions
  1. 6 0
      packages/s/stb/xmake.lua

+ 6 - 0
packages/s/stb/xmake.lua

@@ -6,6 +6,12 @@ package("stb")
 
 
     add_urls("https://github.com/nothings/stb.git")
     add_urls("https://github.com/nothings/stb.git")
     add_versions("0.0", "3a1174060a7dd4eb652d4e6854bc4cd98c159200")
     add_versions("0.0", "3a1174060a7dd4eb652d4e6854bc4cd98c159200")
+    
+    if is_plat("mingw") and is_subhost("msys") then
+        add_extsources("pacman::stb")
+    elseif is_host("linux") then
+        add_extsources("pacman::stb", "apt::libstb-dev")
+    end
 
 
     on_install(function (package)
     on_install(function (package)
         os.cp("*.h", package:installdir("include"))
         os.cp("*.h", package:installdir("include"))