summaryrefslogtreecommitdiffstats
path: root/meta/recipes-qt/qt4/qt-mobility-1.2.0/qt-mobility-no-opengl.patch
blob: 17249950726c1413c75f53c53ff9517532095087 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Upstream-Status: Inappropriate [configuration]

diff --git a/examples/declarative-camera/declarative-camera.pro b/examples/declarative-camera/declarative-camera.pro
index 8164fbc..54fd8ad 100644
--- a/examples/declarative-camera/declarative-camera.pro
+++ b/examples/declarative-camera/declarative-camera.pro
@@ -5,10 +5,10 @@ TEMPLATE=app
 
 QT += declarative network
 
-!maemo5 {
-    contains(QT_CONFIG, opengl) {
-        QT += opengl
-    }
+contains(QT_CONFIG, opengl): !maemo5 {
+   QT += opengl
+} else {
+   DEFINES += QT_NO_OPENGL
 }
 
 win32 {
diff --git a/examples/videographicsitem/videographicsitem.pro b/examples/videographicsitem/videographicsitem.pro
index 8461beb..eedee2f 100644
--- a/examples/videographicsitem/videographicsitem.pro
+++ b/examples/videographicsitem/videographicsitem.pro
@@ -9,7 +9,11 @@ MOBILITY = multimedia
 
 QMAKE_RPATHDIR += $$DESTDIR
 
-!symbian:contains(QT_CONFIG, opengl): QT += opengl
+contains(QT_CONFIG, opengl): !symbian {
+   QT += opengl
+} else {
+   DEFINES += QT_NO_OPENGL
+}
 
 HEADERS   += videoplayer.h \
              videoitem.h