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:41:52 +0100 |
commit | 754b178d8ad66eb533af685e5317342dd267b1e8 (patch) | |
tree | e32f602afcc0e6f622d7a657bcb2fc34acd649d9 | |
parent | 9c272d93c68cf40de300f9bf4b51eae5116178e2 (diff) | |
download | poky-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.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 () { | |||
31 | done | 31 | done |
32 | } | 32 | } |
33 | 33 | ||
34 | do_generate_qt_config_file() { | ||
35 | export QT_CONF_PATH=${WORKDIR}/qt.conf | ||
36 | cat > ${WORKDIR}/qt.conf <<EOF | ||
37 | [Paths] | ||
38 | Prefix = | ||
39 | Binaries = ${STAGING_BINDIR_NATIVE} | ||
40 | Headers = ${STAGING_INCDIR}/qt4 | ||
41 | Plugins = ${STAGING_LIBDIR}/qt4/plugins/ | ||
42 | Mkspecs = ${STAGING_DATADIR}/qt4/mkspecs/ | ||
43 | EOF | ||
44 | } | ||
45 | |||
46 | addtask generate_qt_config_file after do_patch before do_configure | ||
47 | |||
34 | qmake_base_do_configure() { | 48 | qmake_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++) |