treewide: add Wayland and SDL2 backends

This commit is contained in:
Dylan Van Assche 2025-11-29 21:37:51 +01:00 committed by Johannes Marbach
parent 271cdf8534
commit e69bcf5dc2
11 changed files with 44 additions and 3 deletions

View file

@ -115,6 +115,7 @@ hostname=mydevice
- [libinput] - Input device handling
- [libudev] - Device enumeration
- [libxkbcommon] - Keyboard layout support
- [libdrm] - DRM backend
- evdev kernel module
## Backends

View file

@ -1159,7 +1159,8 @@
*==================*/
/** Use SDL to open window on PC and handle mouse and keyboard. */
#define LV_USE_SDL 0
// LV_USE_SDL is defined dynamically via meson.build so we must not define it here
// #define LV_USE_SDL 0
#if LV_USE_SDL
#define LV_SDL_INCLUDE_PATH <SDL2/SDL.h>
#define LV_SDL_RENDER_MODE LV_DISPLAY_RENDER_MODE_DIRECT /**< LV_DISPLAY_RENDER_MODE_DIRECT is recommended for best performance */
@ -1231,6 +1232,7 @@
#endif
/** Driver for /dev/dri/card */
// LV_USE_LINUX_DRM is defined dynamically via meson.build so we must not define it here
//#define LV_USE_LINUX_DRM 0
#if LV_USE_LINUX_DRM

View file

@ -23,6 +23,13 @@ else
f0rmz_args += '-DLV_USE_LINUX_DRM=0'
endif
if deplibsdl.found()
f0rmz_dependencies += deplibsdl
f0rmz_args += '-DLV_USE_SDL=1'
else
f0rmz_args += '-DLV_USE_SDL=0'
endif
executable('f0rmz',
include_directories: common_include_dirs,
sources: f0rmz_sources + shared_sources + shared_sources_ul_f0 + squeek2lvgl_sources + lvgl_sources,