mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-28 21:48:05 +08:00

It is that maybe less modification working on the components is better, so I just modified the platform code of AES, SHA and so on. ESP8266 has no real hardware AES, SHA or bignum peripheral, but some method can speed up the process of part of upper algorithm, so I also added the platform code of AES, SHA, bignum, ARC, MD5. ESP8266 has no platform of bignum, so users should not enable the bignum hardware at "menuconfig".
31 lines
872 B
CMake
31 lines
872 B
CMake
if(CONFIG_MQTT_USING_IBM)
|
|
set(COMPONENT_ADD_INCLUDEDIRS
|
|
"ibm-mqtt/MQTTClient-C/src"
|
|
"ibm-mqtt/MQTTClient-C/src/FreeRTOS"
|
|
"ibm-mqtt/MQTTPacket/src")
|
|
|
|
set(COMPONENT_SRCDIRS
|
|
"ibm-mqtt/MQTTClient-C/src"
|
|
"ibm-mqtt/MQTTClient-C/src/FreeRTOS"
|
|
"ibm-mqtt/MQTTPacket/src")
|
|
|
|
endif()
|
|
|
|
if (CONFIG_MQTT_USING_ESP)
|
|
set(COMPONENT_ADD_INCLUDEDIRS "esp-mqtt/include")
|
|
set(COMPONENT_PRIV_INCLUDEDIRS "esp-mqtt/lib/include")
|
|
set(COMPONENT_SRCS "esp-mqtt/mqtt_client.c"
|
|
"esp-mqtt/lib/mqtt_msg.c"
|
|
"esp-mqtt/lib/mqtt_outbox.c"
|
|
"esp-mqtt/lib/platform_idf.c")
|
|
|
|
endif()
|
|
|
|
set(COMPONENT_REQUIRES lwip http_parser tcp_transport freertos lwip mbedtls openssl)
|
|
|
|
register_component()
|
|
|
|
if(CONFIG_MQTT_USING_IBM)
|
|
target_compile_options(${COMPONENT_LIB} PUBLIC -DMQTT_TASK -DMQTTCLIENT_PLATFORM_HEADER=MQTTFreeRTOS.h)
|
|
endif()
|