|
@@ -22,6 +22,8 @@ package("minizip-ng")
|
|
add_deps("cmake")
|
|
add_deps("cmake")
|
|
if is_plat("linux", "bsd", "android", "cross") then
|
|
if is_plat("linux", "bsd", "android", "cross") then
|
|
add_deps("openssl")
|
|
add_deps("openssl")
|
|
|
|
+ elseif is_plat("wasm") then
|
|
|
|
+ add_deps("openssl3")
|
|
end
|
|
end
|
|
|
|
|
|
if is_plat("macosx") then
|
|
if is_plat("macosx") then
|
|
@@ -48,7 +50,7 @@ package("minizip-ng")
|
|
end
|
|
end
|
|
end)
|
|
end)
|
|
|
|
|
|
- on_install("macosx", "android", "linux", "windows", "mingw", function (package)
|
|
|
|
|
|
+ on_install(function (package)
|
|
local configs = {"-DMZ_LIBCOMP=OFF", "-DMZ_FETCH_LIBS=OFF"}
|
|
local configs = {"-DMZ_LIBCOMP=OFF", "-DMZ_FETCH_LIBS=OFF"}
|
|
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
|
|
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
|
|
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
|
|
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
|