lvgl / lv_port_linux

LVGL configured to work with a standard Linux framebuffer
MIT License
260 stars 160 forks source link

fix(CMakeLists): add options to select backend #52

Open js214 opened 4 months ago

js214 commented 4 months ago

Add options USE_FBDEV, USE_DRM, USE_SDL2 to CMakeLists.txt to select the backend. Also change lv_conf.h to make fbdev the optional default.

Add option USE_THOR to CMakeLists.txt so as to make using thorvg optional. This way C++ is not required for building. Also change lv_conf.h to make building the internal ThorVG optional.

Mark lvgl as EXCLUDE_FROM_ALL in CMakeLists.txt so it does not get installed on the target when lv_port_linux is installed.

These changes are useful to enable including this package in buildroot (see issue #17).

YobeZhou commented 4 months ago

Hi,

Please check here: https://github.com/lvgl/lv_port_linux/pull/51/files