[oe] [meta-qt5] [PATCH] qtwayland: handle examples, tests PACKAGECONFIG

liu.ming50 at gmail.com liu.ming50 at gmail.com
Fri Mar 16 09:00:09 UTC 2018


From: Ming Liu <liu.ming50 at gmail.com>

The examples and tests parts of qtwayland are enabled by default even
they are not passed by QT_BUILD_PARTS, so we need special logic set
in qtwayland to explicitly disable them if they are not being chosen
in PACKAGECONFIG.

Signed-off-by: Ming Liu <liu.ming50 at gmail.com>
---
 recipes-qt/qt5/qtwayland_git.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/recipes-qt/qt5/qtwayland_git.bb b/recipes-qt/qt5/qtwayland_git.bb
index 91ffcd7..aece932 100644
--- a/recipes-qt/qt5/qtwayland_git.bb
+++ b/recipes-qt/qt5/qtwayland_git.bb
@@ -35,6 +35,9 @@ PACKAGECONFIG[wayland-brcm] = "-feature-wayland-brcm,-no-feature-wayland-brcm,vi
 PACKAGECONFIG[drm-egl-server] = "-feature-drm-egl-server,-no-feature-drm-egl-server,libdrm virtual/egl"
 PACKAGECONFIG[libhybris-egl-server] = "-feature-libhybris-egl-server,-no-feature-libhybris-egl-server,libhybris"
 
+EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'examples', '', 'QT_BUILD_PARTS-=examples', d)}"
+EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'tests', '', 'QT_BUILD_PARTS-=tests', d)}"
+
 EXTRA_QMAKEVARS_CONFIGURE += "${PACKAGECONFIG_CONFARGS}"
 
 SRCREV = "db36bc0d9ccae21e84cd54be3e18ae539542eadc"
-- 
2.7.4




More information about the Openembedded-devel mailing list