Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Romain Naour <romain.naour@openwide.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v7 13/33] package/efl/libefl: add OpenGL/OpenGLES support
Date: Wed, 9 Dec 2015 23:52:03 +0100	[thread overview]
Message-ID: <5668B093.60801@openwide.fr> (raw)
In-Reply-To: <20151208124636.GL4188@free.fr>

Hi Yann,

Le 08/12/2015 13:46, Yann E. MORIN a ?crit :
> romain, All,
> 
> On 2015-12-07 22:29 +0100, Romain Naour spake thusly:
>> Allow to enable graphic acceleration using OpenGL or
>> OpenGLES with efl libraries.
>>
>> The full opengl option depend on X11, because full openGL means GLX,
>> which means X11.
>>
>> Signed-off-by: Romain Naour <romain.naour@openwide.fr>
>> ---
>> 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 | 28 ++++++++++++++++++++++++++++
>>  package/efl/libefl/libefl.mk | 17 +++++++++++++++--
>>  2 files changed, 43 insertions(+), 2 deletions(-)
>>
>> diff --git a/package/efl/libefl/Config.in b/package/efl/libefl/Config.in
>> index 560a7b3..b0cb675 100644
>> --- a/package/efl/libefl/Config.in
>> +++ b/package/efl/libefl/Config.in
>> @@ -105,6 +105,34 @@ config BR2_PACKAGE_LIBEFL_X_XLIB
>>  	select BR2_PACKAGE_XLIB_LIBXTST
>>  	select BR2_PACKAGE_XPROTO_GLPROTO
>>  
>> +choice
>> +	bool "OpenGL support"
>> +	default BR2_PACKAGE_LIBEFL_OPENGL   if BR2_PACKAGE_HAS_LIBGL && BR2_PACKAGE_XORG7
>> +	default BR2_PACKAGE_LIBEFL_OPENGLES if BR2_PACKAGE_HAS_LIBGLES
>> +	help
>> +	  libevas can be configured to use HW acceleration with OpenGL or
>> +	  OpenGLES.
>> +
>> +config BR2_PACKAGE_LIBEFL_OPENGL_NONE
>> +	bool "none"
>> +
>> +config BR2_PACKAGE_LIBEFL_OPENGL
>> +	bool "opengl"
>> +	depends on BR2_PACKAGE_HAS_LIBGL
>> +	depends on BR2_PACKAGE_XORG7
> 
> As an aferthought, and after playing around with the options in the
> menuconfig, I now wonder if it really makes sense to have full OpenGL
> support without X11 support (introduced in the previous patch)?
> 
> In which case we would probably write:
> 
>     config BR2_PACKAGE_LIBEFL_OPENGL
>         bool "opengl"
>         depends on BR2_PACKAGE_HAS_LIBGL
>         depends on BR2_PACKAGE_LIBEFL_X_XLIB
> 
>     comment "opengl support needs an opengl provider and X11 support"
>         depends on !BR2_PACKAGE_HAS_LIBGL || !BR2_PACKAGE_LIBEFL_X_XLIB
> 
> But then we reference "X11 support" which is directly hidden when Xorg
> is not enabled, so maybe add another comment in the X11 support patch:
> 
>     comment "X11 support needs Xorg"
>         depends on !BR2_PACKAGE_XORG7
> 
> Thoughts?

I don't know mush Wayland but maybe we can have full OpenGL support without X11
when Wayland is used ?

I think it may be useful with efl 1.16 [1]
But, I haven't looked closely to the question, I may be wrong...

[1]
https://phab.enlightenment.org/phame/live/3/post/enlightenment_foundation_libraries_1_16_and_friends_are_out/

Best regards,
Romain

