Use config to declare signal/stun server info

This commit is contained in:
dijunkun
2023-07-18 16:58:53 +08:00
parent ea9ffbd6d8
commit 03cb767f1f
16 changed files with 830 additions and 34 deletions

View File

@@ -26,6 +26,17 @@ add_packages("spdlog")
includes("thirdparty")
target("log")
set_kind("headeronly")
add_packages("spdlog")
add_headerfiles("src/log/log.h")
add_includedirs("src/log", {public = true})
target("inih")
set_kind("static")
add_files("src/inih/ini.c", "src/inih/INIReader.cpp")
add_includedirs("src/inih", {public = true})
target("ice")
set_kind("static")
add_deps("log", "ws")
@@ -41,16 +52,10 @@ target("ws")
add_packages("asio")
add_includedirs("thirdparty/websocketpp/include", {public = true})
target("log")
set_kind("headeronly")
add_packages("spdlog")
add_headerfiles("src/log/log.h")
add_includedirs("src/log", {public = true})
target("pc")
set_kind("static")
add_deps("log")
add_deps("ws", "ice")
add_deps("ws", "ice", "inih")
add_files("src/pc/*.cpp")
add_packages("asio", "nlohmann_json")
add_includedirs("src/ws", "src/ice")