1idf_component_register(SRCS "tinycbor/src/cborencoder_close_container_checked.c"
2                            "tinycbor/src/cborencoder.c"
3                            "tinycbor/src/cborerrorstrings.c"
4                            "tinycbor/src/cborparser_dup_string.c"
5                            "tinycbor/src/cborparser.c"
6                            "tinycbor/src/cborpretty_stdio.c"
7                            "tinycbor/src/cborpretty.c"
8                            "tinycbor/src/cbortojson.c"
9                            "tinycbor/src/cborvalidation.c"
10                            "tinycbor/src/open_memstream.c"
11                    INCLUDE_DIRS "port/include"
12                    PRIV_INCLUDE_DIRS "tinycbor/src")
13
14# for open_memstream.c
15set_source_files_properties(tinycbor/src/open_memstream.c PROPERTIES COMPILE_DEFINITIONS "__linux__")
16
17# cbortojson.c:378:17: assignment discards 'const' qualifier from pointer target type
18target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-discarded-qualifiers")
19
20# cborvalidation.c:429:22: 'valf' may be used uninitialized
21target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-maybe-uninitialized")
22