CMakeLists.txt 534 B

123456789101112131415161718
  1. # Copyright (c) 2020 Actions Semiconductor Co., Ltd
  2. #
  3. # SPDX-License-Identifier: Apache-2.0
  4. if (CONFIG_BITMAP_FONT OR CONFIG_FREETYPE_FONT)
  5. zephyr_library_sources(font_mempool.c)
  6. endif()
  7. add_subdirectory_ifdef(CONFIG_BITMAP_FONT bitmap_font)
  8. if (CONFIG_FREETYPE_FONT)
  9. if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/freetype/CMakeLists.txt)
  10. add_subdirectory(freetype)
  11. else()
  12. zephyr_library_include_directories(${CMAKE_CURRENT_LIST_DIR}/../)
  13. zephyr_library_import(freetype ${CMAKE_CURRENT_LIST_DIR}/../libfreetype.a)
  14. endif()
  15. endif()