diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2011-05-08 18:13:14 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-11 16:09:56 +0100 |
commit | b137f47a68272da1205fd4a26e9c57fbcfd494b7 (patch) | |
tree | f62623a260e40d8e0ec46a389a6ae737853df8f1 /meta | |
parent | ee98c2b095b991901b6c2125b2428985c873b4bd (diff) | |
download | openembedded-core-b137f47a68272da1205fd4a26e9c57fbcfd494b7.tar.gz openembedded-core-b137f47a68272da1205fd4a26e9c57fbcfd494b7.tar.bz2 openembedded-core-b137f47a68272da1205fd4a26e9c57fbcfd494b7.zip |
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.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/qmake_base.bbclass | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/classes/qmake_base.bbclass b/meta/classes/qmake_base.bbclass index 24a0f11f46..a054efd249 100644 --- a/meta/classes/qmake_base.bbclass +++ b/meta/classes/qmake_base.bbclass @@ -31,6 +31,20 @@ oe_qmake_mkspecs () { done } +do_generate_qt_config_file() { + export QT_CONF_PATH=${WORKDIR}/qt.conf + cat > ${WORKDIR}/qt.conf <<EOF +[Paths] +Prefix = +Binaries = ${STAGING_BINDIR_NATIVE} +Headers = ${STAGING_INCDIR}/qt4 +Plugins = ${STAGING_LIBDIR}/qt4/plugins/ +Mkspecs = ${STAGING_DATADIR}/qt4/mkspecs/ +EOF +} + +addtask generate_qt_config_file after do_patch before do_configure + qmake_base_do_configure() { case ${QMAKESPEC} in *linux-oe-g++|*linux-uclibc-oe-g++|*linux-gnueabi-oe-g++) |