package/libegl: add option for wayland extensions
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 23 Aug 2016 16:26:32 +0000 (18:26 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 23 Aug 2016 20:00:33 +0000 (22:00 +0200)
Wayland requires that an OpenGL/EGL implementation provides a few
extensions, so that wayland servers and clients can exchange buffers.

Currently, only one OpenGL/EGL implementation provides those extensions:
mesa3d.

However, other implementations are catching up, especially the
proprietary NVidia driver, which has as of late introduced those
extensions. Other, non-public implementations may also provide those
extensions.

A lot of wayland-related packages require those extensions, and
currently they have to depend on mesa3d to provide OpenGL/EGL, which
precludes using those packages when a non-mesa3d provider is enabled,
even when that providers implements the necessary extensions.

Add an option to the libegl virtual package, that providers on
OpenGL/EGL can select to state they provide those extensions.

Packages that need those extensions can additionally depend on this new
option, instead of the existing libegl package.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/opengl/libegl/Config.in

index 8401bb22ed0ab123a0b237bb8c89462727098da0..f756fbeadfe7fef1a5e99f57a9926c45b23c411d 100644 (file)
@@ -1,6 +1,10 @@
 config BR2_PACKAGE_HAS_LIBEGL
        bool
 
+config BR2_PACKAGE_HAS_LIBEGL_WAYLAND
+       bool
+       depends on BR2_PACKAGE_HAS_LIBEGL
+
 config BR2_PACKAGE_PROVIDES_LIBEGL
        depends on BR2_PACKAGE_HAS_LIBEGL
        string