build: change to xmake mgr.

This commit is contained in:
2025-07-05 23:26:12 +08:00
parent 1bf98cd0f7
commit a65764dd5b
27 changed files with 220 additions and 424 deletions

28
Gui/xmake.lua Normal file
View File

@@ -0,0 +1,28 @@
add_rules("mode.debug", "mode.release")
target("frelayGUI")
add_rules("qt.widgetapp")
add_defines("QAPPLICATION_CLASS=QApplication")
add_includedirs(".", {public = true})
add_files("Control/*.h")
add_files("Form/*.h")
add_files("GuiUtil/*.h")
add_files("Control/*.cpp")
add_files("Control/*.ui")
add_files("Form/*.cpp")
add_files("Form/*.ui")
add_files("GuiUtil/*.cpp")
add_files("*.cpp")
add_files("*.ui")
add_files("*.h")
add_files("../Res/frelay.qrc")
add_files("../Res/ico.rc")
add_frameworks("QtCore")
add_frameworks("QtGui")
add_frameworks("QtNetwork")
add_deps("Struct")
add_deps("Protocol")
add_deps("Util")
add_deps("ClientCore")
add_deps("SingleApplication")
add_deps("crashelper")