CMakeLists.txt 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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/fota_config.h.in ${BINARY_TOP_DIR}/include/fota_config.h)
  12. set(target api)
  13. add_library(${target} STATIC)
  14. set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${out_hex_dir})
  15. target_link_libraries(${target} PRIVATE ${libc_file_name} ${libm_file_name} ${libgcc_file_name})
  16. #target_link_libraries(${target} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../components/lib/libopenat.a)
  17. #设置包�头文�
  18. target_include_directories(${target} PUBLIC include)
  19. target_include_directories(${target} PRIVATE ../components/include)
  20. target_include_directories(${target} PRIVATE ../components/newlib/include)
  21. target_include_directories(${target} PRIVATE ../components/openat_inc)
  22. target_include_directories(${target} PRIVATE ../components/ril/inc)
  23. target_link_libraries(${target} PRIVATE ril)
  24. target_sources(${target} PRIVATE
  25. src/iot_os.c
  26. src/iot_debug.c
  27. src/iot_gpio.c
  28. src/iot_fs.c
  29. src/iot_uart.c
  30. src/iot_flash.c
  31. src/iot_adc.c
  32. src/iot_i2c.c
  33. src/iot_pmd.c
  34. src/iot_keypad.c
  35. src/iot_network.c
  36. src/iot_spi.c
  37. src/iot_sys.c
  38. src/iot_vat.c
  39. src/iot_socket.c
  40. src/iot_lcd.c
  41. src/iot_zbar.c
  42. src/iot_camera.c
  43. src/iot_tts.c
  44. src/iot_audio.c
  45. )