summaryrefslogtreecommitdiffstats
path: root/meta/classes/qmake-base.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-07-21 10:10:31 +0000
committerRichard Purdie <richard@openedhand.com>2006-07-21 10:10:31 +0000
commitb2f192faabe412adce79534e22efe9fb69ee40e2 (patch)
tree7076c49d4286f8a1733650bd8fbc7161af200d57 /meta/classes/qmake-base.bbclass
parent2cf0eadf9f730027833af802d7e6c90b44248f80 (diff)
downloadpoky-b2f192faabe412adce79534e22efe9fb69ee40e2.tar.gz
Rename /openembedded/ -> /meta/
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/qmake-base.bbclass')
-rw-r--r--meta/classes/qmake-base.bbclass44
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 @@
1DEPENDS_prepend = "qmake-native "
2
3OE_QMAKE_PLATFORM = "${TARGET_OS}-oe-g++"
4QMAKESPEC := "${QMAKE_MKSPEC_PATH}/${OE_QMAKE_PLATFORM}"
5
6# We override this completely to eliminate the -e normally passed in
7EXTRA_OEMAKE = ' MAKEFLAGS= '
8
9export OE_QMAKE_CC="${CC}"
10export OE_QMAKE_CFLAGS="${CFLAGS}"
11export OE_QMAKE_CXX="${CXX}"
12export OE_QMAKE_CXXFLAGS="-fno-exceptions -fno-rtti ${CXXFLAGS}"
13export OE_QMAKE_LDFLAGS="${LDFLAGS}"
14export OE_QMAKE_LINK="${CCLD}"
15export OE_QMAKE_AR="${AR}"
16export OE_QMAKE_STRIP="${STRIP}"
17export OE_QMAKE_UIC="${STAGING_BINDIR}/uic"
18export OE_QMAKE_MOC="${STAGING_BINDIR}/moc"
19export OE_QMAKE_RCC="non-existant"
20export OE_QMAKE_QMAKE="${STAGING_BINDIR}/qmake"
21export OE_QMAKE_RPATH="-Wl,-rpath-link,"
22
23# default to qte2 via bb.conf, inherit qt3x11 to configure for qt3x11
24export OE_QMAKE_INCDIR_QT="${QTDIR}/include"
25export OE_QMAKE_LIBDIR_QT="${QTDIR}/lib"
26export OE_QMAKE_LIBS_QT="qte"
27export OE_QMAKE_LIBS_X11=""
28
29oe_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