소스 검색

minizip-ng: support wasm (#6934)

star9029 3 달 전
부모
커밋
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")
     if is_plat("linux", "bsd", "android", "cross") then
         add_deps("openssl")
+    elseif is_plat("wasm") then
+        add_deps("openssl3")
     end
 
     if is_plat("macosx") then
@@ -48,7 +50,7 @@ package("minizip-ng")
         end
     end)
 
-    on_install("macosx", "android", "linux", "windows", "mingw", function (package)
+    on_install(function (package)
         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, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))