Add extsources to libpng (#1343)

pull/1348/head
ImperatorS79 2 years ago committed by GitHub
parent 3ac1379235
commit 482183e72f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      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")

Loading…
Cancel
Save