2019-03-08 20:22:17 +00:00
|
|
|
set(COMPONENT_ADD_INCLUDEDIRS port/include port/include/coap libcoap/include libcoap/include/coap2)
|
2018-01-12 02:49:13 +00:00
|
|
|
|
2018-09-13 00:56:59 +00:00
|
|
|
set(COMPONENT_SRCS "libcoap/src/address.c"
|
|
|
|
"libcoap/src/async.c"
|
|
|
|
"libcoap/src/block.c"
|
2019-03-08 20:22:17 +00:00
|
|
|
"libcoap/src/coap_event.c"
|
|
|
|
"libcoap/src/coap_hashkey.c"
|
|
|
|
"libcoap/src/coap_session.c"
|
2018-09-13 00:56:59 +00:00
|
|
|
"libcoap/src/coap_time.c"
|
2019-03-08 20:22:17 +00:00
|
|
|
"libcoap/src/coap_debug.c"
|
2018-09-13 00:56:59 +00:00
|
|
|
"libcoap/src/encode.c"
|
|
|
|
"libcoap/src/mem.c"
|
|
|
|
"libcoap/src/net.c"
|
|
|
|
"libcoap/src/option.c"
|
|
|
|
"libcoap/src/pdu.c"
|
|
|
|
"libcoap/src/resource.c"
|
|
|
|
"libcoap/src/str.c"
|
|
|
|
"libcoap/src/subscribe.c"
|
|
|
|
"libcoap/src/uri.c"
|
2019-03-08 20:22:17 +00:00
|
|
|
"libcoap/src/coap_notls.c"
|
|
|
|
"port/coap_io.c")
|
2018-01-12 02:49:13 +00:00
|
|
|
|
2018-03-22 06:27:10 +00:00
|
|
|
set(COMPONENT_REQUIRES lwip)
|
|
|
|
|
2018-01-12 02:49:13 +00:00
|
|
|
register_component()
|
|
|
|
|
2019-03-28 08:28:25 +00:00
|
|
|
# Silence format truncation warning, until it is fixed upstream
|
|
|
|
set_source_files_properties(libcoap/src/coap_debug.c PROPERTIES COMPILE_FLAGS -Wno-format-truncation)
|