Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: syslink missing on linux in webui. #6329

Merged
merged 4 commits into from
Feb 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading