Skip to content

Commit

Permalink
fix: syslink missing on linux in webui. (#6329)
Browse files Browse the repository at this point in the history
* fix: syslink missing on linux in webui.

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

---------

Co-authored-by: star9029 <[email protected]>
  • Loading branch information
SuniRein and star-hengxing authored Feb 11, 2025
1 parent f2df3e7 commit a7e1f1c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/w/webui/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ package("webui")
add_syslinks("user32", "advapi32", "shell32")
elseif is_plat("mingw") then
add_syslinks("ws2_32")
elseif is_plat("linux") then
add_syslinks("pthread", "dl")
end

on_install("windows", "linux", "macosx", "mingw", "msys", "android", "cross", function (package)
on_install("windows", "linux", "macosx", "mingw|x86_64", "msys", "android", "cross", function (package)
if package:is_plat("android") and package:is_arch("armeabi-v7a") then
import("core.tool.toolchain")
local ndk = toolchain.load("ndk", {plat = package:plat(), arch = package:arch()})
Expand All @@ -39,6 +41,8 @@ package("webui")
add_syslinks("user32", "advapi32", "shell32")
elseif is_plat("mingw") then
add_syslinks("ws2_32")
elseif is_plat("linux") then
add_syslinks("pthread", "dl")
end
]])
import("package.tools.xmake").install(package)
Expand Down

0 comments on commit a7e1f1c

Please sign in to comment.