2025-01-08 10:25:14 +08:00
|
|
|
add_rules("mode.debug", "mode.release")
|
|
|
|
set_languages("c++17")
|
|
|
|
if is_plat("windows") then
|
|
|
|
add_cxxflags("/source-charset:utf-8")
|
|
|
|
end
|
2025-01-08 13:45:10 +08:00
|
|
|
if is_plat("mingw") then
|
|
|
|
add_cxxflags("-Wno-unused-variable -finput-charset=utf-8 -fexec-charset=gbk")
|
|
|
|
end
|
2025-01-21 21:43:09 +08:00
|
|
|
if has_config("xp") then
|
|
|
|
add_defines("_WIN32_WINNT=0x0501")
|
|
|
|
else
|
|
|
|
add_defines("_WIN32_WINNT=0x0601")
|
|
|
|
end
|
2025-01-21 16:40:10 +08:00
|
|
|
add_defines("FMT_HEADER_ONLY")
|
2025-01-08 10:25:14 +08:00
|
|
|
add_includedirs("$(projectdir)/3rd", {public = true})
|
|
|
|
add_includedirs("$(projectdir)/build", {public = true})
|
2025-01-10 22:12:26 +08:00
|
|
|
includes("util", "ofen", "net", "server", "client", "filecomplete")
|
2025-01-21 21:43:09 +08:00
|
|
|
add_configfiles("config.h.in", {filename = "version.h"})
|
|
|
|
|
|
|
|
option("xp")
|
|
|
|
set_default(false)
|
|
|
|
set_showmenu(true)
|