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) 10zephyr_include_directories(../src/) 11 12zephyr_interface_library_named(LVGL) 13 14zephyr_compile_definitions(LV_CONF_INCLUDE_SIMPLE=1) 15zephyr_compile_definitions(LV_CONF_PATH=../zephyr/lv_conf.h) 16 17zephyr_library() 18 19zephyr_library_sources( 20 ../src/core/lv_refr.c 21 ../src/core/lv_indev.c 22 ../src/core/lv_group.c 23 ../src/core/lv_obj_style.c 24 ../src/core/lv_obj.c 25 ../src/core/lv_theme.c 26 ../src/core/lv_obj_scroll.c 27 ../src/core/lv_obj_class.c 28 ../src/core/lv_obj_draw.c 29 ../src/core/lv_obj_pos.c 30 ../src/core/lv_indev_scroll.c 31 ../src/core/lv_disp.c 32 ../src/core/lv_obj_tree.c 33 ../src/core/lv_obj_style_gen.c 34 ../src/core/lv_event.c 35 36 ../src/hal/lv_hal_tick.c 37 ../src/hal/lv_hal_disp.c 38 ../src/hal/lv_hal_indev.c 39 40 ../src/widgets/lv_canvas.c 41 ../src/widgets/lv_table.c 42 ../src/widgets/lv_slider.c 43 ../src/widgets/lv_label.c 44 ../src/widgets/lv_roller.c 45 ../src/widgets/lv_btn.c 46 ../src/widgets/lv_switch.c 47 ../src/widgets/lv_dropdown.c 48 ../src/widgets/lv_arc.c 49 ../src/widgets/lv_img.c 50 ../src/widgets/lv_bar.c 51 ../src/widgets/lv_textarea.c 52 ../src/widgets/lv_checkbox.c 53 ../src/widgets/lv_btnmatrix.c 54 ../src/widgets/lv_objx_templ.c 55 ../src/widgets/lv_line.c 56 57 ../src/misc/lv_area.c 58 ../src/misc/lv_bidi.c 59 ../src/misc/lv_color.c 60 ../src/misc/lv_style_gen.c 61 ../src/misc/lv_async.c 62 ../src/misc/lv_timer.c 63 ../src/misc/lv_gc.c 64 ../src/misc/lv_math.c 65 ../src/misc/lv_printf.c 66 ../src/misc/lv_style.c 67 ../src/misc/lv_txt.c 68 ../src/misc/lv_templ.c 69 ../src/misc/lv_anim_timeline.c 70 ../src/misc/lv_mem.c 71 ../src/misc/lv_lru.c 72 ../src/misc/lv_utils.c 73 ../src/misc/lv_anim.c 74 ../src/misc/lv_log.c 75 ../src/misc/lv_txt_ap.c 76 ../src/misc/lv_fs.c 77 ../src/misc/lv_ll.c 78 ../src/misc/lv_tlsf.c 79 80 ../src/draw/lv_draw_label.c 81 ../src/draw/lv_draw_triangle.c 82 ../src/draw/lv_img_decoder.c 83 ../src/draw/lv_draw_img.c 84 ../src/draw/lv_img_cache.c 85 ../src/draw/nxp_vglite/lv_gpu_nxp_vglite.c 86 ../src/draw/lv_draw_line.c 87 ../src/draw/nxp_pxp/lv_gpu_nxp_pxp.c 88 ../src/draw/nxp_pxp/lv_gpu_nxp_pxp_osa.c 89 ../src/draw/lv_draw.c 90 ../src/draw/sdl/lv_draw_sdl_img.c 91 ../src/draw/sdl/lv_draw_sdl_composite.c 92 ../src/draw/sdl/lv_draw_sdl_polygon.c 93 ../src/draw/sdl/lv_draw_sdl_utils.c 94 ../src/draw/sdl/lv_draw_sdl_texture_cache.c 95 ../src/draw/sdl/lv_draw_sdl.c 96 ../src/draw/sdl/lv_draw_sdl_bg.c 97 ../src/draw/sdl/lv_draw_sdl_arc.c 98 ../src/draw/sdl/lv_draw_sdl_rect.c 99 ../src/draw/sdl/lv_draw_sdl_label.c 100 ../src/draw/sdl/lv_draw_sdl_stack_blur.c 101 ../src/draw/sdl/lv_draw_sdl_mask.c 102 ../src/draw/sdl/lv_draw_sdl_line.c 103 ../src/draw/lv_img_buf.c 104 ../src/draw/lv_draw_mask.c 105 ../src/draw/stm32_dma2d/lv_gpu_stm32_dma2d.c 106 ../src/draw/lv_draw_arc.c 107 ../src/draw/lv_draw_rect.c 108 ../src/draw/sw/lv_draw_sw_img.c 109 ../src/draw/sw/lv_draw_sw.c 110 ../src/draw/sw/lv_draw_sw_arc.c 111 ../src/draw/sw/lv_draw_sw_line.c 112 ../src/draw/sw/lv_draw_sw_polygon.c 113 ../src/draw/sw/lv_draw_sw_rect.c 114 ../src/draw/sw/lv_draw_sw_letter.c 115 ../src/draw/sw/lv_draw_sw_blend.c 116 ../src/draw/sw/lv_draw_sw_dither.c 117 ../src/draw/sw/lv_draw_sw_gradient.c 118 119 ../src/font/lv_font_montserrat_32.c 120 ../src/font/lv_font.c 121 ../src/font/lv_font_montserrat_8.c 122 ../src/font/lv_font_unscii_8.c 123 ../src/font/lv_font_montserrat_46.c 124 ../src/font/lv_font_montserrat_12_subpx.c 125 ../src/font/lv_font_montserrat_24.c 126 ../src/font/lv_font_montserrat_40.c 127 ../src/font/lv_font_loader.c 128 ../src/font/lv_font_montserrat_28_compressed.c 129 ../src/font/lv_font_fmt_txt.c 130 ../src/font/lv_font_montserrat_18.c 131 ../src/font/lv_font_montserrat_20.c 132 ../src/font/lv_font_montserrat_34.c 133 ../src/font/lv_font_montserrat_42.c 134 ../src/font/lv_font_montserrat_30.c 135 ../src/font/lv_font_montserrat_28.c 136 ../src/font/lv_font_dejavu_16_persian_hebrew.c 137 ../src/font/lv_font_montserrat_38.c 138 ../src/font/lv_font_montserrat_16.c 139 ../src/font/lv_font_montserrat_10.c 140 ../src/font/lv_font_simsun_16_cjk.c 141 ../src/font/lv_font_montserrat_26.c 142 ../src/font/lv_font_montserrat_48.c 143 ../src/font/lv_font_montserrat_14.c 144 ../src/font/lv_font_unscii_16.c 145 ../src/font/lv_font_montserrat_36.c 146 ../src/font/lv_font_montserrat_44.c 147 ../src/font/lv_font_montserrat_22.c 148 ../src/font/lv_font_montserrat_12.c 149 150 ../src/extra/lv_extra.c 151 ../src/extra/themes/basic/lv_theme_basic.c 152 ../src/extra/themes/mono/lv_theme_mono.c 153 ../src/extra/themes/default/lv_theme_default.c 154 ../src/extra/libs/sjpg/tjpgd.c 155 ../src/extra/libs/sjpg/lv_sjpg.c 156 ../src/extra/libs/ffmpeg/lv_ffmpeg.c 157 ../src/extra/libs/freetype/lv_freetype.c 158 ../src/extra/libs/qrcode/lv_qrcode.c 159 ../src/extra/libs/qrcode/qrcodegen.c 160 ../src/extra/libs/fsdrv/lv_fs_win32.c 161 ../src/extra/libs/fsdrv/lv_fs_fatfs.c 162 ../src/extra/libs/fsdrv/lv_fs_posix.c 163 ../src/extra/libs/fsdrv/lv_fs_stdio.c 164 ../src/extra/libs/gif/lv_gif.c 165 ../src/extra/libs/gif/gifdec.c 166 ../src/extra/libs/bmp/lv_bmp.c 167 ../src/extra/libs/png/lv_png.c 168 ../src/extra/libs/png/lodepng.c 169 ../src/extra/libs/rlottie/lv_rlottie.c 170 ../src/extra/widgets/menu/lv_menu.c 171 ../src/extra/widgets/chart/lv_chart.c 172 ../src/extra/widgets/spinner/lv_spinner.c 173 ../src/extra/widgets/spinbox/lv_spinbox.c 174 ../src/extra/widgets/colorwheel/lv_colorwheel.c 175 ../src/extra/widgets/meter/lv_meter.c 176 ../src/extra/widgets/list/lv_list.c 177 ../src/extra/widgets/msgbox/lv_msgbox.c 178 ../src/extra/widgets/animimg/lv_animimg.c 179 ../src/extra/widgets/win/lv_win.c 180 ../src/extra/widgets/tileview/lv_tileview.c 181 ../src/extra/widgets/span/lv_span.c 182 ../src/extra/widgets/calendar/lv_calendar.c 183 ../src/extra/widgets/calendar/lv_calendar_header_dropdown.c 184 ../src/extra/widgets/calendar/lv_calendar_header_arrow.c 185 ../src/extra/widgets/tabview/lv_tabview.c 186 ../src/extra/widgets/led/lv_led.c 187 ../src/extra/widgets/imgbtn/lv_imgbtn.c 188 ../src/extra/widgets/keyboard/lv_keyboard.c 189 ../src/extra/layouts/grid/lv_grid.c 190 ../src/extra/layouts/flex/lv_flex.c 191 ../src/extra/others/monkey/lv_monkey.c 192 ../src/extra/others/gridnav/lv_gridnav.c 193 ../src/extra/others/snapshot/lv_snapshot.c 194 195 lvgl.c 196 lvgl_display.c 197 lvgl_display_mono.c 198 lvgl_display_16bit.c 199 lvgl_display_24bit.c 200 lvgl_display_32bit.c 201 lvgl_display_mono.c 202) 203 204zephyr_library_sources_ifdef(CONFIG_LV_Z_USE_FILESYSTEM lvgl_fs.c) 205zephyr_library_sources_ifdef(CONFIG_LV_Z_MEM_POOL_SYS_HEAP lvgl_mem.c) 206 207zephyr_library_link_libraries(LVGL) 208target_link_libraries(LVGL INTERFACE zephyr_interface) 209 210endif() 211