Skip to content

Commit

Permalink
fix syslinks
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Sep 25, 2024
1 parent a3c27d0 commit d501ba0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/l/libzip/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ package("libzip")
end

if is_plat("windows", "mingw") then
add_syslinks("advapi32")
add_syslinks("advapi32", "bcrypt")
end

if on_check then
Expand Down
11 changes: 10 additions & 1 deletion packages/l/libzippp/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,23 @@ package("libzippp")

add_deps("cmake")

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)
package:add("deps", "libzip v" .. libzip_version_map[package:version_str()])
if package:config("encryption") then
package:add("defines", "LIBZIPPP_WITH_ENCRYPTION")
end
end)

on_install(function (package)
on_install("!cross", function (package)
local configs = {
"-DLIBZIPPP_BUILD_TESTS=OFF",
"-DLIBZIPPP_CMAKE_CONFIG_MODE=ON",
Expand Down

0 comments on commit d501ba0

Please sign in to comment.