summaryrefslogtreecommitdiff
path: root/recipes/meta/meta-toolchain-qte.bb
blob: b654935431eeb7feb0233213f73e1c6ad7f5be3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Qt Embedded toolchain
PR = "r2"
TOOLCHAIN_HOST_TASK = "task-qte-toolchain-host"
TOOLCHAIN_TARGET_TASK = "task-qte-toolchain-target"

require meta-toolchain.bb
SDK_SUFFIX = "toolchain-qte"


QT_DIR_NAME = "qtopia"

do_populate_sdk_append() {
       script = "${SDK_OUTPUT}/${prefix}/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=${prefix}/${TARGET_SYS}/${layout_libdir}' >> $script
       echo 'export OE_QMAKE_INCDIR_QT=${prefix}/${TARGET_SYS}/${layout_includedir}/${QT_DIR_NAME}' >> $script
       echo 'export OE_QMAKE_MOC=${prefix}/${layout_bindir}/moc4' >> $script
       echo 'export OE_QMAKE_UIC=${prefix}/${layout_bindir}/uic4' >> $script
       echo 'export OE_QMAKE_UIC3=${prefix}/${layout_bindir}/uic34' >> $script
       echo 'export OE_QMAKE_RCC=${prefix}/${layout_bindir}/rcc4' >> $script
       echo 'export OE_QMAKE_QDBUSCPP2XML=${prefix}/${layout_bindir}/qdbuscpp2xml4' >> $script
       echo 'export OE_QMAKE_QDBUSXML2CPP=${prefix}/${layout_bindir}/qdbusxml2cpp4' >> $script

       # Repack SDK with new environment-setup
       cd ${SDK_OUTPUT}
       fakeroot tar cfj ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 .
}