Skip to content

Commit

Permalink
enable libzip for mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jul 17, 2024
1 parent f4e9a1f commit 0c4d060
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/l/libzip/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ package("libzip")
add_syslinks("advapi32")
end

on_load("windows", "macosx", "linux", function (package)
on_load(function (package)
for config, dep in pairs(configdeps) do
if package:config(config) then
package:add("deps", dep)
end
end
end)

on_install("windows", "macosx", "linux", function (package)
on_install("windows", "macosx", "linux", "mingw", function (package)
io.replace("CMakeLists.txt", "Dist(", "#Dist(", {plain = true})
local configs = {"-DBUILD_DOC=OFF", "-DBUILD_EXAMPLES=OFF", "-DBUILD_REGRESS=OFF", "-DBUILD_TOOLS=ON"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
Expand Down

0 comments on commit 0c4d060

Please sign in to comment.