mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 00:20:38 -09:00
package/weston: add EGL dependency for XWayland
BR2_PACKAGE_WESTON_XWAYLAND currently depends on BR2_PACKAGE_LIBEPOXY, which implicitly requires either libGL or libEGL. However, the XWayland glamor support uses libepoxy with EGL, so express that dependency directly. With only libGL and no libEGL, it fails to build. E.g., BR2_aarch64=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_AARCH64_GLIBC_STABLE=y BR2_PACKAGE_MESA3D=y BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV=y BR2_PACKAGE_MESA3D_OPENGL_GLX=y BR2_PACKAGE_XORG7=y BR2_PACKAGE_XWAYLAND=y BR2_PACKAGE_LIBEPOXY=y fails with: In file included from ../glamor/glamor_priv.h:73, from ../glamor/glamor_composite_glyphs.c:25: ../glamor/glamor_context.h:27:10: fatal error: epoxy/egl.h: No such file or directory 27 | #include <epoxy/egl.h> | ^~~~~~~~~~~~~ Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com> Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
This commit is contained in:
committed by
Arnout Vandecappelle
parent
d08416a5a2
commit
701f8bb31c
@@ -123,6 +123,7 @@ comment "X11 (nested) compositor needs X.org enabled"
|
||||
|
||||
config BR2_PACKAGE_WESTON_XWAYLAND
|
||||
bool "XWayland support"
|
||||
depends on BR2_PACKAGE_HAS_LIBEGL
|
||||
depends on BR2_PACKAGE_LIBEPOXY
|
||||
depends on BR2_PACKAGE_XORG7 # xwayland
|
||||
depends on BR2_USE_MMU # xwayland
|
||||
@@ -136,8 +137,9 @@ config BR2_PACKAGE_WESTON_XWAYLAND
|
||||
select BR2_PACKAGE_XLIB_LIBXCURSOR
|
||||
select BR2_PACKAGE_XWAYLAND
|
||||
|
||||
comment "XWayland support needs libepoxy and X.org enabled"
|
||||
depends on !BR2_PACKAGE_XORG7 || !BR2_PACKAGE_LIBEPOXY
|
||||
comment "XWayland support needs libepoxy w/ EGL and X.org enabled"
|
||||
depends on !BR2_PACKAGE_HAS_LIBEGL || !BR2_PACKAGE_XORG7 || \
|
||||
!BR2_PACKAGE_LIBEPOXY
|
||||
|
||||
comment "XWayland support needs a toolchain w/ threads, dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
|
||||
@@ -30,7 +30,7 @@ XWAYLAND_CONF_OPTS = \
|
||||
-Ddtrace=false \
|
||||
-Ddocs=false
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBEPOXY),y)
|
||||
ifeq ($(BR2_PACKAGE_HAS_LIBEGL)$(BR2_PACKAGE_LIBEPOXY),yy)
|
||||
XWAYLAND_CONF_OPTS += -Dglamor=true
|
||||
XWAYLAND_DEPENDENCIES += libepoxy
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user