mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
1cb5712463
Components should set the COMPONENT_REQUIRES & COMPONENT_PRIVATE_REQUIRES variables to define their requirements.
31 lines
724 B
CMake
31 lines
724 B
CMake
set(COMPONENT_ADD_INCLUDEDIRS port/include port/include/coap libcoap/include libcoap/include/coap)
|
|
|
|
set(COMPONENT_SRCS
|
|
libcoap/src/address.c
|
|
libcoap/src/async.c
|
|
libcoap/src/block.c
|
|
libcoap/src/coap_time.c
|
|
libcoap/src/debug.c
|
|
libcoap/src/encode.c
|
|
libcoap/src/hashkey.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
|
|
port/coap_io_socket.c
|
|
)
|
|
|
|
set(COMPONENT_REQUIRES lwip)
|
|
|
|
register_component()
|
|
|
|
# Needed for coap headers in public builds, also.
|
|
#
|
|
# TODO: find a way to move this to a port header
|
|
target_compile_definitions(coap PUBLIC WITH_POSIX)
|
|
|