Auto-update assimp to v5.4.1 (#4101)

* Update assimp to v5.4.1

* assimp: Add on_check
pull/4102/head
Jérôme Leclercq 9 months ago committed by GitHub
parent 5b6400866a
commit f69c45dd62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 10
      packages/a/assimp/xmake.lua

@ -5,6 +5,7 @@ package("assimp")
set_urls("https://github.com/assimp/assimp/archive/refs/tags/$(version).zip",
"https://github.com/assimp/assimp.git")
add_versions("v5.4.1", "08837ee7c50b98ca72d2c9e66510ca6640681db8800aa2d3b1fcd61ccc615113")
add_versions("v5.4.0", "0f3698e9ba0110df0b636dbdd95706e7e28d443ff3dbaf5828926c23bfff778d")
add_versions("v5.3.1", "f4020735fe4601de9d85cb335115568cce0e027a65e546dd8895081696d624bd")
add_versions("v5.3.0", "cccbd20522b577613096b0b157f62c222f844bc177356b8301cd74eee3fecadb")
@ -48,6 +49,15 @@ package("assimp")
add_syslinks("advapi32")
end
if on_check then
on_check("android", function (package)
import("core.tool.toolchain")
local ndk = toolchain.load("ndk", {plat = package:plat(), arch = package:arch()})
local ndk_sdkver = ndk:config("ndk_sdkver")
assert(ndk_sdkver and tonumber(ndk_sdkver) >= 26, "package(assimp): need ndk api level >= 26 for android")
end)
end
on_load(function (package)
if not package:gitref() then
if package:version():le("5.1.0") then

Loading…
Cancel
Save