2015-07-15 20:11:43 +02:00
|
|
|
comment "weston needs udev and a toolchain w/ locale, threads, dynamic library, headers >= 3.0"
|
2014-09-28 10:48:14 +02:00
|
|
|
depends on !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_HAS_THREADS || \
|
2015-07-15 20:11:43 +02:00
|
|
|
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 || BR2_STATIC_LIBS || \
|
|
|
|
!BR2_ENABLE_LOCALE
|
2013-04-29 12:26:05 +02:00
|
|
|
|
|
|
|
config BR2_PACKAGE_WESTON
|
|
|
|
bool "weston"
|
|
|
|
select BR2_PACKAGE_WAYLAND
|
2016-03-09 10:58:45 +01:00
|
|
|
select BR2_PACKAGE_WAYLAND_PROTOCOLS
|
2014-06-09 14:15:39 +02:00
|
|
|
select BR2_PACKAGE_LIBXKBCOMMON
|
2013-04-29 12:26:05 +02:00
|
|
|
select BR2_PACKAGE_CAIRO
|
|
|
|
select BR2_PACKAGE_CAIRO_PNG
|
|
|
|
select BR2_PACKAGE_LIBPNG
|
|
|
|
select BR2_PACKAGE_JPEG
|
|
|
|
select BR2_PACKAGE_MTDEV
|
2015-02-15 16:44:11 +01:00
|
|
|
select BR2_PACKAGE_LIBINPUT
|
2015-07-15 20:11:43 +02:00
|
|
|
depends on BR2_ENABLE_LOCALE # libinput
|
2014-02-07 14:21:33 +01:00
|
|
|
depends on BR2_PACKAGE_HAS_UDEV
|
2014-12-03 22:41:29 +01:00
|
|
|
depends on !BR2_STATIC_LIBS # wayland
|
2013-08-12 19:34:37 +02:00
|
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS # wayland
|
2014-03-01 15:53:06 +01:00
|
|
|
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
|
2013-04-29 12:26:05 +02:00
|
|
|
# Runtime dependency
|
|
|
|
select BR2_PACKAGE_XKEYBOARD_CONFIG
|
2013-10-14 19:13:27 +02:00
|
|
|
# Make sure at least one compositor is selected.
|
|
|
|
select BR2_PACKAGE_WESTON_FBDEV if !BR2_PACKAGE_WESTON_HAS_COMPOSITOR
|
2013-04-29 12:26:05 +02:00
|
|
|
help
|
|
|
|
Weston is the reference implementation of a Wayland
|
|
|
|
compositor, and a useful compositor in its own right.
|
|
|
|
Weston has various backends that lets it run on Linux kernel
|
|
|
|
modesetting and evdev input as well as under X11.
|
|
|
|
|
|
|
|
http://wayland.freedesktop.org/
|
|
|
|
|
|
|
|
if BR2_PACKAGE_WESTON
|
|
|
|
|
2013-10-14 19:13:27 +02:00
|
|
|
# Helper to make sure at least one compositor is selected.
|
2013-10-10 23:05:23 +02:00
|
|
|
config BR2_PACKAGE_WESTON_HAS_COMPOSITOR
|
|
|
|
bool
|
|
|
|
|
2016-03-29 16:39:02 +02:00
|
|
|
config BR2_PACKAGE_WESTON_DRM
|
|
|
|
bool "DRM compositor"
|
|
|
|
depends on BR2_PACKAGE_MESA3D_OPENGL_EGL
|
|
|
|
select BR2_PACKAGE_LIBDRM
|
|
|
|
select BR2_PACKAGE_WESTON_HAS_COMPOSITOR
|
|
|
|
|
|
|
|
# Uses libgbm from mesa3d
|
|
|
|
comment "DRM compositor needs an OpenGL EGL backend provided by mesa3d"
|
|
|
|
depends on !BR2_PACKAGE_MESA3D_OPENGL_EGL
|
|
|
|
|
2013-04-29 12:26:05 +02:00
|
|
|
config BR2_PACKAGE_WESTON_FBDEV
|
|
|
|
bool "fbdev compositor"
|
|
|
|
|
2015-09-06 21:54:19 +02:00
|
|
|
# FreeRDP needs threads and !static, already the case for weston
|
2015-02-21 23:36:24 +01:00
|
|
|
config BR2_PACKAGE_WESTON_RDP
|
|
|
|
bool "RDP compositor"
|
2015-09-06 21:54:19 +02:00
|
|
|
depends on BR2_USE_MMU # freerdp, libglib2
|
2016-02-02 16:31:35 +01:00
|
|
|
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
2016-09-11 14:38:54 +02:00
|
|
|
depends on BR2_USE_WCHAR # freerdp
|
|
|
|
depends on BR2_INSTALL_LIBSTDCPP # freerdp
|
2015-02-21 23:36:24 +01:00
|
|
|
select BR2_PACKAGE_FREERDP
|
|
|
|
select BR2_PACKAGE_WESTON_HAS_COMPOSITOR
|
|
|
|
help
|
|
|
|
This enables the RDP backend, which allows accessing weston
|
|
|
|
through the network with any RDP-compliant client.
|
|
|
|
|
|
|
|
Please note that one must pass those options to weston for RDP
|
|
|
|
to be functional:
|
|
|
|
--rdp-tls-cert=/path/to/server.crt
|
|
|
|
--rdp-tls-key=/path/to/server.key
|
|
|
|
|
|
|
|
By default, Buildroot installs such files in /etc/freerdp/server/
|
|
|
|
so you may want to change them in a post-build script or a rootfs
|
|
|
|
overlay.
|
|
|
|
|
2016-09-11 14:38:54 +02:00
|
|
|
comment "RDP compositor needs a toolchain w/ wchar, C++"
|
|
|
|
depends on BR2_USE_MMU
|
2016-02-02 16:31:35 +01:00
|
|
|
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
2016-09-11 14:38:54 +02:00
|
|
|
depends on !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP
|
2015-02-23 07:17:52 +01:00
|
|
|
|
2014-12-20 19:22:41 +01:00
|
|
|
# rpi-userland is an EGL/GLES provider, so we can't select it
|
package/weston: add RPi compositor
Procedure highly inspired by:
http://wayland.freedesktop.org/raspberrypi.html
The resulting weston works almost flawlessly, but requires a bit
of love:
- /boot/config.txt must include this line: dispmanx_offline=1
- at least 128MiB of RAM must be allocated to the GPU
- after 24-or-so terminal-clients are connected, the screen
turns black. Exiting a client restores the screen
It seems increasing/decreasing the amount of memory allocated to
the GPU makes the clients limit to wobble above/below 24 clients
at a time. YMMV, as they say...
Without dispmanx_offline=1, the limit is much below 24, at around 13.
But changing the amount of memory allocated to the GPU does not change
this limit in this case. YMMV, again.
Anyway, there are not many different clients available, besides the
terminal client, since all other clients are EGL-based, and there
is (yet) no EGL support (for weston!) on the RPi. So the tests were
made only with the terminal client.
The system is rather smooth, but spwaning too many clients in a
rapid-fire is sure to exhibit some lag. Resizing windows is a bit
jerky, but moving them along is fine.
Note: the config option has a depends on THREADS due to rpi-userland,
even though weston itself already inherits the same dependency from
wayland. But better be clean and safe.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2013-10-10 23:05:25 +02:00
|
|
|
config BR2_PACKAGE_WESTON_RPI
|
|
|
|
bool "RPi compositor"
|
2014-12-20 19:22:41 +01:00
|
|
|
depends on BR2_PACKAGE_RPI_USERLAND
|
package/weston: add RPi compositor
Procedure highly inspired by:
http://wayland.freedesktop.org/raspberrypi.html
The resulting weston works almost flawlessly, but requires a bit
of love:
- /boot/config.txt must include this line: dispmanx_offline=1
- at least 128MiB of RAM must be allocated to the GPU
- after 24-or-so terminal-clients are connected, the screen
turns black. Exiting a client restores the screen
It seems increasing/decreasing the amount of memory allocated to
the GPU makes the clients limit to wobble above/below 24 clients
at a time. YMMV, as they say...
Without dispmanx_offline=1, the limit is much below 24, at around 13.
But changing the amount of memory allocated to the GPU does not change
this limit in this case. YMMV, again.
Anyway, there are not many different clients available, besides the
terminal client, since all other clients are EGL-based, and there
is (yet) no EGL support (for weston!) on the RPi. So the tests were
made only with the terminal client.
The system is rather smooth, but spwaning too many clients in a
rapid-fire is sure to exhibit some lag. Resizing windows is a bit
jerky, but moving them along is fine.
Note: the config option has a depends on THREADS due to rpi-userland,
even though weston itself already inherits the same dependency from
wayland. But better be clean and safe.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2013-10-10 23:05:25 +02:00
|
|
|
select BR2_PACKAGE_WESTON_HAS_COMPOSITOR
|
|
|
|
|
2016-05-26 21:44:57 +02:00
|
|
|
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
|
|
|
|
|
2016-05-26 21:44:58 +02:00
|
|
|
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
|
|
|
|
|
2016-07-15 15:14:09 +02:00
|
|
|
config BR2_PACKAGE_WESTON_DEMO_CLIENTS
|
|
|
|
bool "demo clients"
|
|
|
|
help
|
|
|
|
This enables the installation of Weston's demo clients.
|
|
|
|
|
2013-04-29 12:26:05 +02:00
|
|
|
endif
|