CMakeLists.txt 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Copyright (c) 2020 Actions Semiconductor Co., Ltd
  2. #
  3. # SPDX-License-Identifier: Apache-2.0
  4. if(CONFIG_ACTIONS_FRAMEWORK_DISPLAY)
  5. set(ZEPHYR_CURRENT_LIBRARY acts_display)
  6. add_library(acts_display INTERFACE)
  7. zephyr_include_directories(
  8. include
  9. )
  10. target_include_directories(acts_display INTERFACE
  11. include
  12. )
  13. zephyr_library()
  14. zephyr_library_sources_ifdef(CONFIG_UI_MANAGER ui_manager.c)
  15. zephyr_library_sources_ifdef(CONFIG_LED_MANAGER led_manager.c)
  16. zephyr_library_sources_ifdef(CONFIG_SEG_LED_MANAGER seg_led_manager.c)
  17. if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/libdisplay/CMakeLists.txt)
  18. add_subdirectory(libdisplay)
  19. else()
  20. zephyr_library_include_directories(${CMAKE_CURRENT_LIST_DIR})
  21. zephyr_library_import(display ${CMAKE_CURRENT_LIST_DIR}/libdisplay.a)
  22. endif()
  23. if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/libgui/CMakeLists.txt)
  24. add_subdirectory(libgui)
  25. else()
  26. zephyr_library_include_directories(${CMAKE_CURRENT_LIST_DIR})
  27. zephyr_library_import(gui ${CMAKE_CURRENT_LIST_DIR}/libdisplay_gui.a)
  28. endif()
  29. add_subdirectory(compression)
  30. add_subdirectory(font)
  31. add_subdirectory_ifdef(CONFIG_LVGL lvgl)
  32. add_subdirectory_ifdef(CONFIG_RES_MANAGER res_manager)
  33. add_subdirectory_ifdef(CONFIG_UI_MEMORY_MANAGER memory)
  34. add_subdirectory_ifdef(CONFIG_UI_MEMORY_MANAGER surface)
  35. add_subdirectory_ifdef(CONFIG_UI_SERVICE ui_service)
  36. add_subdirectory_ifdef(CONFIG_VG_LITE vg_lite)
  37. add_subdirectory_ifdef(CONFIG_TRANSITION_ANIM transition_anim)
  38. zephyr_library_link_libraries(acts_display)
  39. target_link_libraries(acts_display INTERFACE zephyr_interface)
  40. zephyr_library_link_libraries_ifdef(CONFIG_LVGL lvgl)
  41. zephyr_library_link_libraries_ifdef(CONFIG_VG_LITE vg_lite)
  42. zephyr_library_link_libraries_ifdef(CONFIG_FREETYPE_FONT freetype)
  43. endif()