[feat] use sqllite3 to manager device id and password

This commit is contained in:
dijunkun committed 2025-06-19 17:43:29 +08:00
1 parent 721084923a
commit c38f404ef3
7 files changed
+188 -40

No files matched your search

+9 -3
View File
@@ -6,7 +6,7 @@ set_languages("c++17")
add_rules("mode.release", "mode.debug")
add_requires("asio 1.24.0", "nlohmann_json", "spdlog 1.11.0")
add_requires("asio 1.24.0", "nlohmann_json", "spdlog 1.14.1", "sqlite3 3.49.0", "openssl")
add_defines("ASIO_STANDALONE", "ASIO_HAS_STD_TYPE_TRAITS",
"ASIO_HAS_STD_SHARED_PTR", "ASIO_HAS_STD_ADDRESSOF", "ASIO_HAS_STD_ATOMIC",
@@ -22,7 +22,7 @@ elseif is_os("linux") then
set_config("cxxflags", "-fPIC")
end
add_packages("spdlog")
add_packages("spdlog", "openssl", "sqlite3")
includes("thirdparty")
@@ -36,9 +36,15 @@ target("common")
set_kind("headeronly")
add_includedirs("src/common", {public = true})
target("device_db_manager")
set_kind("object")
add_deps("log")
add_files("src/device_db_manager/*.cpp")
add_includedirs("src/device_db_manager", {public = true})
target("signal_server")
set_kind("binary")
add_deps("log", "common")
add_deps("log", "common", "device_db_manager")
add_files("src/*.cpp")
add_packages("asio", "nlohmann_json", "spdlog")
add_includedirs("thirdparty/websocketpp/include")