From 8fdfc22e2e30f5d014beaf0ea880ed58b2617b83 Mon Sep 17 00:00:00 2001 From: Renz Bagaporo Date: Wed, 19 Sep 2018 16:48:12 +0800 Subject: [PATCH 1/2] mqtt: list files manually in component cmake file --- components/mqtt/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/mqtt/CMakeLists.txt b/components/mqtt/CMakeLists.txt index ba5375c41..27cf1e285 100644 --- a/components/mqtt/CMakeLists.txt +++ b/components/mqtt/CMakeLists.txt @@ -1,6 +1,10 @@ set(COMPONENT_ADD_INCLUDEDIRS esp-mqtt/include) set(COMPONENT_PRIV_INCLUDEDIRS "esp-mqtt/lib/include") -set(COMPONENT_SRCDIRS esp-mqtt esp-mqtt/lib) +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") set(COMPONENT_REQUIRES lwip nghttp mbedtls tcp_transport) From 8f85fa1bfb341d1b47930014ff1bb7cabc7b6ab0 Mon Sep 17 00:00:00 2001 From: Renz Bagaporo Date: Wed, 19 Sep 2018 16:48:31 +0800 Subject: [PATCH 2/2] tcp_transport: list files manually in component cmake file --- components/tcp_transport/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/tcp_transport/CMakeLists.txt b/components/tcp_transport/CMakeLists.txt index 938f7f2e3..8843ac041 100644 --- a/components/tcp_transport/CMakeLists.txt +++ b/components/tcp_transport/CMakeLists.txt @@ -1,4 +1,8 @@ -set(COMPONENT_SRCDIRS ".") +set(COMPONENT_SRCS "transport.c" + "transport_ssl.c" + "transport_tcp.c" + "transport_utils.c") + set(COMPONENT_ADD_INCLUDEDIRS "include") set(COMPONENT_REQUIRES lwip esp-tls)