From f69c45dd62f13808d50292483b1fa314d9553dec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Tue, 21 May 2024 23:03:47 +0200 Subject: [PATCH] Auto-update assimp to v5.4.1 (#4101) * Update assimp to v5.4.1 * assimp: Add on_check --- packages/a/assimp/xmake.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/a/assimp/xmake.lua b/packages/a/assimp/xmake.lua index 50a217e0e2a..aedd90ab5d0 100644 --- a/packages/a/assimp/xmake.lua +++ b/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