Auto-update kuba-zip to v0.3.1 (#3121)

* Update kuba-zip to v0.3.1

* fix 32-bit mingw

* Update xmake.lua

* Update xmake.lua

---------

Co-authored-by: star9029 <hengxings783@gmail.com>
pull/3394/head
ruki 9 months ago committed by GitHub
parent 5f36a6fecc
commit ffda4d6358
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      packages/k/kuba-zip/xmake.lua

@ -6,6 +6,7 @@ package("kuba-zip")
add_urls("https://github.com/kuba--/zip/archive/refs/tags/$(version).tar.gz",
"https://github.com/kuba--/zip.git")
add_versions("v0.3.1", "775b8a44b53e72a55c13839bf507219c2cf30b26f62e70f1a20bb727db54438f")
add_versions("v0.2.2", "f278b1da5e5382c7a1a1db1502cfa1f6df6b1e05e36253d661344d30277f9895")
add_versions("v0.2.5", "e052f6cbe6713f69f8caec61214fda4e5ae5150d1fcba02c9e79f1a05d939305")
add_versions("v0.2.6", "6a00e10dc5242f614f76f1bd1d814726a41ee6e3856ef3caf7c73de0b63acf0b")
@ -13,8 +14,10 @@ package("kuba-zip")
add_deps("cmake")
on_install("windows", "macosx", "linux", "mingw", function (package)
io.replace("CMakeLists.txt", "-Werror", "", {plain = true})
local configs = {"-DCMAKE_DISABLE_TESTING=ON", "-DZIP_BUILD_DOCS=OFF"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
if package:config("shared") then
table.insert(configs, "-DBUILD_SHARED_LIBS=ON")
if package:is_plat("windows", "mingw") then

Loading…
Cancel
Save