aboutsummaryrefslogtreecommitdiff
path: root/package/qt/Config.in
diff options
context:
space:
mode:
authorGravatar Bernd Kuhls <bernd.kuhls@t-online.de>2016-06-12 22:07:18 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-06-12 22:25:59 +0200
commit1662f7dc58d31c81a5d34d17b965ac7bf9f29a8e (patch)
tree35f9189ea8f8789d8f8c3a9c340afd156bba525c /package/qt/Config.in
parenta7487bbc25d7736c00e2940e7e7c954ae80d1285 (diff)
downloadbuildroot-1662f7dc58d31c81a5d34d17b965ac7bf9f29a8e.tar.gz
buildroot-1662f7dc58d31c81a5d34d17b965ac7bf9f29a8e.tar.bz2
package/qt: Add optional support for OpenGL
OpenGL support is only available for the desktop variant of Qt4 and not the embedded one: http://code.qt.io/cgit/qt/qt.git/tree/configure#n6612 This patch is needed to fix a compile error with libv4l which depends on OpenGL support if qt4 is used by libv4l as optional dependency. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/qt/Config.in')
-rw-r--r--package/qt/Config.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/qt/Config.in b/package/qt/Config.in
index 0ab8417b86..14b13cec20 100644
--- a/package/qt/Config.in
+++ b/package/qt/Config.in
@@ -350,6 +350,24 @@ config BR2_PACKAGE_QT_PHONON_BACKEND
Build the platform Phonon plugin.
If unsure, say n.
+choice
+ prompt "OpenGL API"
+ help
+ Select OpenGL API.
+
+config BR2_PACKAGE_QT_OPENGL_NONE
+ bool "No OpenGL support"
+
+comment "Desktop OpenGL not available (needs Qt standard (X11))"
+ depends on !BR2_PACKAGE_QT_X11
+
+config BR2_PACKAGE_QT_OPENGL_GL_DESKTOP
+ bool "Desktop OpenGL"
+ depends on BR2_PACKAGE_HAS_LIBGL
+ depends on BR2_PACKAGE_QT_X11
+ help
+ Use desktop OpenGL.
+
config BR2_PACKAGE_QT_OPENGL_ES
bool "OpenGL ES v2.x support"
depends on BR2_PACKAGE_HAS_LIBGLES
@@ -357,6 +375,8 @@ config BR2_PACKAGE_QT_OPENGL_ES
help
Enable the OpenGL ES v2.x support.
+endchoice
+
endif
config BR2_PACKAGE_QT_DBUS