2018-03-22 02:27:10 -04:00
|
|
|
if(CONFIG_AWS_IOT_SDK)
|
|
|
|
set(COMPONENT_ADD_INCLUDEDIRS "include aws-iot-device-sdk-embedded-C/include")
|
2018-09-12 20:52:32 -04:00
|
|
|
set(aws_sdk_src aws-iot-device-sdk-embedded-C/src)
|
|
|
|
set(COMPONENT_SRCS "${aws_sdk_src}/aws_iot_json_utils.c"
|
|
|
|
"${aws_sdk_src}/aws_iot_mqtt_client.c"
|
|
|
|
"${aws_sdk_src}/aws_iot_mqtt_client_common_internal.c"
|
|
|
|
"${aws_sdk_src}/aws_iot_mqtt_client_connect.c"
|
|
|
|
"${aws_sdk_src}/aws_iot_mqtt_client_publish.c"
|
|
|
|
"${aws_sdk_src}/aws_iot_mqtt_client_subscribe.c"
|
|
|
|
"${aws_sdk_src}/aws_iot_mqtt_client_unsubscribe.c"
|
|
|
|
"${aws_sdk_src}/aws_iot_mqtt_client_yield.c"
|
|
|
|
"${aws_sdk_src}/aws_iot_shadow.c"
|
|
|
|
"${aws_sdk_src}/aws_iot_shadow_actions.c"
|
|
|
|
"${aws_sdk_src}/aws_iot_shadow_json.c"
|
|
|
|
"${aws_sdk_src}/aws_iot_shadow_records.c"
|
|
|
|
"port/network_mbedtls_wrapper.c"
|
|
|
|
"port/threads_freertos.c"
|
|
|
|
"port/timer.c")
|
2018-03-22 02:27:10 -04:00
|
|
|
else()
|
|
|
|
message(STATUS "Building empty aws_iot component due to configuration")
|
2018-02-26 23:45:30 -05:00
|
|
|
endif()
|
2018-01-11 21:49:13 -05:00
|
|
|
|
2018-03-22 02:27:10 -04:00
|
|
|
set(COMPONENT_REQUIRES "mbedtls")
|
|
|
|
set(COMPONENT_PRIV_REQUIRES "jsmn")
|
2018-01-11 21:49:13 -05:00
|
|
|
|
|
|
|
register_component()
|