mirror of
https://github.com/espressif/esp-mqtt.git
synced 2026-06-05 21:04:46 +00:00
refactor: Moves outbox to an internal library to improve testing
This commit is contained in:
+4
-1
@@ -1,4 +1,4 @@
|
||||
set(srcs mqtt_client.c lib/mqtt_msg.c lib/mqtt_outbox.c lib/platform_esp32_idf.c)
|
||||
set(srcs mqtt_client.c lib/mqtt_msg.c lib/platform_esp32_idf.c)
|
||||
|
||||
if(CONFIG_MQTT_PROTOCOL_5)
|
||||
list(APPEND srcs lib/mqtt5_msg.c mqtt5_client.c)
|
||||
@@ -15,3 +15,6 @@ idf_component_register(SRCS "${srcs}"
|
||||
|
||||
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/lib/mqtt_utils)
|
||||
target_link_libraries(${COMPONENT_LIB} PUBLIC idf::mqtt::utils)
|
||||
|
||||
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/lib/mqtt_outbox)
|
||||
target_link_libraries(${COMPONENT_LIB} PRIVATE idf::mqtt::outbox)
|
||||
|
||||
Reference in New Issue
Block a user