diff options
Diffstat (limited to 'meta/classes/qmake-base.bbclass')
-rw-r--r-- | meta/classes/qmake-base.bbclass | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/classes/qmake-base.bbclass b/meta/classes/qmake-base.bbclass new file mode 100644 index 0000000000..36ecfb622f --- /dev/null +++ b/meta/classes/qmake-base.bbclass | |||
@@ -0,0 +1,44 @@ | |||
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_RCC="non-existant" | ||
20 | export OE_QMAKE_QMAKE="${STAGING_BINDIR}/qmake" | ||
21 | export OE_QMAKE_RPATH="-Wl,-rpath-link," | ||
22 | |||
23 | # default to qte2 via bb.conf, inherit qt3x11 to configure for qt3x11 | ||
24 | export OE_QMAKE_INCDIR_QT="${QTDIR}/include" | ||
25 | export OE_QMAKE_LIBDIR_QT="${QTDIR}/lib" | ||
26 | export OE_QMAKE_LIBS_QT="qte" | ||
27 | export OE_QMAKE_LIBS_X11="" | ||
28 | |||
29 | oe_qmake_mkspecs () { | ||
30 | mkdir -p mkspecs/${OE_QMAKE_PLATFORM} | ||
31 | for f in ${QMAKE_MKSPEC_PATH}/${OE_QMAKE_PLATFORM}/*; do | ||
32 | if [ -L $f ]; then | ||
33 | lnk=`readlink $f` | ||
34 | if [ -f mkspecs/${OE_QMAKE_PLATFORM}/$lnk ]; then | ||
35 | ln -s $lnk mkspecs/${OE_QMAKE_PLATFORM}/`basename $f` | ||
36 | else | ||
37 | cp $f mkspecs/${OE_QMAKE_PLATFORM}/ | ||
38 | fi | ||
39 | else | ||
40 | cp $f mkspecs/${OE_QMAKE_PLATFORM}/ | ||
41 | fi | ||
42 | done | ||
43 | } | ||
44 | |||