summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2011-05-08 18:13:14 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-11 15:41:52 (GMT)
commit754b178d8ad66eb533af685e5317342dd267b1e8 (patch)
treee32f602afcc0e6f622d7a657bcb2fc34acd649d9
parent9c272d93c68cf40de300f9bf4b51eae5116178e2 (diff)
downloadpoky-754b178d8ad66eb533af685e5317342dd267b1e8.tar.gz
qmake_base.bbclass: add generate_qt_config_file task
This writes a qt.conf inside WORKDIR to properly configure projects based on CMake. This is required since qmake variables (returned by -query command) are fixed into the binary and can only be changed using a qt.conf file. (From OE-Core rev: b137f47a68272da1205fd4a26e9c57fbcfd494b7) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/qmake_base.bbclass14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/classes/qmake_base.bbclass b/meta/classes/qmake_base.bbclass
index 24a0f11..a054efd 100644
--- a/meta/classes/qmake_base.bbclass
+++ b/meta/classes/qmake_base.bbclass
@@ -31,6 +31,20 @@ oe_qmake_mkspecs () {
31 done 31 done
32} 32}
33 33
34do_generate_qt_config_file() {
35 export QT_CONF_PATH=${WORKDIR}/qt.conf
36 cat > ${WORKDIR}/qt.conf <<EOF
37[Paths]
38Prefix =
39Binaries = ${STAGING_BINDIR_NATIVE}
40Headers = ${STAGING_INCDIR}/qt4
41Plugins = ${STAGING_LIBDIR}/qt4/plugins/
42Mkspecs = ${STAGING_DATADIR}/qt4/mkspecs/
43EOF
44}
45
46addtask generate_qt_config_file after do_patch before do_configure
47
34qmake_base_do_configure() { 48qmake_base_do_configure() {
35 case ${QMAKESPEC} in 49 case ${QMAKESPEC} in
36 *linux-oe-g++|*linux-uclibc-oe-g++|*linux-gnueabi-oe-g++) 50 *linux-oe-g++|*linux-uclibc-oe-g++|*linux-gnueabi-oe-g++)