aboutsummaryrefslogtreecommitdiff
path: root/recipes/meta/meta-toolchain-qt.inc
blob: 42cb600e7c349cfe1ae045efdd863058a88e6241 (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
# Common Qt toolchain
INC_PR = "r5"

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

       # make a symbolic link to mkspecs for compatibility with Nokia's SDK
       # and QtCreator
       cd ${SDK_OUTPUT}/${SDKPATH}
       ln -s ${TARGET_SYS}/usr/share/${QT_DIR_NAME}/mkspecs mkspecs

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