Commit ec0de5d2 authored by Yann E. MORIN's avatar Yann E. MORIN Committed by Thomas Petazzoni
Browse files

package/libgles: rename the _HAS and _PROVIDES variables



The basic rule for a package is to have its options named
after the package name. There is no reason this should not
also be the case for virtual packages.

Besides, this will allow us to switch libgles to use the
soon-to-be-introduced virtual-package infrastructure.

Signed-off-by: default avatar"Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Eric Le Bihan <eric.le.bihan.dev@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com>
Cc: Mike Zick <minimod@morethan.org>
Cc: Samuel Martin <s.martin49@gmail.com>
Reviewed-by: default avatarSamuel Martin <s.martin49@gmail.com>
Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Acked-by: default avatarArnout Vandecappelle <arnout@mind.be>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent e09c0444
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ else
	CAIRO_CONF_OPT += --disable-directfb
endif

ifeq ($(BR2_PACKAGE_HAS_OPENGL_ES),y)
ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
	CAIRO_CONF_OPT += --enable-glesv2
	CAIRO_DEPENDENCIES += libgles
else
+2 −2
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ comment "gpu-viv-bin-mx6q needs an (e)glibc toolchain"
config BR2_PACKAGE_GPU_VIV_BIN_MX6Q
	bool "gpu-viv-bin-mx6q"
	select BR2_PACKAGE_HAS_OPENGL_EGL
	select BR2_PACKAGE_HAS_OPENGL_ES
	select BR2_PACKAGE_HAS_LIBGLES
	select BR2_PACKAGE_XLIB_LIBXDAMAGE if BR2_PACKAGE_XORG7
	select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7
	depends on BR2_arm # Only relevant for i.MX6
@@ -27,7 +27,7 @@ if BR2_PACKAGE_GPU_VIV_BIN_MX6Q
config BR2_PACKAGE_PROVIDES_OPENGL_EGL
	default "gpu-viv-bin-mx6q"

config BR2_PACKAGE_PROVIDES_OPENGL_ES
config BR2_PACKAGE_PROVIDES_LIBGLES
	default "gpu-viv-bin-mx6q"

config BR2_PACKAGE_GPU_VIV_BIN_MX6Q_EXAMPLES
+1 −1
Original line number Diff line number Diff line
@@ -464,7 +464,7 @@ comment "rsvg plugin needs a toolchain w/ C++, wchar, threads"

config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_EGLGLES
	bool "eglgles"
	depends on BR2_PACKAGE_HAS_OPENGL_EGL && BR2_PACKAGE_HAS_OPENGL_ES
	depends on BR2_PACKAGE_HAS_OPENGL_EGL && BR2_PACKAGE_HAS_LIBGLES
	help
	  EGL/GLES sink

+2 −2
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ config BR2_PACKAGE_MESA3D_OPENGL_EGL

config BR2_PACKAGE_MESA3D_OPENGL_ES
	bool "OpenGL ES"
	select BR2_PACKAGE_HAS_OPENGL_ES
	select BR2_PACKAGE_HAS_LIBGLES
	help
	  Use the Khronos OpenGL ES APIs.  This is commonly used on embedded
	  systems and represents a subset of the OpenGL API.
@@ -109,7 +109,7 @@ endmenu
config BR2_PACKAGE_PROVIDES_OPENGL_EGL
	default "mesa3d" if BR2_PACKAGE_MESA3D_OPENGL_EGL

config BR2_PACKAGE_PROVIDES_OPENGL_ES
config BR2_PACKAGE_PROVIDES_LIBGLES
	default "mesa3d" if BR2_PACKAGE_MESA3D_OPENGL_ES

endif
+3 −3
Original line number Diff line number Diff line
config BR2_PACKAGE_HAS_OPENGL_ES
config BR2_PACKAGE_HAS_LIBGLES
	bool

config BR2_PACKAGE_PROVIDES_OPENGL_ES
	depends on BR2_PACKAGE_HAS_OPENGL_ES
config BR2_PACKAGE_PROVIDES_LIBGLES
	depends on BR2_PACKAGE_HAS_LIBGLES
	string
Loading