aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2022-02-02 08:42:51 +0000
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-02-04 11:44:22 +0000
commit87c5d8ffcc7d0bab4fdebf3a92ed2c5b6a194e97 (patch)
treea14db1894f590cb034179fce10d64494d296e08b
parent4d361d1a895875996e416df6807163660e7963e6 (diff)
ptest: allow ptest to be disabled for all Qt modules
For static Qt builds, it's useful to allow disabling ptest for all Qt modules without removing ptest from DISTRO_FEATURES, since that would cause rebuild of most of the system components. Change-Id: I32aa202ce8e4a1260e287b0625495ef828536511 Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io> (cherry picked from commit a730a1f029fd061294e644392e5cfe86307a7468) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--recipes-qt/qt6/qt6-ptest.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes-qt/qt6/qt6-ptest.inc b/recipes-qt/qt6/qt6-ptest.inc
index c998d30..5191fe1 100644
--- a/recipes-qt/qt6/qt6-ptest.inc
+++ b/recipes-qt/qt6/qt6-ptest.inc
@@ -3,6 +3,9 @@ SRC_URI += "file://run-ptest"
inherit ptest
+QT_PTEST_ENABLED ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '1', '0', d)}"
+PTEST_ENABLED = "${QT_PTEST_ENABLED}"
+
fakeroot do_install_ptest() {
if [ -n "${OE_QMAKE_QMAKE}" ]; then
# qmake project