Skip to content

Commit

Permalink
add check
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Sep 23, 2024
1 parent 82c3abf commit 28e2045
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/l/libzip/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ package("libzip")
add_syslinks("advapi32")
end

if on_check then
on_check("android", function (package)
if package:is_arch("armeabi-v7a") then
local ndkver = package:toolchain("ndk"):config("ndkver")
assert(ndkver and tonumber(ndkver) > 22, "package(libzip) require ndk version > 22")
end
end)
end

on_load(function (package)
for config, dep in pairs(configdeps) do
if package:config(config) then
Expand Down

0 comments on commit 28e2045

Please sign in to comment.