1# Copyright (c) 2019 jan.van_winkel@dxplore.eu
2# Copyright (c) 2020 Teslabs Engineering S.L.
3#
4# SPDX-License-Identifier: Apache-2.0
5
6if(CONFIG_LVGL)
7
8set(ZEPHYR_CURRENT_LIBRARY lvgl)
9include_directories(${ZEPHYR_BASE}/lib/gui/lvgl)
10
11target_include_directories(lvgl INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
12
13zephyr_compile_definitions(LV_CONF_INCLUDE_SIMPLE=1)
14
15zephyr_library()
16
17zephyr_library_sources(
18    src/lv_core/lv_disp.c
19    src/lv_core/lv_group.c
20    src/lv_core/lv_indev.c
21    src/lv_core/lv_obj.c
22    src/lv_core/lv_refr.c
23    src/lv_core/lv_style.c
24
25    src/lv_draw/lv_draw_arc.c
26    src/lv_draw/lv_draw_blend.c
27    src/lv_draw/lv_draw_img.c
28    src/lv_draw/lv_draw_label.c
29    src/lv_draw/lv_draw_line.c
30    src/lv_draw/lv_draw_mask.c
31    src/lv_draw/lv_draw_rect.c
32    src/lv_draw/lv_draw_triangle.c
33    src/lv_draw/lv_img_buf.c
34    src/lv_draw/lv_img_cache.c
35    src/lv_draw/lv_img_decoder.c
36
37    src/lv_hal/lv_hal_disp.c
38    src/lv_hal/lv_hal_indev.c
39    src/lv_hal/lv_hal_tick.c
40
41    src/lv_misc/lv_anim.c
42    src/lv_misc/lv_area.c
43    src/lv_misc/lv_async.c
44    src/lv_misc/lv_bidi.c
45    src/lv_misc/lv_color.c
46    src/lv_misc/lv_debug.c
47    src/lv_misc/lv_fs.c
48    src/lv_misc/lv_gc.c
49    src/lv_misc/lv_ll.c
50    src/lv_misc/lv_log.c
51    src/lv_misc/lv_math.c
52    src/lv_misc/lv_mem.c
53    src/lv_misc/lv_printf.c
54    src/lv_misc/lv_task.c
55    src/lv_misc/lv_templ.c
56    src/lv_misc/lv_txt.c
57    src/lv_misc/lv_txt_ap.c
58    src/lv_misc/lv_utils.c
59
60    src/lv_font/lv_font.c
61    src/lv_font/lv_font_dejavu_16_persian_hebrew.c
62    src/lv_font/lv_font_fmt_txt.c
63    src/lv_font/lv_font_loader.c
64    src/lv_font/lv_font_montserrat_12.c
65    src/lv_font/lv_font_montserrat_12_subpx.c
66    src/lv_font/lv_font_montserrat_14.c
67    src/lv_font/lv_font_montserrat_16.c
68    src/lv_font/lv_font_montserrat_18.c
69    src/lv_font/lv_font_montserrat_20.c
70    src/lv_font/lv_font_montserrat_22.c
71    src/lv_font/lv_font_montserrat_24.c
72    src/lv_font/lv_font_montserrat_26.c
73    src/lv_font/lv_font_montserrat_28.c
74    src/lv_font/lv_font_montserrat_28_compressed.c
75    src/lv_font/lv_font_montserrat_30.c
76    src/lv_font/lv_font_montserrat_32.c
77    src/lv_font/lv_font_montserrat_34.c
78    src/lv_font/lv_font_montserrat_36.c
79    src/lv_font/lv_font_montserrat_38.c
80    src/lv_font/lv_font_montserrat_40.c
81    src/lv_font/lv_font_montserrat_42.c
82    src/lv_font/lv_font_montserrat_44.c
83    src/lv_font/lv_font_montserrat_46.c
84    src/lv_font/lv_font_montserrat_48.c
85    src/lv_font/lv_font_simsun_16_cjk.c
86    src/lv_font/lv_font_unscii_8.c
87
88    src/lv_themes/lv_theme.c
89    src/lv_themes/lv_theme_empty.c
90    src/lv_themes/lv_theme_material.c
91    src/lv_themes/lv_theme_mono.c
92
93    src/lv_widgets/lv_arc.c
94    src/lv_widgets/lv_bar.c
95    src/lv_widgets/lv_btn.c
96    src/lv_widgets/lv_btnmatrix.c
97    src/lv_widgets/lv_calendar.c
98    src/lv_widgets/lv_canvas.c
99    src/lv_widgets/lv_chart.c
100    src/lv_widgets/lv_checkbox.c
101    src/lv_widgets/lv_cont.c
102    src/lv_widgets/lv_cpicker.c
103    src/lv_widgets/lv_dropdown.c
104    src/lv_widgets/lv_gauge.c
105    src/lv_widgets/lv_img.c
106    src/lv_widgets/lv_imgbtn.c
107    src/lv_widgets/lv_keyboard.c
108    src/lv_widgets/lv_label.c
109    src/lv_widgets/lv_led.c
110    src/lv_widgets/lv_line.c
111    src/lv_widgets/lv_linemeter.c
112    src/lv_widgets/lv_list.c
113    src/lv_widgets/lv_msgbox.c
114    src/lv_widgets/lv_objmask.c
115    src/lv_widgets/lv_page.c
116    src/lv_widgets/lv_roller.c
117    src/lv_widgets/lv_slider.c
118    src/lv_widgets/lv_spinbox.c
119    src/lv_widgets/lv_spinner.c
120    src/lv_widgets/lv_switch.c
121    src/lv_widgets/lv_table.c
122    src/lv_widgets/lv_tabview.c
123    src/lv_widgets/lv_textarea.c
124    src/lv_widgets/lv_tileview.c
125    src/lv_widgets/lv_win.c
126)
127
128endif()
129