diff options
author | Ciprian Ciubotariu <cheepeero@gmx.net> | 2012-03-16 17:56:09 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-19 20:27:15 +0000 |
commit | 4ca9ecbdd60f99101b0f6d9fadeb431b3790010a (patch) | |
tree | b5c802a73bae0b63119e68650a8ac6425290195f /meta/recipes-qt/qt4/files | |
parent | fc6f49e283423b3ad25b1e7463fdf4e73a8a1f35 (diff) | |
download | openembedded-core-4ca9ecbdd60f99101b0f6d9fadeb431b3790010a.tar.gz openembedded-core-4ca9ecbdd60f99101b0f6d9fadeb431b3790010a.tar.bz2 openembedded-core-4ca9ecbdd60f99101b0f6d9fadeb431b3790010a.tar.xz openembedded-core-4ca9ecbdd60f99101b0f6d9fadeb431b3790010a.zip |
qt-mobility: fix build in the absence of opengl
QMake pro files don't explicitly define QT_NO_OPENGL if the
configuration lacks opengl, but example code relies on this define.
[rebased to current code - sgw]
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-qt/qt4/files')
-rw-r--r-- | meta/recipes-qt/qt4/files/qt-mobility-no-opengl.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-qt/qt4/files/qt-mobility-no-opengl.patch b/meta/recipes-qt/qt4/files/qt-mobility-no-opengl.patch new file mode 100644 index 000000000..aa15683a4 --- /dev/null +++ b/meta/recipes-qt/qt4/files/qt-mobility-no-opengl.patch @@ -0,0 +1,36 @@ +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 |