aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/meta/meta-toolchain-qt.inc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2010-10-05 07:10:01 +0000
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-10-05 18:53:04 +0800
commita382cfd87b2de1be25229e11a8bb9999f1c0ddf7 (patch)
treef9cf681598b47668608e5ebd16e62365d1436044 /recipes/meta/meta-toolchain-qt.inc
parente72ab21d7c34b335177baa67445e479c3a6c684b (diff)
downloadopenembedded-a382cfd87b2de1be25229e11a8bb9999f1c0ddf7.tar.gz
openembedded-a382cfd87b2de1be25229e11a8bb9999f1c0ddf7.tar.bz2
openembedded-a382cfd87b2de1be25229e11a8bb9999f1c0ddf7.zip
meta-toolchain-qt(e): Move common parts into the meta-toolchain-qt.inc
Diffstat (limited to 'recipes/meta/meta-toolchain-qt.inc')
-rw-r--r--recipes/meta/meta-toolchain-qt.inc24
1 files changed, 24 insertions, 0 deletions
diff --git a/recipes/meta/meta-toolchain-qt.inc b/recipes/meta/meta-toolchain-qt.inc
new file mode 100644
index 0000000000..ce80c5786b
--- /dev/null
+++ b/recipes/meta/meta-toolchain-qt.inc
@@ -0,0 +1,24 @@
+# Common Qt toolchain
+INC_PR = "r4"
+
+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 .
+}