diff options
author | Mikko Levonmaa <mikko.levonmaa@palm.com> | 2012-11-15 20:38:27 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2012-11-15 21:57:18 +0100 |
commit | 13ed17b2baeb253961885c469ba3c97b9ed420e5 (patch) | |
tree | 968d09fb06656497dfd799558f5e651c50fffcb3 /classes | |
parent | 4ec2e9d2d8184f4da4de86711db34012317f3114 (diff) | |
download | meta-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.bbclass | 22 | ||||
-rw-r--r-- | classes/qmake5_base.bbclass | 35 |
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 | # | ||
4 | inherit qmake5_base | ||
5 | |||
6 | QT5TOOLSDEPENDS ?= "qt5-native " | ||
7 | DEPENDS_prepend = "${QT5TOOLSDEPENDS}" | ||
8 | |||
9 | export QMAKESPEC = "${STAGING_DATADIR_NATIVE}/qt5/mkspecs/${TARGET_OS}-oe-g++" | ||
10 | export OE_QMAKE_UIC = "${STAGING_BINDIR_NATIVE}/uic" | ||
11 | export OE_QMAKE_MOC = "${STAGING_BINDIR_NATIVE}/moc" | ||
12 | export OE_QMAKE_RCC = "${STAGING_BINDIR_NATIVE}/rcc" | ||
13 | export OE_QMAKE_QMAKE = "${STAGING_BINDIR_NATIVE}/qmake" | ||
14 | export OE_QMAKE_LINK = "${CXX}" | ||
15 | export OE_QMAKE_CXXFLAGS = "${CXXFLAGS}" | ||
16 | export OE_QMAKE_INCDIR_QT = "${STAGING_INCDIR}/qt5" | ||
17 | export OE_QMAKE_LIBDIR_QT = "${STAGING_LIBDIR}" | ||
18 | export OE_QMAKE_LIBS_QT = "qt" | ||
19 | export OE_QMAKE_LIBS_X11 = "-lXext -lX11 -lm" | ||
20 | export OE_QMAKE_LIBS_X11SM = "-lSM -lICE" | ||
21 | export OE_QMAKE_LRELEASE = "${STAGING_BINDIR_NATIVE}/lrelease5" | ||
22 | export 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 | ||
3 | EXTRA_OEMAKE = ' MAKEFLAGS= ' | ||
4 | |||
5 | export OE_QMAKE_CC="${CC}" | ||
6 | export OE_QMAKE_CFLAGS="${CFLAGS}" | ||
7 | export OE_QMAKE_CXX="${CXX}" | ||
8 | export OE_QMAKE_LDFLAGS="${LDFLAGS}" | ||
9 | export OE_QMAKE_AR="${AR} cqs" | ||
10 | export OE_QMAKE_STRIP="echo" | ||
11 | export OE_QMAKE_RPATH="-Wl,-rpath-link," | ||
12 | |||
13 | # do not export STRIP to the environment | ||
14 | STRIP[unexport] = "1" | ||
15 | |||
16 | do_generate_qt_config_file() { | ||
17 | export QT_CONF_PATH=${WORKDIR}/qt.conf | ||
18 | cat > ${WORKDIR}/qt.conf <<EOF | ||
19 | [Paths] | ||
20 | Prefix = | ||
21 | Binaries = ${STAGING_BINDIR_NATIVE} | ||
22 | Headers = ${STAGING_INCDIR}/qt5 | ||
23 | Plugins = ${STAGING_LIBDIR}/qt5/plugins/ | ||
24 | Libraries = ${STAGING_LIBDIR}/qt5-test | ||
25 | Mkspecs = ${STAGING_DATADIR}/qt5/mkspecs/ | ||
26 | HostData = ${STAGING_DATADIR_NATIVE}/qt5 | ||
27 | HostBinaries = ${STAGING_BINDIR_NATIVE}/ | ||
28 | EOF | ||
29 | } | ||
30 | |||
31 | addtask 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 | ||