treewide: add Wayland and SDL2 backends
This commit is contained in:
parent
271cdf8534
commit
e69bcf5dc2
11 changed files with 44 additions and 3 deletions
|
|
@ -115,6 +115,7 @@ hostname=mydevice
|
|||
- [libinput] - Input device handling
|
||||
- [libudev] - Device enumeration
|
||||
- [libxkbcommon] - Keyboard layout support
|
||||
- [libdrm] - DRM backend
|
||||
- evdev kernel module
|
||||
|
||||
## Backends
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue