ext: encoding: tinycbor: Add missing files for pretty printing
This commits adds missing source files for tinycbor library to allow pretty printing. Signed-off-by: Radoslaw Koppel <radoslaw.koppel@nordicsemi.no>
This commit is contained in:
parent
259c2409c0
commit
dbe775838a
2 changed files with 7 additions and 0 deletions
|
@ -12,5 +12,7 @@ zephyr_library_sources(
|
||||||
)
|
)
|
||||||
zephyr_library_sources_ifdef(CONFIG_NEWLIB_LIBC src/cborparser_dup_string.c)
|
zephyr_library_sources_ifdef(CONFIG_NEWLIB_LIBC src/cborparser_dup_string.c)
|
||||||
|
|
||||||
|
zephyr_library_sources_ifdef(CONFIG_CBOR_PRETTY_PRINTING src/cborpretty.c)
|
||||||
|
|
||||||
zephyr_library_link_libraries(TINYCBOR)
|
zephyr_library_link_libraries(TINYCBOR)
|
||||||
target_link_libraries(TINYCBOR INTERFACE zephyr_interface)
|
target_link_libraries(TINYCBOR INTERFACE zephyr_interface)
|
||||||
|
|
|
@ -68,4 +68,9 @@ config CBOR_WITHOUT_OPEN_MEMSTREAM
|
||||||
help
|
help
|
||||||
This option enables open memstream support.
|
This option enables open memstream support.
|
||||||
|
|
||||||
|
config CBOR_PRETTY_PRINTING
|
||||||
|
bool "Implement pretty printing functionality"
|
||||||
|
help
|
||||||
|
This option enables cbor_value_to_pretty_stream function.
|
||||||
|
|
||||||
endif #TINYCBOR
|
endif #TINYCBOR
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue