diff options
author | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
commit | 4b46c1f6e891b1ddd5968536440b888661fade3e (patch) | |
tree | e0ba2c1f56f61b868bf746da5c4feabb25b800b2 /openembedded/classes/qmake-base.bbclass | |
download | poky-4b46c1f6e891b1ddd5968536440b888661fade3e.tar.gz |
Initial population
git-svn-id: https://svn.o-hand.com/repos/poky@1 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/classes/qmake-base.bbclass')
-rw-r--r-- | openembedded/classes/qmake-base.bbclass | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/openembedded/classes/qmake-base.bbclass b/openembedded/classes/qmake-base.bbclass new file mode 100644 index 0000000000..4a360dae43 --- /dev/null +++ b/openembedded/classes/qmake-base.bbclass | |||
@@ -0,0 +1,42 @@ | |||
1 | DEPENDS_prepend = "qmake-native " | ||
2 | |||
3 | OE_QMAKE_PLATFORM = "${TARGET_OS}-oe-g++" | ||
4 | QMAKESPEC := "${QMAKE_MKSPEC_PATH}/${OE_QMAKE_PLATFORM}" | ||
5 | |||
6 | # We override this completely to eliminate the -e normally passed in | ||
7 | EXTRA_OEMAKE = ' MAKEFLAGS= ' | ||
8 | |||
9 | export OE_QMAKE_CC="${CC}" | ||
10 | export OE_QMAKE_CFLAGS="${CFLAGS}" | ||
11 | export OE_QMAKE_CXX="${CXX}" | ||
12 | export OE_QMAKE_CXXFLAGS="-fno-exceptions -fno-rtti ${CXXFLAGS}" | ||
13 | export OE_QMAKE_LDFLAGS="${LDFLAGS}" | ||
14 | export OE_QMAKE_LINK="${CCLD}" | ||
15 | export OE_QMAKE_AR="${AR}" | ||
16 | export OE_QMAKE_STRIP="${STRIP}" | ||
17 | export OE_QMAKE_UIC="${STAGING_BINDIR}/uic" | ||
18 | export OE_QMAKE_MOC="${STAGING_BINDIR}/moc" | ||
19 | export OE_QMAKE_RPATH="-Wl,-rpath-link," | ||
20 | |||
21 | # default to qte2 via bb.conf, inherit qt3x11 to configure for qt3x11 | ||
22 | export OE_QMAKE_INCDIR_QT="${QTDIR}/include" | ||
23 | export OE_QMAKE_LIBDIR_QT="${QTDIR}/lib" | ||
24 | export OE_QMAKE_LIBS_QT="qte" | ||
25 | export OE_QMAKE_LIBS_X11="" | ||
26 | |||
27 | oe_qmake_mkspecs () { | ||
28 | mkdir -p mkspecs/${OE_QMAKE_PLATFORM} | ||
29 | for f in ${QMAKE_MKSPEC_PATH}/${OE_QMAKE_PLATFORM}/*; do | ||
30 | if [ -L $f ]; then | ||
31 | lnk=`readlink $f` | ||
32 | if [ -f mkspecs/${OE_QMAKE_PLATFORM}/$lnk ]; then | ||
33 | ln -s $lnk mkspecs/${OE_QMAKE_PLATFORM}/`basename $f` | ||
34 | else | ||
35 | cp $f mkspecs/${OE_QMAKE_PLATFORM}/ | ||
36 | fi | ||
37 | else | ||
38 | cp $f mkspecs/${OE_QMAKE_PLATFORM}/ | ||
39 | fi | ||
40 | done | ||
41 | } | ||
42 | |||