aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-qt/meta
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2011-01-14 15:36:23 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-01 16:32:43 +0000
commitf33d78ffef9d4b841dd734ca44b0c6c54e097bb8 (patch)
tree95af3a78ceb2adc8ca0200b14cf6b69862cece71 /meta/recipes-qt/meta
parentf0a81bbe0449a29edfcaba944e568e9731fe716d (diff)
downloadopenembedded-core-contrib-f33d78ffef9d4b841dd734ca44b0c6c54e097bb8.tar.gz
openembedded-core-contrib-f33d78ffef9d4b841dd734ca44b0c6c54e097bb8.tar.bz2
openembedded-core-contrib-f33d78ffef9d4b841dd734ca44b0c6c54e097bb8.zip
qt4: Add meta-toolchain-qte and dependent tasks from OpenEmbedded
Differences from OE versions: task-qte-toolchain-target.bb: * Depend on task-poky-standalone-sdk-target instead of task-sdk-bare * Add LIC_FILES_CHKSUM * Correct libsqlite3-dev dependency for Poky * Remove dependency on libts-dev * Remove QtDeclarative as it does not build for 4.6.3. (This will need to be addressed in a future update.) task-qte-toolchain-host.bb * Fix for Poky directory structure * qt4-tools-sdk -> qt4-tools-nativesdk meta-toolchain-qte: * Fix for Poky directory structure * Use "tar --owner=root" instead of fakeroot * Remove angstrom-specific suffix Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'meta/recipes-qt/meta')
-rw-r--r--meta/recipes-qt/meta/meta-toolchain-qte.bb32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-qt/meta/meta-toolchain-qte.bb b/meta/recipes-qt/meta/meta-toolchain-qte.bb
new file mode 100644
index 00000000000..b57369a937e
--- /dev/null
+++ b/meta/recipes-qt/meta/meta-toolchain-qte.bb
@@ -0,0 +1,32 @@
+# Qt Embedded toolchain
+PR = "r5"
+TOOLCHAIN_HOST_TASK = "task-qte-toolchain-host"
+TOOLCHAIN_TARGET_TASK = "task-qte-toolchain-target"
+
+require recipes-core/meta/meta-toolchain.bb
+SDK_SUFFIX = "toolchain-qte"
+
+QT_DIR_NAME = "qtopia"
+
+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_AR=${TARGET_SYS}-ar' >> $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}
+ tar --owner=root --group=root -cj --file=${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 .
+}