summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorMikko Levonmaa <mikko.levonmaa@palm.com>2012-11-15 20:38:27 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2012-11-15 21:57:18 +0100
commit13ed17b2baeb253961885c469ba3c97b9ed420e5 (patch)
tree968d09fb06656497dfd799558f5e651c50fffcb3 /classes
parent4ec2e9d2d8184f4da4de86711db34012317f3114 (diff)
downloadmeta-qt5-13ed17b2baeb253961885c469ba3c97b9ed420e5.tar.gz
qtbase: add recipe for git version
Signed-off-by: Mikko Levonmaa <mikko.levonmaa@palm.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/qmake5.bbclass22
-rw-r--r--classes/qmake5_base.bbclass35
2 files changed, 57 insertions, 0 deletions
diff --git a/classes/qmake5.bbclass b/classes/qmake5.bbclass
new file mode 100644
index 00000000..b30b1507
--- /dev/null
+++ b/classes/qmake5.bbclass
@@ -0,0 +1,22 @@
1#
2# QMake variables for Qt
3#
4inherit qmake5_base
5
6QT5TOOLSDEPENDS ?= "qt5-native "
7DEPENDS_prepend = "${QT5TOOLSDEPENDS}"
8
9export QMAKESPEC = "${STAGING_DATADIR_NATIVE}/qt5/mkspecs/${TARGET_OS}-oe-g++"
10export OE_QMAKE_UIC = "${STAGING_BINDIR_NATIVE}/uic"
11export OE_QMAKE_MOC = "${STAGING_BINDIR_NATIVE}/moc"
12export OE_QMAKE_RCC = "${STAGING_BINDIR_NATIVE}/rcc"
13export OE_QMAKE_QMAKE = "${STAGING_BINDIR_NATIVE}/qmake"
14export OE_QMAKE_LINK = "${CXX}"
15export OE_QMAKE_CXXFLAGS = "${CXXFLAGS}"
16export OE_QMAKE_INCDIR_QT = "${STAGING_INCDIR}/qt5"
17export OE_QMAKE_LIBDIR_QT = "${STAGING_LIBDIR}"
18export OE_QMAKE_LIBS_QT = "qt"
19export OE_QMAKE_LIBS_X11 = "-lXext -lX11 -lm"
20export OE_QMAKE_LIBS_X11SM = "-lSM -lICE"
21export OE_QMAKE_LRELEASE = "${STAGING_BINDIR_NATIVE}/lrelease5"
22export OE_QMAKE_LUPDATE = "${STAGING_BINDIR_NATIVE}/lupdate5"
diff --git a/classes/qmake5_base.bbclass b/classes/qmake5_base.bbclass
new file mode 100644
index 00000000..fc90429f
--- /dev/null
+++ b/classes/qmake5_base.bbclass
@@ -0,0 +1,35 @@
1
2# We override this completely to eliminate the -e normally passed in
3EXTRA_OEMAKE = ' MAKEFLAGS= '
4
5export OE_QMAKE_CC="${CC}"
6export OE_QMAKE_CFLAGS="${CFLAGS}"
7export OE_QMAKE_CXX="${CXX}"
8export OE_QMAKE_LDFLAGS="${LDFLAGS}"
9export OE_QMAKE_AR="${AR} cqs"
10export OE_QMAKE_STRIP="echo"
11export OE_QMAKE_RPATH="-Wl,-rpath-link,"
12
13# do not export STRIP to the environment
14STRIP[unexport] = "1"
15
16do_generate_qt_config_file() {
17 export QT_CONF_PATH=${WORKDIR}/qt.conf
18 cat > ${WORKDIR}/qt.conf <<EOF
19[Paths]
20Prefix =
21Binaries = ${STAGING_BINDIR_NATIVE}
22Headers = ${STAGING_INCDIR}/qt5
23Plugins = ${STAGING_LIBDIR}/qt5/plugins/
24Libraries = ${STAGING_LIBDIR}/qt5-test
25Mkspecs = ${STAGING_DATADIR}/qt5/mkspecs/
26HostData = ${STAGING_DATADIR_NATIVE}/qt5
27HostBinaries = ${STAGING_BINDIR_NATIVE}/
28EOF
29}
30
31addtask generate_qt_config_file after do_patch before do_configure
32
33#EXPORT_FUNCTIONS do_configure
34
35#addtask configure after do_unpack do_patch before do_compile