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:
Radoslaw Koppel 2019-02-27 10:16:44 +01:00 committed by Carles Cufí
commit dbe775838a
2 changed files with 7 additions and 0 deletions

View file

@ -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)

View file

@ -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