[oe-commits] Koen Kooi : qt4-embedded gles: add WIP GLES version of qt-e

git version control git at git.openembedded.org
Mon Jul 13 08:11:31 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: ad99da239d8c5ea4f470e4572dc47c8c032d9627
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=ad99da239d8c5ea4f470e4572dc47c8c032d9627

Author: Koen Kooi <koen at openembedded.org>
Date:   Mon Jul 13 10:03:42 2009 +0200

qt4-embedded gles: add WIP GLES version of qt-e
* the sgx sdk is missing headers, but that should get solved in the new release

---

 recipes/qt4/qt4-embedded-gles-4.5.2/sgx-hack.patch |   18 +++++++++++++
 recipes/qt4/qt4-embedded-gles_4.5.2.bb             |   27 ++++++++++++++++++++
 2 files changed, 45 insertions(+), 0 deletions(-)

diff --git a/recipes/qt4/qt4-embedded-gles-4.5.2/sgx-hack.patch b/recipes/qt4/qt4-embedded-gles-4.5.2/sgx-hack.patch
new file mode 100644
index 0000000..c3bf39f
--- /dev/null
+++ b/recipes/qt4/qt4-embedded-gles-4.5.2/sgx-hack.patch
@@ -0,0 +1,18 @@
+--- /tmp/qglscreen_qws.h	2009-07-09 09:39:40.000000000 +0200
++++ qt-embedded-linux-opensource-src-4.5.2/src/opengl/qglscreen_qws.h	2009-07-09 09:40:11.000000000 +0200
+@@ -60,7 +60,6 @@
+ #else
+ #include <GLES/egl.h>
+ #endif
+-#if !defined(EGL_VERSION_1_3) && !defined(QEGL_NATIVE_TYPES_DEFINED)
+ #undef EGLNativeWindowType
+ #undef EGLNativePixmapType
+ #undef EGLNativeDisplayType
+@@ -68,7 +67,6 @@
+ typedef NativePixmapType EGLNativePixmapType;
+ typedef NativeDisplayType EGLNativeDisplayType;
+ #define QEGL_NATIVE_TYPES_DEFINED 1
+-#endif
+ 
+ QT_BEGIN_HEADER
+ 
diff --git a/recipes/qt4/qt4-embedded-gles_4.5.2.bb b/recipes/qt4/qt4-embedded-gles_4.5.2.bb
new file mode 100644
index 0000000..4e207c1
--- /dev/null
+++ b/recipes/qt4/qt4-embedded-gles_4.5.2.bb
@@ -0,0 +1,27 @@
+# recipe to build GLES gfxdriver
+
+FILESPATHPKG =. "qt4-embedded-${PV}:qt4-embedded:"
+
+QT_CONFIG_FLAGS += "-D QT_QWS_CLIENTBLIT -depths 16,24,32 -opengl es1 -plugin-gfx-powervr"
+
+require qt4-embedded_${PV}.bb
+
+DEPENDS += "virtual/egl"
+SRC_URI += "file://sgx-hack.patch;patch=1"
+
+export EXTRA_QMAKE_MUNGE = " glmunge "
+
+CXXFLAGS_append = " -I${S}/src/3rdparty/powervr/"
+CFLAGS_append = " -I${S}/src/3rdparty/powervr/"
+
+
+glmunge() {
+sed -e /QMAKE_INCDIR_OPENGL/d -e /QMAKE_LIBDIR_OPENGL/d -e /QMAKE_LIBS_OPENGL/d -e /QMAKE_LIBS_OPENGL_QT/d -i mkspecs/${OE_QMAKE_PLATFORM}/qmake.conf
+echo "QMAKE_INCDIR_OPENGL = ${STAGING_INCDIR}/GLES/" >> mkspecs/${OE_QMAKE_PLATFORM}/qmake.conf
+echo "QMAKE_LIBDIR_OPENGL  = ${STAGING_LIBDIR}" >> mkspecs/${OE_QMAKE_PLATFORM}/qmake.conf
+echo "QMAKE_LIBS_OPENGL = -lEGL -lGLES_CM -lIMGegl -lsrv_um" >> mkspecs/${OE_QMAKE_PLATFORM}/qmake.conf
+echo "QMAKE_LIBS_OPENGL_QT = -lEGL -lGLES_CM -lIMGegl -lsrv_um" >> mkspecs/${OE_QMAKE_PLATFORM}/qmake.conf
+}
+
+
+





More information about the Openembedded-commits mailing list