package/efl: add Wayland support
authorRomain Naour <romain.naour@gmail.com>
Thu, 8 Dec 2016 22:24:17 +0000 (23:24 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 9 Dec 2016 19:12:06 +0000 (20:12 +0100)
The EFL Wayland support was removed with commit [1] since the dependecy
on libdrm was missing. Also it requires OpenGL ES with EGL, Evas DRM
and Evas GLES DRM support [2].

As stated in configure, Evas GLES DRM engine support (gl_drm) depends
on wayland-client to build (wayland-client >= 1.8.0).

So, enable gl_drm only when wayland support is selected.

[1] 4f04be1659f186765f506c68f5bfbf6845fc40dc
[2] https://www.enlightenment.org/about-wayland

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Pierre Floury <devpfl@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/efl/Config.in
package/efl/efl.mk

index 0692d80b23f337a9d24a2ace67bd1d5b81452040..c51fc564d4f0b5fb7aad859d402fcd463ff375aa 100644 (file)
@@ -155,6 +155,18 @@ config BR2_PACKAGE_EFL_X_XLIB
        select BR2_PACKAGE_XLIB_LIBXTST
        select BR2_PACKAGE_XPROTO_GLPROTO
 
+config BR2_PACKAGE_EFL_WAYLAND
+       bool "Wayland support"
+       depends on BR2_TOOLCHAIN_HAS_THREADS # Evas DRM Engine -> libdrm
+       depends on BR2_PACKAGE_MESA3D_OPENGL_EGL # Evas DRM Engine
+       depends on BR2_PACKAGE_EFL_OPENGLES # OpenGL ES with EGL support only
+       select BR2_PACKAGE_EFL_DRM
+       select BR2_PACKAGE_WAYLAND
+
+comment "Wayland support needs OpenGL ES w/ EGL, threads"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_PACKAGE_MESA3D_OPENGL_EGL \
+               || !BR2_PACKAGE_EFL_OPENGLES
+
 choice
        bool "OpenGL support"
        help
index d823af2d1aefa7b3ed63c3ab7ac51631e97e96cc..7a8e47f4c1c79c552c60ce0a120ea44d9befea74 100644 (file)
@@ -201,6 +201,16 @@ else
 EFL_CONF_OPTS += --disable-drm
 endif
 
+# The EFL Wayland support requires Evas GLES DRM engine support
+# which depends on wayland-client to build.
+# So enable gl_drm only when wayland support is selected.
+ifeq ($(BR2_PACKAGE_EFL_WAYLAND),y)
+EFL_DEPENDENCIES += wayland
+EFL_CONF_OPTS += --enable-wayland --enable-gl-drm
+else
+EFL_CONF_OPTS += --disable-wayland --disable-gl-drm
+endif
+
 EFL_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBXKBCOMMON),libxkbcommon)
 
 # Loaders that need external dependencies needs to be --enable-XXX=yes