2022-03-01 17:24:03 +01:00
|
|
|
if(CONFIG_ZCBOR)
|
|
|
|
zephyr_include_directories(
|
|
|
|
${ZEPHYR_ZCBOR_MODULE_DIR}/include
|
|
|
|
)
|
|
|
|
|
|
|
|
zephyr_library()
|
|
|
|
zephyr_library_sources(
|
|
|
|
${ZEPHYR_ZCBOR_MODULE_DIR}/src/zcbor_common.c
|
|
|
|
${ZEPHYR_ZCBOR_MODULE_DIR}/src/zcbor_decode.c
|
|
|
|
${ZEPHYR_ZCBOR_MODULE_DIR}/src/zcbor_encode.c
|
|
|
|
)
|
2022-04-19 16:03:02 +02:00
|
|
|
|
2024-01-25 17:42:45 +01:00
|
|
|
zephyr_library_compile_definitions(_POSIX_C_SOURCE=200809L)
|
|
|
|
|
2022-04-19 16:03:02 +02:00
|
|
|
zephyr_compile_definitions_ifdef(CONFIG_ZCBOR_CANONICAL ZCBOR_CANONICAL)
|
|
|
|
zephyr_compile_definitions_ifdef(CONFIG_ZCBOR_STOP_ON_ERROR ZCBOR_STOP_ON_ERROR)
|
|
|
|
zephyr_compile_definitions_ifdef(CONFIG_ZCBOR_VERBOSE ZCBOR_VERBOSE)
|
2022-09-08 13:11:26 +02:00
|
|
|
zephyr_compile_definitions_ifdef(CONFIG_ZCBOR_ASSERT ZCBOR_ASSERTS)
|
2022-04-19 16:03:02 +02:00
|
|
|
zephyr_compile_definitions_ifdef(CONFIG_ZCBOR_BIG_ENDIAN ZCBOR_BIG_ENDIAN)
|
2022-03-01 17:24:03 +01:00
|
|
|
endif()
|