weston: add support for X11 backend
PATCH 1/3 weston: add support for X11 backend
Signed-off-by Gustavo Zacarias <[email protected]>
--- package/weston/Config.in | 10 ++++++++++ package/weston/weston.mk | 10 +++++++++- 2 files changed, 19 insertions(+), 1 deletion(-)
package/weston/Config.in +10 -0
@@ -82,4 +82,14 @@ config BR2_PACKAGE_WESTON_RPI depends on BR2_PACKAGE_RPI_USERLAND select BR2_PACKAGE_WESTON_HAS_COMPOSITOR +config BR2_PACKAGE_WESTON_X11 + bool "X11 compositor" + depends on BR2_PACKAGE_XORG7 + select BR2_PACKAGE_LIBXCB + select BR2_PACKAGE_XLIB_LIBX11 + select BR2_PACKAGE_WESTON_HAS_COMPOSITOR + +comment "X11 compositor needs X.org enabled" + depends on !BR2_PACKAGE_XORG7 + endif
package/weston/weston.mk +9 -1
@@ -19,7 +19,6 @@ WESTON_DEPENDENCIES = host-pkgconf wayland wayland-protocols \ WESTON_CONF_OPTS = \ --with-dtddir=$(STAGING_DIR)/usr/share/wayland \ --disable-xwayland \ - --disable-x11-compositor \ --disable-wayland-compositor \ --disable-headless-compositor \ --disable-colord \
@@ -103,6 +102,15 @@ else WESTON_CONF_OPTS += --disable-rpi-compositor endif # BR2_PACKAGE_WESTON_RPI +ifeq ($(BR2_PACKAGE_WESTON_X11),y) +WESTON_CONF_OPTS += \ + --enable-x11-compositor \ + WESTON_NATIVE_BACKEND=x11-backend.so +WESTON_DEPENDENCIES += libxcb xlib_libX11 +else +WESTON_CONF_OPTS += --disable-x11-compositor +endif + ifeq ($(BR2_PACKAGE_LIBVA),y) WESTON_CONF_OPTS += --enable-vaapi-recorder WESTON_DEPENDENIES += libva
Signature · 1 line
2.7.3
PATCH 2/3 weston: add support for XWayland
Signed-off-by Gustavo Zacarias <[email protected]>
--- package/weston/Config.in | 12 ++++++++++++ package/weston/weston.mk | 8 +++++++- 2 files changed, 19 insertions(+), 1 deletion(-)
package/weston/Config.in +12 -0
@@ -92,4 +92,16 @@ config BR2_PACKAGE_WESTON_X11 comment "X11 compositor needs X.org enabled" depends on !BR2_PACKAGE_XORG7 +config BR2_PACKAGE_WESTON_XWAYLAND + bool "XWayland support" + depends on BR2_PACKAGE_XORG7 + depends on BR2_PACKAGE_LIBEPOXY + select BR2_PACKAGE_CAIRO + select BR2_PACKAGE_LIBXCB + select BR2_PACKAGE_XLIB_LIBX11 + select BR2_PACKAGE_XLIB_LIBXCURSOR + +comment "XWayland support needs libepoxy and X.org enabled" + depends on !BR2_PACKAGE_XORG7 || !BR2_PACKAGE_LIBEPOXY + endif
package/weston/weston.mk +7 -1
@@ -18,7 +18,6 @@ WESTON_DEPENDENCIES = host-pkgconf wayland wayland-protocols \ WESTON_CONF_OPTS = \ --with-dtddir=$(STAGING_DIR)/usr/share/wayland \ - --disable-xwayland \ --disable-wayland-compositor \ --disable-headless-compositor \ --disable-colord \
@@ -111,6 +110,13 @@ else WESTON_CONF_OPTS += --disable-x11-compositor endif +ifeq ($(BR2_PACKAGE_WESTON_XWAYLAND),y) +WESTON_CONF_OPTS += --enable-xwayland +WESTON_DEPENDENCIES += cairo libepoxy libxcb xlib_libX11 xlib_libXcursor +else +WESTON_CONF_OPTS += --disable-xwayland +endif + ifeq ($(BR2_PACKAGE_LIBVA),y) WESTON_CONF_OPTS += --enable-vaapi-recorder WESTON_DEPENDENIES += libva
Signature · 1 line
2.7.3
PATCH 3/3 weston: enable nested wayland compositor
In reply to Gustavo ZacariasIt may be useful in some scenarios and size growth is marginal at best.
Signed-off-by Gustavo Zacarias <[email protected]>
--- package/weston/weston.mk | 1 - 1 file changed, 1 deletion(-)
package/weston/weston.mk +0 -1
@@ -18,7 +18,6 @@ WESTON_DEPENDENCIES = host-pkgconf wayland wayland-protocols \ WESTON_CONF_OPTS = \ --with-dtddir=$(STAGING_DIR)/usr/share/wayland \ - --disable-wayland-compositor \ --disable-headless-compositor \ --disable-colord \ --disable-setuid-install
Signature · 1 line
2.7.3
PATCH 1/3 weston: add support for X11 backend
In reply to Gustavo ZacariasHello,
Quoted 5 lines · Gustavo Zacarias
Signed-off-by Gustavo Zacarias <[email protected]>--- package/weston/Config.in | 10 ++++++++++ package/weston/weston.mk | 10 +++++++++- 2 files changed, 19 insertions(+), 1 deletion(-)
Series applied to next, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com