2018-07-24 14:59:03 +00:00
|
|
|
set(COMPONENT_ADD_INCLUDEDIRS esp-mqtt/include)
|
|
|
|
set(COMPONENT_PRIV_INCLUDEDIRS "esp-mqtt/lib/include")
|
2018-09-19 08:48:12 +00:00
|
|
|
set(COMPONENT_SRCS "esp-mqtt/mqtt_client.c"
|
|
|
|
"esp-mqtt/lib/mqtt_msg.c"
|
|
|
|
"esp-mqtt/lib/mqtt_outbox.c"
|
|
|
|
"esp-mqtt/lib/platform_esp32_idf.c"
|
|
|
|
"esp-mqtt/lib/transport_ws.c")
|
2018-07-24 14:59:03 +00:00
|
|
|
|
|
|
|
set(COMPONENT_REQUIRES lwip nghttp mbedtls tcp_transport)
|
|
|
|
|
|
|
|
register_component()
|
2018-09-18 06:16:19 +00:00
|
|
|
|
|
|
|
if(GCC_NOT_5_2_0)
|
|
|
|
# Temporary suppress "format-overflow" warning until we are fixed in esp-mqtt repo
|
|
|
|
set_source_files_properties(
|
|
|
|
esp-mqtt/lib/transport_ws.c
|
|
|
|
PROPERTIES COMPILE_FLAGS
|
|
|
|
-Wno-format-overflow)
|
|
|
|
endif()
|