浏览代码

Add extsources to libpng (#1343)

ImperatorS79 3 年之前
父节点
当前提交
482183e72f
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      packages/l/libpng/xmake.lua

+ 8 - 0
packages/l/libpng/xmake.lua

@@ -17,6 +17,14 @@ package("libpng")
         add_syslinks("m")
     end
 
+    if is_plat("mingw") and is_subhost("msys") then
+        add_extsources("pacman::libpng")
+    elseif is_plat("linux") then
+        add_extsources("pacman::libpng", "apt::libpng-dev")
+    elseif is_plat("macosx") then
+        add_extsources("brew::libpng")
+    end
+
     on_install("windows", "mingw", "android", "iphoneos", "cross", "bsd", function (package)
         io.writefile("xmake.lua", [[
             add_rules("mode.debug", "mode.release")