diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2015-02-18 21:57:57 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2015-02-19 15:55:39 +0100 |
commit | d9c741cce23ed6ff741ed67b77f57e04e5b440b8 (patch) | |
tree | f8a78052e2c10acc827cf2a316fa5da2fe4fca26 /classes | |
parent | f90537a7decfa5599606d3290bc25de02bfa5796 (diff) | |
download | meta-qt5-d9c741cce23ed6ff741ed67b77f57e04e5b440b8.tar.gz |
qmake5: don't always look in directories recursively
QT needs to be compiled without the -r parameter from the qmake command
line. This is necessary to avoid those errors when building
qtdeclarative or qt3d without opengl for example:
Project ERROR: Unknown module(s) in QT: quick-private
or
Project ERROR: Unknown module(s) in QT: quick
Also update comments regarding the dependencies.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/qmake5_base.bbclass | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/classes/qmake5_base.bbclass b/classes/qmake5_base.bbclass index e7b85e35..44575c4c 100644 --- a/classes/qmake5_base.bbclass +++ b/classes/qmake5_base.bbclass | |||
@@ -13,6 +13,9 @@ OE_QMAKE_PLATFORM = "linux-oe-g++" | |||
13 | # Add -d to show debug output from every qmake call, but it prints *a lot*, better to add it only to debugged recipe | 13 | # Add -d to show debug output from every qmake call, but it prints *a lot*, better to add it only to debugged recipe |
14 | OE_QMAKE_DEBUG_OUTPUT ?= "" | 14 | OE_QMAKE_DEBUG_OUTPUT ?= "" |
15 | 15 | ||
16 | # Look through supplied directories recursively by default | ||
17 | OE_QMAKE_RECURSIVE ?= "-r" | ||
18 | |||
16 | # Paths in .prl files contain SYSROOT value | 19 | # Paths in .prl files contain SYSROOT value |
17 | SSTATE_SCAN_FILES += "*.pri *.prl *.prf" | 20 | SSTATE_SCAN_FILES += "*.pri *.prl *.prf" |
18 | 21 | ||
@@ -159,8 +162,8 @@ qmake5_base_do_configure () { | |||
159 | # for config.tests to read this | 162 | # for config.tests to read this |
160 | export QMAKE_MAKE_ARGS="${EXTRA_OEMAKE}" | 163 | export QMAKE_MAKE_ARGS="${EXTRA_OEMAKE}" |
161 | 164 | ||
162 | CMD="${OE_QMAKE_QMAKE} -makefile -o Makefile ${OE_QMAKE_DEBUG_OUTPUT} -r $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST" | 165 | CMD="${OE_QMAKE_QMAKE} -makefile -o Makefile ${OE_QMAKE_DEBUG_OUTPUT} ${OE_QMAKE_RECURSIVE} $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST" |
163 | ${OE_QMAKE_QMAKE} -makefile -o Makefile ${OE_QMAKE_DEBUG_OUTPUT} -r $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST || die "Error calling $CMD" | 166 | ${OE_QMAKE_QMAKE} -makefile -o Makefile ${OE_QMAKE_DEBUG_OUTPUT} ${OE_QMAKE_RECURSIVE} $QMAKE_VARSUBST_PRE $AFTER $PROFILES $QMAKE_VARSUBST_POST || die "Error calling $CMD" |
164 | } | 167 | } |
165 | 168 | ||
166 | qmake5_base_do_install() { | 169 | qmake5_base_do_install() { |