From: "Eric Bénard" <eric@eukrea.com>
To: juvuolle@gmail.com
Cc: meta-freescale@yoctoproject.org
Subject: [meta-fsl-arm][RFC] qtbase: add xcb support for i.MX6
Date: Mon, 26 Aug 2013 21:07:05 +0200 [thread overview]
Message-ID: <1377544025-31822-1-git-send-email-eric@eukrea.com> (raw)
In-Reply-To: <CAK+PFVs2ZHVOfkbpWnX1CRUrayHkcMc=kdE4jsDdKFF9wSqN1w@mail.gmail.com>
Signed-off-by: Eric Bénard <eric@eukrea.com>
---
qt5-layer/recipes-qt/qt5/qtbase_5.0.2.bbappend | 24 ++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/qt5-layer/recipes-qt/qt5/qtbase_5.0.2.bbappend b/qt5-layer/recipes-qt/qt5/qtbase_5.0.2.bbappend
index 33f0e8b..5553e27 100644
--- a/qt5-layer/recipes-qt/qt5/qtbase_5.0.2.bbappend
+++ b/qt5-layer/recipes-qt/qt5/qtbase_5.0.2.bbappend
@@ -1,11 +1,14 @@
+@@ -2,10 +2,12 @@
# Copyright (C) 2013 Eric Bénard - Eukréa Electromatique
HAS_X11 = "${@base_contains('DISTRO_FEATURES', 'x11', 1, 0, d)}"
-GL_DEPENDS_mx6 = "${@base_contains('DISTRO_FEATURES', 'x11', '', 'virtual/libgles2 virtual/egl', d)}"
-QT_GLFLAGS_mx6 = "${@base_contains('DISTRO_FEATURES', 'x11', '', '-opengl es2 -eglfs', d)}"
+GL_DEPENDS_mx6 = "virtual/libgles2 virtual/egl"
+QT_GLFLAGS_mx6 = "-opengl es2 -eglfs"
QT_EXAMPLES_mx6 = "-make examples"
QT_DEMOS_mx6 = "-make demos"
+XCB_DEPENDS_mx6 += "${@base_contains('DISTRO_FEATURES', 'x11', 'xcb-util-wm xcb-util-image xcb-util-keysyms dbus', '', d)}"
+QT_XCB_mx6 = "${@base_contains('DISTRO_FEATURES', 'x11', '-qt-xcb', '', d)}"
GL_DEPENDS_mx5 = "${@base_contains('DISTRO_FEATURES', 'x11', '', 'virtual/libgles2 virtual/egl', d)}"
QT_GLFLAGS_mx5 = "${@base_contains('DISTRO_FEATURES', 'x11', '', '-opengl es2 -eglfs', d)}"
@@ -47,6 +50,23 @@ EOF
# copy the hook in the mkspecs directory OE is using
cp ${S}/mkspecs/devices/linux-imx6-g++/qeglfshooks_imx6.cpp ${S}/mkspecs/linux-oe-g++/
+
+ else
+# adapt qmake.conf to our needs
+sed -i 's!load(qt_config)!!' ${S}/mkspecs/linux-oe-g++/qmake.conf
+cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf <<EOF
+IMX6_CFLAGS = -DLINUX=1
+QMAKE_LIBS_EGL += -lEGL
+QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL -lGAL
+QMAKE_LIBS_OPENVG += -lOpenVG -lEGL -lGAL
+QMAKE_CFLAGS_RELEASE += \$\$IMX6_CFLAGS
+QMAKE_CXXFLAGS_RELEASE += \$\$IMX6_CFLAGS
+QMAKE_CFLAGS_DEBUG += \$\$IMX6_CFLAGS
+QMAKE_CXXFLAGS_DEBUG += \$\$IMX6_CFLAGS
+QMAKE_CFLAGS_EGL += \$\$IMX6_CFLAGS
+load(qt_config)
+
+EOF
fi
}
--
1.7.10.4
next prev parent reply other threads:[~2013-08-26 19:07 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-26 17:55 qt5 xcb gles2 Juha Vuolle
2013-08-26 19:06 ` Eric Bénard
2013-08-26 21:11 ` Juha Vuolle
2013-08-27 14:44 ` Juha Vuolle
2013-09-11 10:29 ` Juha Vuolle
2013-09-11 18:44 ` Ahmed Ammar
2013-09-13 7:27 ` Juha Vuolle
2013-09-13 7:36 ` Eric Bénard
2013-09-13 13:48 ` Juha Vuolle
2013-08-26 19:07 ` Eric Bénard [this message]
2013-08-28 12:35 ` [meta-fsl-arm][RFC] qtbase: add xcb support for i.MX6 Juha Vuolle
2013-08-28 12:56 ` Daiane Angolini
2013-08-28 13:34 ` Eric Bénard
2013-08-29 8:07 ` Juha Vuolle
2013-08-29 8:10 ` Eric Bénard
2013-08-29 8:25 ` Juha Vuolle
2013-08-29 13:40 ` Juha Vuolle
2013-08-30 7:46 ` Juha Vuolle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1377544025-31822-1-git-send-email-eric@eukrea.com \
--to=eric@eukrea.com \
--cc=juvuolle@gmail.com \
--cc=meta-freescale@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.