Auto-update libheif to 1.17.6 (#3520)

* Update libheif to 1.17.6

* Update xmake.lua

---------

Co-authored-by: star9029 <hengxings783@gmail.com>
pull/3536/head
ruki 10 months ago committed by GitHub
parent 83e18579c1
commit 33538d1518
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 13
      packages/l/libheif/xmake.lua

@ -5,6 +5,7 @@ package("libheif")
set_license("LGPL-3.0")
add_urls("https://github.com/strukturag/libheif/releases/download/v$(version)/libheif-$(version).tar.gz")
add_versions("1.17.6", "8390baf4913eda0a183e132cec62b875fb2ef507ced5ddddc98dfd2f17780aee")
add_versions("1.12.0", "e1ac2abb354fdc8ccdca71363ebad7503ad731c84022cf460837f0839e171718")
add_deps("cmake")
@ -25,9 +26,15 @@ package("libheif")
end)
on_install("windows", "macosx", "linux", function (package)
local configs = {"-DWITH_EXAMPLES=OFF",
"-DWITH_AOM=OFF",
"-DWITH_RAV1E=OFF"}
local configs =
{
"-DWITH_EXAMPLES=OFF",
-- TODO: package dep
"-DWITH_AOM=OFF",
"-DWITH_RAV1E=OFF",
"-DWITH_LIBSHARPYUV=OFF"
}
io.replace("CMakeLists.txt", "find_package(AOM)", "", {plain = true})
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
for _, conf in ipairs(configdeps) do

Loading…
Cancel
Save