package/wlroots: add XWayland support

The new option enables the XWayland support, so X11 application can be
running on a wlroots based compositor. Also, do not enable the XWayland
support if the X11 backend is active, as it is unrelated to it.

Signed-off-by: Raphael Pavlidis <raphael.pavlidis@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Raphael Pavlidis 2023-02-16 19:33:22 +01:00 committed by Peter Korsgaard
parent df4f7f8e85
commit 5945a71d87
2 changed files with 24 additions and 1 deletions

View File

@ -41,4 +41,23 @@ config BR2_PACKAGE_WLROOTS_X11
help
Support Wayland sessions nested inside a X11 window
config BR2_PACKAGE_WLROOTS_XWAYLAND
bool "XWayland support"
depends on BR2_PACKAGE_XORG7 # libxcb, xcb-util-wm, xwayland
depends on BR2_USE_MMU # xwayland
depends on !BR2_STATIC_LIBS # xwayland
depends on BR2_TOOLCHAIN_HAS_THREADS # xwayland
select BR2_PACKAGE_LIBXCB
select BR2_PACKAGE_XCB_UTIL_WM
select BR2_PACKAGE_XWAYLAND
help
Support for running X11 applications under wayland
comment "XWayland support needs X.org enabled"
depends on !BR2_PACKAGE_XORG7
comment "XWayland support needs a toolchain w/ threads, dynamic library"
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
endif

View File

@ -30,8 +30,12 @@ WLROOTS_BACKENDS = libinput drm
ifeq ($(BR2_PACKAGE_WLROOTS_X11),y)
WLROOTS_BACKENDS += x11
WLROOTS_CONF_OPTS += -Dxwayland=enabled
WLROOTS_DEPENDENCIES += libxcb xcb-util-wm xcb-util-renderutil xlib_libX11
endif
ifeq ($(BR2_PACKAGE_WLROOTS_XWAYLAND),y)
WLROOTS_CONF_OPTS += -Dxwayland=enabled
WLROOTS_DEPENDENCIES += libxcb xcb-util-wm xwayland
else
WLROOTS_CONF_OPTS += -Dxwayland=disabled
endif