CMakeLists.txt 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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/lv_gui_config.h.in ${out_inc_dir}/lv_gui_config.h)
  12. set(target lvgl)
  13. #add_app_libraries($<TARGET_FILE:${target}>)
  14. add_library(${target} STATIC)
  15. set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${out_app_lib_dir})
  16. target_compile_definitions(${target} PRIVATE OSI_LOG_TAG=LOG_TAG_LVGL)
  17. target_include_directories(${target} PUBLIC ${CMAKE_CURRENT_SRC_DIR} lvgl include)
  18. #target_link_libraries(${target} PRIVATE kernel driver hal ql_api_common)
  19. target_sources(${target} PRIVATE
  20. lvgl/src/lv_core/lv_group.c
  21. lvgl/src/lv_core/lv_indev.c
  22. lvgl/src/lv_core/lv_disp.c
  23. lvgl/src/lv_core/lv_obj.c
  24. lvgl/src/lv_core/lv_refr.c
  25. lvgl/src/lv_core/lv_style.c
  26. lvgl/src/lv_core/lv_debug.c
  27. lvgl/src/lv_draw/lv_draw_basic.c
  28. lvgl/src/lv_draw/lv_draw.c
  29. lvgl/src/lv_draw/lv_draw_rect.c
  30. lvgl/src/lv_draw/lv_draw_label.c
  31. lvgl/src/lv_draw/lv_draw_line.c
  32. lvgl/src/lv_draw/lv_draw_img.c
  33. lvgl/src/lv_draw/lv_draw_arc.c
  34. lvgl/src/lv_draw/lv_draw_triangle.c
  35. lvgl/src/lv_draw/lv_img_decoder.c
  36. lvgl/src/lv_draw/lv_img_cache.c
  37. lvgl/src/lv_font/lv_font.c
  38. lvgl/src/lv_font/lv_font_fmt_txt.c
  39. lvgl/src/lv_font/lv_font_roboto_12.c
  40. lvgl/src/lv_font/lv_font_roboto_16.c
  41. lvgl/src/lv_font/lv_font_roboto_22.c
  42. lvgl/src/lv_font/lv_font_roboto_28.c
  43. lvgl/src/lv_font/lv_font_unscii_8.c
  44. lvgl/src/lv_hal/lv_hal_disp.c
  45. lvgl/src/lv_hal/lv_hal_indev.c
  46. lvgl/src/lv_hal/lv_hal_tick.c
  47. lvgl/src/lv_misc/lv_circ.c
  48. lvgl/src/lv_misc/lv_area.c
  49. lvgl/src/lv_misc/lv_task.c
  50. lvgl/src/lv_misc/lv_fs.c
  51. lvgl/src/lv_misc/lv_anim.c
  52. lvgl/src/lv_misc/lv_mem.c
  53. lvgl/src/lv_misc/lv_ll.c
  54. lvgl/src/lv_misc/lv_color.c
  55. lvgl/src/lv_misc/lv_txt.c
  56. lvgl/src/lv_misc/lv_math.c
  57. lvgl/src/lv_misc/lv_log.c
  58. lvgl/src/lv_misc/lv_gc.c
  59. lvgl/src/lv_misc/lv_utils.c
  60. lvgl/src/lv_misc/lv_async.c
  61. lvgl/src/lv_misc/lv_printf.c
  62. lvgl/src/lv_misc/lv_bidi.c
  63. lvgl/src/lv_objx/lv_arc.c
  64. lvgl/src/lv_objx/lv_bar.c
  65. lvgl/src/lv_objx/lv_cb.c
  66. lvgl/src/lv_objx/lv_cpicker.c
  67. lvgl/src/lv_objx/lv_ddlist.c
  68. lvgl/src/lv_objx/lv_kb.c
  69. lvgl/src/lv_objx/lv_line.c
  70. lvgl/src/lv_objx/lv_mbox.c
  71. lvgl/src/lv_objx/lv_preload.c
  72. lvgl/src/lv_objx/lv_roller.c
  73. lvgl/src/lv_objx/lv_table.c
  74. lvgl/src/lv_objx/lv_tabview.c
  75. lvgl/src/lv_objx/lv_tileview.c
  76. lvgl/src/lv_objx/lv_btn.c
  77. lvgl/src/lv_objx/lv_calendar.c
  78. lvgl/src/lv_objx/lv_chart.c
  79. lvgl/src/lv_objx/lv_canvas.c
  80. lvgl/src/lv_objx/lv_gauge.c
  81. lvgl/src/lv_objx/lv_label.c
  82. lvgl/src/lv_objx/lv_list.c
  83. lvgl/src/lv_objx/lv_slider.c
  84. lvgl/src/lv_objx/lv_ta.c
  85. lvgl/src/lv_objx/lv_spinbox.c
  86. lvgl/src/lv_objx/lv_btnm.c
  87. lvgl/src/lv_objx/lv_cont.c
  88. lvgl/src/lv_objx/lv_img.c
  89. lvgl/src/lv_objx/lv_imgbtn.c
  90. lvgl/src/lv_objx/lv_led.c
  91. lvgl/src/lv_objx/lv_lmeter.c
  92. lvgl/src/lv_objx/lv_page.c
  93. lvgl/src/lv_objx/lv_sw.c
  94. lvgl/src/lv_objx/lv_win.c
  95. lvgl/src/lv_themes/lv_theme_alien.c
  96. lvgl/src/lv_themes/lv_theme.c
  97. lvgl/src/lv_themes/lv_theme_default.c
  98. lvgl/src/lv_themes/lv_theme_night.c
  99. lvgl/src/lv_themes/lv_theme_templ.c
  100. lvgl/src/lv_themes/lv_theme_zen.c
  101. lvgl/src/lv_themes/lv_theme_material.c
  102. lvgl/src/lv_themes/lv_theme_nemo.c
  103. lvgl/src/lv_themes/lv_theme_mono.c
  104. )
  105. relative_glob(srcs include/*.h src/*.c inc/*.h)
  106. beautify_c_code(${target} ${srcs})