2025-07-05 23:26:12 +08:00
|
|
|
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")
|
2025-07-06 13:04:05 +08:00
|
|
|
if is_plat("windows") then
|
|
|
|
|
add_ldflags("-subsystem:windows")
|
|
|
|
|
end
|
2025-07-05 23:26:12 +08:00
|
|
|
add_frameworks("QtCore")
|
|
|
|
|
add_frameworks("QtGui")
|
|
|
|
|
add_frameworks("QtNetwork")
|
|
|
|
|
add_deps("Struct")
|
|
|
|
|
add_deps("Protocol")
|
|
|
|
|
add_deps("Util")
|
|
|
|
|
add_deps("ClientCore")
|
|
|
|
|
add_deps("SingleApplication")
|
2025-07-06 13:04:05 +08:00
|
|
|
if is_plat("mingw") then
|
|
|
|
|
add_ldflags("-mwindows")
|
|
|
|
|
else
|
|
|
|
|
add_deps("crashelper")
|
|
|
|
|
end
|