CMakeLists.txt 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. # All rights reserved.
  3. #
  4. # This software is supplied "AS IS" without any warranties.
  5. # RDA assumes no responsibility or liability for the use of the software,
  6. # conveys no license or title under any patent, copyright, or mask work
  7. # right to the product. RDA reserves the right to make changes in the
  8. # software without notification. RDA also make no representation or
  9. # warranty that such application will be suitable for the specified use
  10. # without further testing or modification.
  11. #configure_file(include/lv_gui_config.h.in ${out_inc_dir}/lv_gui_config.h)
  12. set(target ql_qcloud_iot)
  13. add_library(${target} STATIC)
  14. set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${out_app_lib_dir})
  15. target_compile_definitions(${target} PRIVATE OSI_LOG_TAG=LOG_TAG_ALIYUN)
  16. target_include_directories(${target} PUBLIC inc include include/exports platform platform/os/qlrtos platform/tls/mbedtls samples samples/data_template samples/dynreg_dev samples/gateway samples/mqtt samples/raw_data samples/scenarized sdk_src sdk_src/internal_inc sdk_src/network sdk_src/network/socket sdk_src/network/tls sdk_src/protocol sdk_src/protocol/mqtt sdk_src/protocol/http sdk_src/services sdk_src/services/data_template sdk_src/services/dynreg sdk_src/services/gateway sdk_src/services/log sdk_src/services/ota sdk_src/services/system sdk_src/utils)
  17. #target_link_libraries(${target} PRIVATE kernel driver hal ql_api_common)
  18. target_sources(${target} PRIVATE
  19. platform/os/qlrtos/HAL_AT_UART_qlrtos.c
  20. platform/os/qlrtos/HAL_Device_qlrtos.c
  21. platform/os/qlrtos/HAL_Log_qlrtos.c
  22. platform/os/qlrtos/HAL_OS_qlrtos.c
  23. platform/os/qlrtos/HAL_TCP_qlrtos.c
  24. platform/os/qlrtos/HAL_Timer_qlrtos.c
  25. platform/os/qlrtos/HAL_UDP_qlrtos.c
  26. #platform/tls/mbedtls/HAL_DTLS_mbedtls.c
  27. #platform/tls/mbedtls/HAL_TLS_mbedtls.c
  28. #samples/data_template/action_config.c
  29. #samples/data_template/data_config.c
  30. samples/data_template/data_template_sample.c
  31. #samples/data_template/events_config.c
  32. samples/dynreg_dev/dynreg_dev_sample.c
  33. samples/gateway/gateway_sample.c
  34. samples/gateway/sub_dev001.c
  35. samples/mqtt/mqtt_sample.c
  36. samples/ota/ota_mqtt_sample.c
  37. samples/raw_data/raw_data_sample.c
  38. samples/scenarized/light_data_template_sample.c
  39. sdk_src/network/socket/network_socket.c
  40. sdk_src/network/tls/network_tls.c
  41. sdk_src/network/network_interface.c
  42. sdk_src/protocol/http/utils_httpc.c
  43. sdk_src/protocol/mqtt/mqtt_client.c
  44. sdk_src/protocol/mqtt/mqtt_client_common.c
  45. sdk_src/protocol/mqtt/mqtt_client_connect.c
  46. sdk_src/protocol/mqtt/mqtt_client_net.c
  47. sdk_src/protocol/mqtt/mqtt_client_publish.c
  48. sdk_src/protocol/mqtt/mqtt_client_subscribe.c
  49. sdk_src/protocol/mqtt/mqtt_client_unsubscribe.c
  50. sdk_src/protocol/mqtt/mqtt_client_yield.c
  51. sdk_src/services/data_template/data_template_aciton.c
  52. sdk_src/services/data_template/data_template_client.c
  53. sdk_src/services/data_template/data_template_client_common.c
  54. sdk_src/services/data_template/data_template_client_json.c
  55. sdk_src/services/data_template/data_template_client_manager.c
  56. sdk_src/services/data_template/data_template_event.c
  57. sdk_src/services/dynreg/dynreg.c
  58. sdk_src/services/gateway/gateway_api.c
  59. sdk_src/services/gateway/gateway_common.c
  60. sdk_src/services/log/log_mqtt.c
  61. sdk_src/services/log/log_upload.c
  62. sdk_src/services/ota/ota_client.c
  63. sdk_src/services/ota/ota_fetch.c
  64. sdk_src/services/ota/ota_lib.c
  65. sdk_src/services/ota/ota_mqtt.c
  66. sdk_src/services/system/system_mqtt.c
  67. sdk_src/utils/json_parser.c
  68. sdk_src/utils/json_token.c
  69. sdk_src/utils/qcloud_iot_ca.c
  70. sdk_src/utils/qcloud_iot_device.c
  71. sdk_src/utils/qcloud_iot_log.c
  72. sdk_src/utils/string_utils.c
  73. sdk_src/utils/utils_aes.c
  74. sdk_src/utils/utils_base64.c
  75. sdk_src/utils/utils_getopt.c
  76. sdk_src/utils/utils_hmac.c
  77. sdk_src/utils/utils_list.c
  78. sdk_src/utils/utils_md5.c
  79. sdk_src/utils/utils_ringbuff.c
  80. sdk_src/utils/utils_sha1.c
  81. sdk_src/utils/utils_timer.c
  82. )
  83. relative_glob(srcs include/*.h src/*.c inc/*.h)
  84. beautify_c_code(${target} ${srcs})