feat: cJSON, Gerätenamen und HTTP-Parser

This commit is contained in:
Michael Sauer
2026-09-11 22:18:14 +02:00
parent 0648b3a252
commit 4a23df1b8d
12 changed files with 3829 additions and 2 deletions
+7
View File
@@ -11,6 +11,11 @@ FetchContent_Declare(unity
FetchContent_MakeAvailable(unity)
enable_testing()
# cJSON is third-party code: build it without -Werror.
add_library(nl_cjson STATIC ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/cJSON/cJSON.c)
target_include_directories(nl_cjson PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/cJSON)
set(NL_SRC ${CMAKE_CURRENT_SOURCE_DIR}/../src)
function(nl_test name)
@@ -35,3 +40,5 @@ nl_test(test_state_log test_state_log.c fake_flash.c ${NL_SRC}/config/nl_state_l
${NL_SRC}/light/nl_boot_state.c ${NL_SRC}/util/nl_crc.c)
nl_test(test_reset_counter test_reset_counter.c fake_flash.c ${NL_SRC}/config/nl_reset_counter.c)
nl_test(test_console_cmd test_console_cmd.c ${NL_SRC}/sys/nl_console_cmd.c)
nl_test(test_names test_names.c ${NL_SRC}/net/nl_names.c)
nl_test(test_http test_http.c ${NL_SRC}/net/nl_http.c)