diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2019-11-18 15:40:16 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2020-01-11 14:59:12 +0100 |
commit | fd7ac089917f8f15240bcb650ecd53301383ff7d (patch) | |
tree | c8a0e4da844f88df3a2bf67a229390a9ee77ae4d | |
parent | 1a7c8fa42c3bbfb296560df56e43a7618f4874a1 (diff) | |
download | meta-qt5-fd7ac089917f8f15240bcb650ecd53301383ff7d.tar.gz |
qt5: use PACKAGECONFIG to disable tests and examples
Currently if qtbase has tests or examples enabled, they will
be enabled for every Qt module as well. Change the PACKAGECONFIG
options so that they need to be explicitly enabled for each Qt module.
Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
-rw-r--r-- | recipes-qt/qt5/qt5.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes-qt/qt5/qt5.inc b/recipes-qt/qt5/qt5.inc index e0cd8949..6f9a83c4 100644 --- a/recipes-qt/qt5/qt5.inc +++ b/recipes-qt/qt5/qt5.inc | |||
@@ -8,8 +8,8 @@ PACKAGECONFIG_OPENSSL ?= "openssl" | |||
8 | PACKAGECONFIG[examples] = "" | 8 | PACKAGECONFIG[examples] = "" |
9 | PACKAGECONFIG[tests] = "" | 9 | PACKAGECONFIG[tests] = "" |
10 | PACKAGECONFIG[qtquickcompiler] = ",,qtdeclarative-native" | 10 | PACKAGECONFIG[qtquickcompiler] = ",,qtdeclarative-native" |
11 | EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'examples', 'QT_BUILD_PARTS+=examples', '', d)}" | 11 | EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'examples', 'QT_BUILD_PARTS+=examples', 'QT_BUILD_PARTS-=examples', d)}" |
12 | EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'tests', 'QT_BUILD_PARTS+=tests', '', d)}" | 12 | EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'tests', 'QT_BUILD_PARTS+=tests', 'QT_BUILD_PARTS-=tests', d)}" |
13 | EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'qtquickcompiler', 'CONFIG+=qtquickcompiler', '', d)}" | 13 | EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'qtquickcompiler', 'CONFIG+=qtquickcompiler', '', d)}" |
14 | 14 | ||
15 | # we don't want conflicts with qt4 | 15 | # we don't want conflicts with qt4 |