瀏覽代碼

Merge branch 'bugfix/use_component_srcs' into 'master'

List files manually for recently added components

See merge request idf/esp-idf!3315
Angus Gratton 7 年之前
父節點
當前提交
930ddf2b2c
共有 2 個文件被更改,包括 10 次插入2 次删除
  1. 5 1
      components/mqtt/CMakeLists.txt
  2. 5 1
      components/tcp_transport/CMakeLists.txt

+ 5 - 1
components/mqtt/CMakeLists.txt

@@ -1,6 +1,10 @@
 set(COMPONENT_ADD_INCLUDEDIRS esp-mqtt/include)
 set(COMPONENT_ADD_INCLUDEDIRS esp-mqtt/include)
 set(COMPONENT_PRIV_INCLUDEDIRS "esp-mqtt/lib/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)
 set(COMPONENT_REQUIRES lwip nghttp mbedtls tcp_transport)
 
 

+ 5 - 1
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_ADD_INCLUDEDIRS "include")
 
 
 set(COMPONENT_REQUIRES lwip esp-tls)
 set(COMPONENT_REQUIRES lwip esp-tls)