소스 검색

Auto-update libwebsockets to v4.4.1 (#7707)

* Update libwebsockets to v4.4.1

* fix ucrt

* workaround tar for msys2

---------

Co-authored-by: star9029 <[email protected]>
ruki 4 주 전
부모
커밋
6e181d95a3
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      packages/l/libwebsockets/xmake.lua

+ 6 - 2
packages/l/libwebsockets/xmake.lua

@@ -3,9 +3,12 @@ package("libwebsockets")
     set_description("canonical libwebsockets.org websocket library")
     set_license("MIT")
 
-    set_urls("https://github.com/warmcat/libwebsockets/archive/refs/tags/$(version).tar.gz",
-             "https://github.com/warmcat/libwebsockets.git")
+    add_urls("https://github.com/warmcat/libwebsockets.git")
+    if not is_subhost("msys") then
+        add_urls("https://github.com/warmcat/libwebsockets/archive/refs/tags/$(version).tar.gz")
+    end
 
+    add_versions("v4.4.1", "472e6cfa77b6f80ff2cc176bc59f6cb2856df7e30e8f31afcbd1fc94ffd2f828")
     add_versions("v4.3.5", "87f99ad32803ed325fceac5327aae1f5c1b417d54ee61ad36cffc8df5f5ab276")
     add_versions("v4.3.4", "896b36aa063b4d05865f9ffee4404b26d4c2d3e2ba17b0b69f021b615377845e")
     add_versions("v4.3.3", "6fd33527b410a37ebc91bb64ca51bdabab12b076bc99d153d7c5dd405e4bdf90")
@@ -55,6 +58,7 @@ package("libwebsockets")
 
     on_install("!wasm", function (package)
         io.replace("CMakeLists.txt", "/WX", "", {plain = true})
+        io.replace("CMakeLists.txt", "set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded$<$<CONFIG:Debug>:Debug>DLL)", "", {plain = true})
         if not package:is_plat("linux") or not package:config("libcap") then
             io.replace("CMakeLists.txt", [[CHECK_LIBRARY_EXISTS(cap cap_set_flag "" LWS_HAVE_LIBCAP)]], "", {plain = true})
         end