summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/qt/Config.in20
-rw-r--r--package/qt/qt.mk3
2 files changed, 23 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
diff --git a/package/qt/qt.mk b/package/qt/qt.mk
index f29a6714bc..d56fe7e2e8 100644
--- a/package/qt/qt.mk
+++ b/package/qt/qt.mk
@@ -336,6 +336,9 @@ QT_DEPENDENCIES += libgles libegl
QT_CFLAGS += `$(PKG_CONFIG_HOST_BINARY) --cflags egl`
QT_CXXFLAGS += `$(PKG_CONFIG_HOST_BINARY) --cflags egl`
QT_LDFLAGS += `$(PKG_CONFIG_HOST_BINARY) --libs egl`
+else ifeq ($(BR2_PACKAGE_QT_OPENGL_GL_DESKTOP),y)
+QT_CONFIGURE_OPTS += -opengl desktop
+QT_DEPENDENCIES += libgl
else
QT_CONFIGURE_OPTS += -no-opengl
endif
OpenPOWER on IntegriCloud