Since wayland 1.15 (upstream commit
549a5ea710f4da1a5749587176d39fef1ded4077), libwayland-egl.so is
provided by the wayland package, so there is no longer a question of
whether libwayland-egl.so is provided by the particular EGL
implementation. See the Wayland commit log:
wayland-egl: import libwayland-egl.so frontend library from Mesa
Currently the client-facing libwayland-egl API is defined by a header
file shipped by Wayland, but the implementation is left to each vendor.
This can cause collisions when multiple implementations are installed on
the same system. Importing the implementation into Wayland with a stable
and versioned driver-facing ABI allows multiple drivers to coexist on
the same system.
Pull the sample implementation from Mesa commit 677edff5cfd
("wayland-egl: rework and simplify wl_egl_window initialization")
It has been used by the Mesa open source drivers, NVIDIA and others[1].
v2: Reword commit message, rebase on top of newer Mesa.
[1] https://github.com/thayama/wayland-egl
Consequently, we remove the BR2_PACKAGE_HAS_LIBEGL_WAYLAND
option. Packages that rely on BR2_PACKAGE_HAS_LIBGLES and
BR2_PACKAGE_WAYLAND are guaranteed to have libwayland-egl.so.
Note that this doesn't solve the problem that libwayland-egl.so will be
provided both by wayland itself and by by the implementation
(rockchip-mali, sunxi-mali-utgard, ...). Still, there is a dependency
from the implementation on wayland so at least it is predictable which
one will end up on the target.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
[Arnout: remove remaining references in sway and sunxi-mali-utgard]
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
70 lines
2.0 KiB
Plaintext
70 lines
2.0 KiB
Plaintext
config BR2_PACKAGE_SWAY
|
|
bool "sway"
|
|
depends on BR2_PACKAGE_SYSTEMD # is required by the sd-bus provider
|
|
depends on !BR2_STATIC_LIBS # wlroots
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS # pango, wlroots
|
|
depends on BR2_PACKAGE_HAS_LIBEGL # wlroots
|
|
depends on BR2_PACKAGE_HAS_LIBGLES # wlroots
|
|
depends on BR2_PACKAGE_HAS_UDEV # wlroots
|
|
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c, pango
|
|
depends on BR2_USE_WCHAR # pango
|
|
depends on BR2_USE_MMU # pango
|
|
depends on BR2_INSTALL_LIBSTDCPP # pango
|
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # pango
|
|
select BR2_PACKAGE_WLROOTS
|
|
select BR2_PACKAGE_JSON_C
|
|
select BR2_PACKAGE_PCRE
|
|
select BR2_PACKAGE_CAIRO
|
|
select BR2_PACKAGE_CAIRO_PNG
|
|
select BR2_PACKAGE_PANGO
|
|
select BR2_PACKAGE_XKEYBOARD_CONFIG # runtime
|
|
help
|
|
i3-compatible Wayland compositor
|
|
Note:
|
|
The default sway config uses the foot package as the
|
|
default terminal. If you plan on using the default
|
|
config, it is recommended to select the foot package!
|
|
|
|
https://github.com/swaywm/sway
|
|
|
|
if BR2_PACKAGE_SWAY
|
|
|
|
config BR2_PACKAGE_SWAY_SWAYBAR
|
|
bool "swaybar"
|
|
select BR2_PACKAGE_DEJAVU
|
|
select BR2_PACKAGE_JQ if BR2_PACKAGE_BASH_COMPLETION # Runtime
|
|
select BR2_PACKAGE_DMENU_WAYLAND # Runtime
|
|
help
|
|
Enable support for swaybar
|
|
|
|
if BR2_PACKAGE_SWAY_SWAYBAR
|
|
|
|
config BR2_PACKAGE_SWAY_SWAYBAR_TRAY
|
|
bool "swaybar tray"
|
|
help
|
|
Enable support for swaybar tray
|
|
|
|
endif # BR2_PACKAGE_SWAY_SWAYBAR
|
|
|
|
config BR2_PACKAGE_SWAY_SWAYNAG
|
|
bool "swaynag"
|
|
help
|
|
Enable support for swaynag
|
|
|
|
endif # BR2_PACKAGE_SWAY
|
|
|
|
comment "sway needs systemd, udev, EGL and OpenGL ES support"
|
|
depends on !BR2_PACKAGE_SYSTEMD || \
|
|
!BR2_PACKAGE_HAS_UDEV || \
|
|
!BR2_PACKAGE_HAS_LIBEGL || \
|
|
!BR2_PACKAGE_HAS_LIBGLES
|
|
|
|
comment "sway needs a toolchain w/ wchar, threads, C++, dynamic library, gcc >= 4.9"
|
|
depends on BR2_USE_MMU
|
|
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
|
depends on !BR2_USE_WCHAR || \
|
|
!BR2_TOOLCHAIN_HAS_THREADS || \
|
|
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
|
|
!BR2_INSTALL_LIBSTDCPP || \
|
|
BR2_STATIC_LIBS
|