Files
labs-web-applications/xmake.lua
T

39 lines
980 B
Lua
Raw Normal View History

2025-09-25 13:01:43 +04:00
set_languages "c++23"
add_rules("plugin.compile_commands.autoupdate", { outputdir = "." })
add_requires("cmake::Boost", {
alias = "boost",
system = true,
2025-09-25 13:01:43 +04:00
configs = {
components = { "program_options", "log" },
2025-09-25 13:01:43 +04:00
},
})
-- HTTP server target
target "http_server"
do
set_kind "binary"
add_files("src/main/main_http.cpp", "src/http/*.cpp", "src/common/*.cpp")
add_includedirs("src", "src/http", "src/common", { public = true })
add_packages "boost"
end
-- File server target
target "file_server"
do
set_kind "binary"
add_files("src/main/main_file.cpp", "src/file/*.cpp", "src/common/*.cpp")
add_includedirs("src", "src/file", "src/common", { public = true })
add_packages "boost"
end
-- DNS server target
target "dns_server"
do
set_kind "binary"
add_files("src/main/main_dns.cpp", "src/dns/*.cpp", "src/common/*.cpp")
add_includedirs("src", "src/dns", "src/common", { public = true })
add_packages "boost"
end