> 
> Regards,
> Yann E. MORIN.
> 
>> +comment "opengl support needs X11 and an opengl provider"
>> +	depends on !BR2_PACKAGE_HAS_LIBGL || !BR2_PACKAGE_XORG7
>> +
>> +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
>> diff --git a/package/efl/libefl/libefl.mk b/package/efl/libefl/libefl.mk
>> index 4ebc20f..fa1ee74 100644
>> --- a/package/efl/libefl/libefl.mk
>> +++ b/package/efl/libefl/libefl.mk
>> @@ -43,8 +43,7 @@ LIBEFL_CONF_OPTS = \
>>  	--disable-cxx-bindings \
>>  	--disable-sdl \
>>  	--disable-systemd \
>> -	--enable-lua-old \
>> -	--with-opengl=none
>> +	--enable-lua-old
>>  
>>  # Disable untested configuration warning.
>>  ifeq ($(BR2_PACKAGE_LIBEFL_RECOMMENDED_CONFIG),)
>> @@ -167,6 +166,20 @@ else
>>  LIBEFL_CONF_OPTS += --with-x11=none
>>  endif
>>  
>> +ifeq ($(BR2_PACKAGE_LIBEFL_OPENGL),y)
>> +LIBEFL_CONF_OPTS += --with-opengl=full
>> +LIBEFL_DEPENDENCIES += libgl
>> +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
>> -- 
>> 2.4.3
>>
>> _______________________________________________
>> buildroot mailing list
>> buildroot at busybox.net
>> http://lists.busybox.net/mailman/listinfo/buildroot
> 

  parent reply	other threads:[~2015-12-09 22:52 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-07 21:29 [Buildroot] [PATCH v7 00/33] efl bump to 1.15.2 Romain Naour
2015-12-07 21:29 ` [Buildroot] [PATCH v7 01/33] package/expedite: move to package directory Romain Naour
2015-12-07 21:29 ` [Buildroot] [PATCH v7 02/33] package/libevas-generic-loaders: " Romain Naour
2015-12-07 21:41   ` Yann E. MORIN
2015-12-07 21:29 ` [Buildroot] [PATCH v7 03/33] package/libevas-generic-loaders: svg loader: add MMU dependency Romain Naour
2015-12-07 21:45   ` Yann E. MORIN
2015-12-07 21:29 ` [Buildroot] [PATCH v7 04/33] package/{efl packages}: reorder select/depends Romain Naour
2015-12-07 21:58   ` Yann E. MORIN
2015-12-07 21:29 ` [Buildroot] [PATCH v7 05/33] package/efl/libefl: new host-package Romain Naour
2015-12-07 22:17   ` Yann E. MORIN
2015-12-07 21:29 ` [Buildroot] [PATCH v7 06/33] package/efl/libefl: new package Romain Naour
2015-12-07 22:41   ` Yann E. MORIN
2015-12-08 10:47   ` Yann E. MORIN
2015-12-08 21:43     ` Romain Naour
2015-12-07 21:29 ` [Buildroot] [PATCH v7 07/33] package/efl/libefl: add harfbuzz dependency Romain Naour
2015-12-07 21:29 ` [Buildroot] [PATCH v7 08/33] package/efl/libefl: add wayland dependency Romain Naour
2015-12-07 21:29 ` [Buildroot] [PATCH v7 09/33] package/efl/libefl: add webp dependency Romain Naour
2015-12-07 22:41   ` Yann E. MORIN
2015-12-07 21:29 ` [Buildroot] [PATCH v7 10/33] package/efl/libefl: add frame buffer config option Romain Naour
2015-12-07 21:29 ` [Buildroot] [PATCH v7 11/33] package/efl/libefl: add jp2k " Romain Naour
2015-12-07 21:29 ` [Buildroot] [PATCH v7 12/33] package/efl/libefl: add X11 support Romain Naour
2015-12-08 10:28   ` Yann E. MORIN
2015-12-08 10:58   ` Yann E. MORIN
2015-12-07 21:29 ` [Buildroot] [PATCH v7 13/33] package/efl/libefl: add OpenGL/OpenGLES support Romain Naour
2015-12-08 10:35   ` Yann E. MORIN
2015-12-08 12:46   ` Yann E. MORIN
2015-12-08 21:15     ` Yann E. MORIN
2015-12-09 22:52     ` Romain Naour [this message]
2015-12-09 22:57       ` Yann E. MORIN
2015-12-10 18:15         ` Yann E. MORIN
2015-12-07 21:29 ` [Buildroot] [PATCH v7 14/33] package/efl/libefl: enable xinput2.2 Romain Naour
2015-12-07 21:29 ` [Buildroot] [PATCH v7 15/33] package/efl/libefl: add systemd dependency Romain Naour
2015-12-07 21:29 ` [Buildroot] [PATCH v7 16/33] package/libevas-generic-loaders: bump to version 1.15.0 Romain Naour
2015-12-07 21:29 ` [Buildroot] [PATCH v7 17/33] package/libevas-generic-loaders: add libraw dependency Romain Naour
2015-12-08 11:00   ` Yann E. MORIN
2015-12-07 21:29 ` [Buildroot] [PATCH v7 18/33] package/efl/libelementary: bump to version 1.15.2 Romain Naour
2015-12-07 21:29 ` [Buildroot] [PATCH v7 19/33] package/efl: libefl and libelementary share the same version number Romain Naour
2015-12-07 21:29 ` [Buildroot] [PATCH v7 20/33] package/enlightenment: bump to version 0.19.12 Romain Naour
2015-12-08 11:06   ` Yann E. MORIN
2015-12-09 22:34     ` Romain Naour
2015-12-09 22:39       ` Yann E. MORIN
2015-12-07 21:29 ` [Buildroot] [PATCH v7 21/33] package/expedite: bump to efl-1.15 branch Romain Naour
2015-12-08 11:09   ` Yann E. MORIN
2015-12-07 21:29 ` [Buildroot] [PATCH v7 22/33] package/dbus-cpp: switch to libefl Romain Naour
2015-12-08 11:10   ` Yann E. MORIN
2015-12-07 21:29 ` [Buildroot] [PATCH v7 23/33] package/efl/libethumb: remove package Romain Naour
2015-12-08 11:18   ` Yann E. MORIN
2015-12-07 21:29 ` [Buildroot] [PATCH v7 24/33] package/efl/libedje: " Romain Naour
2015-12-07 21:29 ` [Buildroot] [PATCH v7 25/33] package/efl/libembryo: " Romain Naour
2015-12-07 21:29 ` [Buildroot] [PATCH v7 26/33] package/efl/libeio: " Romain Naour
2015-12-07 21:29 ` [Buildroot] [PATCH v7 27/33] package/efl/libefreet: " Romain Naour
2015-12-07 21:29 ` [Buildroot] [PATCH v7 28/33] package/efl/libedbus: " Romain Naour
2015-12-07 21:29 ` [Buildroot] [PATCH v7 29/33] package/efl/libecore: " Romain Naour
2015-12-07 21:29 ` [Buildroot] [PATCH v7 30/33] package/efl/libevas: " Romain Naour
2015-12-07 21:29 ` [Buildroot] [PATCH v7 31/33] package/efl/libeet: " Romain Naour
2015-12-07 21:29 ` [Buildroot] [PATCH v7 32/33] package/efl/libeina: " Romain Naour
2015-12-07 21:29 ` [Buildroot] [PATCH v7 33/33] package/libemotion-generic-players: new package Romain Naour
2015-12-08 14:27   ` Yann E. MORIN
2015-12-08 15:25     ` Yann E. MORIN
2015-12-08 22:50     ` Romain Naour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5668B093.60801@openwide.fr \
    --to=romain.naour@openwide.fr \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox