Browse Source

minizip-ng: support wasm (#6934)

star9029 3 months ago
parent
commit
2ac2657a98
1 changed files with 3 additions and 1 deletions
  1. 3 1
      packages/m/minizip-ng/xmake.lua

+ 3 - 1
packages/m/minizip-ng/xmake.lua

@@ -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"))