diff options
-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++) |