Skip to content

Commit

Permalink
Auto-update assimp to v5.4.1 (#4101)
Browse files Browse the repository at this point in the history
* Update assimp to v5.4.1

* assimp: Add on_check
  • Loading branch information
SirLynix authored May 21, 2024
1 parent 5b64008 commit f69c45d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/a/assimp/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f69c45d

Please sign in to comment.