CMakeLists.txt 644 B

12345678910111213141516171819
  1. #
  2. # Copyright (c) 2020 Actions Semiconductor
  3. #
  4. # SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Actions
  5. #
  6. zephyr_sources(sw_math.c sw_blend.c sw_rotate.c)
  7. zephyr_sources_ifdef(CONFIG_UI_DMA_MEMSETCPY ui_memsetcpy.c)
  8. zephyr_sources_ifdef(CONFIG_DISPLAY_COMPOSER display_composer_opt.c)
  9. set(DISPLAY_COMPOSER_LIB_NAME display_composer)
  10. if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/composer/CMakeLists.txt)
  11. add_subdirectory(composer)
  12. else()
  13. zephyr_library_import(${DISPLAY_COMPOSER_LIB_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/lib${DISPLAY_COMPOSER_LIB_NAME}.a)
  14. endif()
  15. zephyr_link_libraries_ifdef(CONFIG_DISPLAY_COMPOSER ${DISPLAY_COMPOSER_LIB_NAME})