fix: linux build.

This commit is contained in:
2025-07-06 13:32:03 +08:00
parent 3323755800
commit 0d0d70d732
4 changed files with 29 additions and 3 deletions

View File

@@ -2,14 +2,22 @@ add_rules("mode.debug", "mode.release")
target("frelayServer")
set_rules("qt.console")
add_files("../Res/server.rc")
add_files("Server.cpp", "Server.h", "main.cpp")
add_deps("ClientCore")
add_deps("Protocol")
add_deps("Util")
add_frameworks("QtNetwork")
if is_plat("windows") then
add_files("../Res/server.rc")
end
if is_plat("mingw") then
add_files("../Res/server.rc")
else
add_deps("crashelper")
end
if is_plat("linux") then
add_links("dl")
end