aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2010-10-05 07:06:48 +0000
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-10-05 18:53:02 +0800
commite72ab21d7c34b335177baa67445e479c3a6c684b (patch)
tree3c8dceee198f90f3a31dedd9568d46c9504b79a8
parentfb68bef08c79e435d9970b1862b2731050c51937 (diff)
downloadopenembedded-e72ab21d7c34b335177baa67445e479c3a6c684b.tar.gz
openembedded-e72ab21d7c34b335177baa67445e479c3a6c684b.tar.bz2
openembedded-e72ab21d7c34b335177baa67445e479c3a6c684b.zip
meta-toolchain-qt: Create a toolchain for Qt X11
-rw-r--r--recipes/meta/meta-toolchain-qt.bb32
-rw-r--r--recipes/tasks/task-qt-toolchain-target.bb39
2 files changed, 71 insertions, 0 deletions
diff --git a/recipes/meta/meta-toolchain-qt.bb b/recipes/meta/meta-toolchain-qt.bb
new file mode 100644
index 0000000000..4cdee48a1f
--- /dev/null
+++ b/recipes/meta/meta-toolchain-qt.bb
@@ -0,0 +1,32 @@
+# Qt X11 toolchain
+PR = "r4"
+TOOLCHAIN_HOST_TASK = "task-qt-toolchain-host"
+TOOLCHAIN_TARGET_TASK = "task-qt-toolchain-target"
+
+require meta-toolchain.bb
+SDK_SUFFIX = "toolchain-qt"
+SDK_SUFFIX_angstrom = "toolchain-qt-${ANGSTROM_QT_VERSION}"
+
+QT_DIR_NAME = "qt4"
+
+do_populate_sdk_append() {
+ script="${SDK_OUTPUT}/${SDKPATH}/environment-setup"
+ touch $script
+ echo 'export OE_QMAKE_CC=${TARGET_SYS}-gcc' >> $script
+ echo 'export OE_QMAKE_CXX=${TARGET_SYS}-g++' >> $script
+ echo 'export OE_QMAKE_LINK=${TARGET_SYS}-g++' >> $script
+ echo 'export OE_QMAKE_LIBDIR_QT=${SDKPATH}/${TARGET_SYS}/${libdir}' >> $script
+ echo 'export OE_QMAKE_INCDIR_QT=${SDKPATH}/${TARGET_SYS}/${includedir}/${QT_DIR_NAME}' >> $script
+ echo 'export OE_QMAKE_MOC=${SDKPATH}/bin/moc4' >> $script
+ echo 'export OE_QMAKE_UIC=${SDKPATH}/bin/uic4' >> $script
+ echo 'export OE_QMAKE_UIC3=${SDKPATH}/bin/uic34' >> $script
+ echo 'export OE_QMAKE_RCC=${SDKPATH}/bin/rcc4' >> $script
+ echo 'export OE_QMAKE_QDBUSCPP2XML=${SDKPATH}/bin/qdbuscpp2xml4' >> $script
+ echo 'export OE_QMAKE_QDBUSXML2CPP=${SDKPATH}/bin/qdbusxml2cpp4' >> $script
+ echo 'export OE_QMAKE_QT_CONFIG=${SDKPATH}/${TARGET_SYS}/${datadir}/${QT_DIR_NAME}/mkspecs/qconfig.pri' >> $script
+ echo 'export QMAKESPEC=${SDKPATH}/${TARGET_SYS}/${datadir}/${QT_DIR_NAME}/mkspecs/linux-g++' >> $script
+
+ # Repack SDK with new environment-setup
+ cd ${SDK_OUTPUT}
+ fakeroot tar cfj ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 .
+}
diff --git a/recipes/tasks/task-qt-toolchain-target.bb b/recipes/tasks/task-qt-toolchain-target.bb
new file mode 100644
index 0000000000..9a3e690fdb
--- /dev/null
+++ b/recipes/tasks/task-qt-toolchain-target.bb
@@ -0,0 +1,39 @@
+DESCRIPTION = "Target packages for Qt Embedded SDK"
+LICENSE = "MIT"
+ALLOW_EMPTY = "1"
+
+PR = "r5"
+
+RDEPENDS_${PN} += " \
+ task-sdk-bare \
+ qt4-mkspecs \
+ libqtmultimedia4-dev \
+ libqtphonon4-dev \
+ libqt3support4-dev \
+ libqtclucene4-dev \
+ libqtcore4-dev \
+ libqtdbus4-dev \
+ libqtdesignercomponents4-dev \
+ libqtdesigner4-dev \
+ libqtuitools4-dev \
+ libqtgui4-dev \
+ libqthelp4-dev \
+ libqtnetwork4-dev \
+ libqtscript4-dev \
+ libqtscripttools4-dev \
+ libqtsql4-dev \
+ libqtsvg4-dev \
+ libqttest4-dev \
+ libqtwebkit4-dev \
+ libqtxml4-dev \
+ libmysqlclient-dev \
+ sqlite-dev \
+ libsqlite-dev \
+ libts-dev \
+ expat-dev \
+ "
+
+#Qt Declarative is new in 4.7, try to include it like this.
+RRECOMMENDS_${PN} += " \
+ libqtdeclarative4-dev \
+ "