@@ -138,6 +138,25 @@ config BR2_PACKAGE_LIBEFL_X_XLIB
select BR2_PACKAGE_XLIB_LIBXTST
select BR2_PACKAGE_XPROTO_GLPROTO
+choice
+ bool "OpenGL support"
+ default BR2_PACKAGE_LIBEFL_OPENGLES if BR2_PACKAGE_HAS_LIBGLES
+ help
+ libevas can be configured to use HW acceleration only with
+ OpenGLES.
+
+config BR2_PACKAGE_LIBEFL_OPENGL_NONE
+ bool "none"
+
+config BR2_PACKAGE_LIBEFL_OPENGLES
+ bool "opengles"
+ depends on BR2_PACKAGE_HAS_LIBGLES
+
+comment "opengles support needs an opengles provider"
+ depends on !BR2_PACKAGE_HAS_LIBGLES
+
+endchoice # OpenGL support
+
comment "libevas loaders"
config BR2_PACKAGE_LIBEFL_PNG
@@ -35,7 +35,6 @@ LIBEFL_GETTEXTIZE = YES
# --disable-systemd: disable systemd support.
# --disable-xinput22: disable X11 XInput v2.2+ support.
# --enable-lua-old: disable Elua and remove luajit dependency.
-# --with-opengl=none: disable opengl support.
LIBEFL_CONF_OPTS = \
--with-edje-cc=$(HOST_DIR)/usr/bin/edje_cc \
--with-eolian-gen=$(HOST_DIR)/usr/bin/eolian_gen \
@@ -43,8 +42,7 @@ LIBEFL_CONF_OPTS = \
--disable-sdl \
--disable-systemd \
--disable-xinput22 \
- --enable-lua-old \
- --with-opengl=none
+ --enable-lua-old
# Disable untested configuration warning.
ifeq ($(BR2_PACKAGE_LIBEFL_RECOMMENDED_CONFIG),)
@@ -168,6 +166,15 @@ else
LIBEFL_CONF_OPTS += --with-x11=none
endif
+ifeq ($(BR2_PACKAGE_LIBEFL_OPENGLES),y)
+LIBEFL_CONF_OPTS += --with-opengl=es
+LIBEFL_DEPENDENCIES += libgles
+endif
+
+ifeq ($(BR2_PACKAGE_LIBEFL_OPENGL_NONE),y)
+LIBEFL_CONF_OPTS += --with-opengl=none
+endif
+
# Loaders that need external dependencies needs to be --enable-XXX=yes
# otherwise the default is '=static'.
# All other loaders are statically built-in
Allow to enable graphic acceleration using OpenGLES with efl libraries. The full opengl option (--with-opengl=full) is still disabled for now since it's mainly used with Tizen on GPU Intel and ARM Mali. With the upcomming Wayland support in EFL 1.16 and Enlightenment 0.20, only OpenGLES support is recommanded. Signed-off-by: Romain Naour <romain.naour@openwide.fr> --- v9: remove OpenGL full support v6: Rename OpenGL options (Yann E.Morin) Only full OpenGL support depends on X11. v4: rename libefl improve commit log --- package/efl/libefl/Config.in | 19 +++++++++++++++++++ package/efl/libefl/libefl.mk | 13 ++++++++++--- 2 files changed, 29 insertions(+), 3 deletions(-)