瀏覽代碼

Add extsources to libsdl_image (#565)

PucklaMotzer09 4 年之前
父節點
當前提交
907100316f
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      packages/l/libsdl_image/xmake.lua

+ 6 - 0
packages/l/libsdl_image/xmake.lua

@@ -11,6 +11,12 @@ package("libsdl_image")
         add_versions("2.0.5", "eee0927d1e7819d57c623fe3e2b3c6761c77c474fe9bc425e8674d30ac049b1c")
     end
 
+    if is_plat("linux") then
+        add_extsources("pacman::sdl2_image", "apt::libsdl2-image-dev")
+    elseif is_plat("macosx") then
+        add_extsources("brew::sdl2_image")
+    end
+
     add_deps("libsdl")
 
     add_links("SDL2_image")