瀏覽代碼

minizip-ng: support wasm (#6934)

star9029 8 月之前
父節點
當前提交
2ac2657a98
共有 1 個文件被更改,包括 3 次插入1 次删除
  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"))