From c4b91395bbc8fecc23f0c03de1f654bbf5ccd69d Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 22 Dec 2021 22:53:50 +0800 Subject: [PATCH] improve libwebp (#781) * Add external source for libwebp * improve libwebp Co-authored-by: Kelvin Zhang --- packages/l/libpng/xmake.lua | 2 +- packages/l/libwebp/xmake.lua | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/l/libpng/xmake.lua b/packages/l/libpng/xmake.lua index 5c54e10fd..16de9486c 100644 --- a/packages/l/libpng/xmake.lua +++ b/packages/l/libpng/xmake.lua @@ -17,7 +17,7 @@ package("libpng") add_syslinks("m") end - on_install("windows", "mingw", "android", "iphoneos", "cross", function (package) + on_install("windows", "mingw", "android", "iphoneos", "cross", "bsd", function (package) io.writefile("xmake.lua", [[ add_rules("mode.debug", "mode.release") add_requires("zlib") diff --git a/packages/l/libwebp/xmake.lua b/packages/l/libwebp/xmake.lua index 82386c9d0..a633f57d2 100644 --- a/packages/l/libwebp/xmake.lua +++ b/packages/l/libwebp/xmake.lua @@ -22,6 +22,8 @@ package("libwebp") if is_plat("linux", "bsd") then add_syslinks("pthread") end + add_extsources("brew::webp") + add_extsources("apt::libwebp-dev") on_install("linux", "macosx", "windows", "mingw", "bsd", function (package) local configs = {}