CMakeLists.txt 530 B

12345678910111213141516171819202122232425
  1. # Copyright (c) 2020 Actions Semiconductor Co., Ltd
  2. #
  3. # SPDX-License-Identifier: Apache-2.0
  4. SET(LIB_NAME minlzma)
  5. SET(ZEPHYR_CURRENT_LIBRARY ${LIB_NAME})
  6. #SET(LIBRARY_OUTPUT_PATH "${CMAKE_CURRENT_LIST_DIR}/../")
  7. zephyr_include_directories(./)
  8. zephyr_library_named(${LIB_NAME})
  9. zephyr_library_compile_options(-DCC_${LIB_NAME} -O3)
  10. zephyr_library_sources_ifdef(CONFIG_OTA_UPGRADE
  11. dictbuf.c
  12. inputbuf.c
  13. lzma2dec.c
  14. lzmadec.c
  15. rangedec.c
  16. xzcrc.c
  17. xzstream.c
  18. )
  19. target_link_libraries(${LIB_NAME} INTERFACE zephyr_interface)