CMakeLists.txt 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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_ali_linkSDK)
  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 core core/utils core/sysdep components/bootstrap components/data-model components/devinfo components/logpost components/ntp components/ota components/shadow components/diag components/das components/das/inc components/das/inc/das components/das/src/board/freertos components/dynreg components/dynreg-mqtt components/subdev include )
  17. #target_link_libraries(${target} PRIVATE kernel driver hal ql_api_common)
  18. target_sources(${target} PRIVATE
  19. core/utils/core_auth.c
  20. core/utils/core_diag.c
  21. core/utils/core_global.c
  22. core/utils/core_http.c
  23. core/utils/core_sha256.c
  24. core/utils/core_string.c
  25. core/utils/core_log.c
  26. core/aiot_http_api.c
  27. core/aiot_mqtt_api.c
  28. core/aiot_state_api.c
  29. core/sysdep/core_sysdep.c
  30. external/ali_ca_cert.c
  31. components/bootstrap/aiot_bootstrap_api.c
  32. components/data-model/aiot_dm_api.c
  33. components/devinfo/aiot_devinfo_api.c
  34. components/logpost/aiot_logpost_api.c
  35. components/ntp/aiot_ntp_api.c
  36. components/ota/aiot_ota_api.c
  37. components/ota/ota_md5.c
  38. components/shadow/aiot_shadow_api.c
  39. components/diag/aiot_diag_api.c
  40. components/das/src/core/proto/lsoc.pb.c
  41. components/das/src/core/proto/pb_common.c
  42. components/das/src/core/proto/pb_decode.c
  43. components/das/src/core/proto/pb_encode.c
  44. components/das/src/core/das_core.c
  45. components/das/src/core/das_attest.c
  46. components/das/src/core/sha1.c
  47. components/das/src/core/utils.c
  48. components/das/src/service/service.c
  49. components/das/src/service/service_lwip_nfi.c
  50. components/das/src/service/service_rom.c
  51. components/das/src/service/service_sys.c
  52. components/das/aiot_das_api.c
  53. components/dynreg/aiot_dynreg_api.c
  54. components/dynreg-mqtt/aiot_dynregmq_api.c
  55. components/subdev/aiot_subdev_api.c
  56. portfiles/adapt_ql_port.c
  57. demos/mqtt_basic_demo.c
  58. demos/bootstrap_posix_demo.c
  59. demos/cota_basic_demo.c
  60. demos/das_basic_demo.c
  61. demos/data_model_basic_demo.c
  62. demos/devinfo_posix_demo.c
  63. demos/diag_basic_demo.c
  64. demos/dynreg_basic_demo.c
  65. demos/dynregmq_basic_demo.c
  66. demos/fota_basic_demo.c
  67. demos/http_basic_demo.c
  68. demos/logpost_basic_demo.c
  69. demos/mqtt_broadcast_demo.c
  70. demos/mqtt_rrpc_demo.c
  71. demos/ntp_posix_demo.c
  72. demos/shadow_basic_demo.c
  73. )
  74. relative_glob(srcs include/*.h src/*.c inc/*.h)
  75. beautify_c_code(${target} ${srcs})