Skip to contentSkip to conversation

qtwayland: handle examples, tests PACKAGECONFIG

PATCH In review [email protected] 2 participants 2 messages Mar 16, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qtwayland: handle examples, tests PACKAGECONFIG

From: Ming Liu <[email protected]>

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.

---
 recipes-qt/qt5/qtwayland_git.bb | 3 +++
 1 file changed, 3 insertions(+)
recipes-qt/qt5/qtwayland_git.bb +3 -0
index 91ffcd7..aece932 100644
@@ -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"
Signature · 1 line
2.7.4
#1 lore raw

This happens on every module, but only if you have examples enabled in
qtbase: https://github.com/meta-qt5/meta-qt5/commit/909858baf064216a3b221edb59b40cc93d536a44

Quoted 34 lines · On 16 March 2018 at 11:00, <[email protected]> wrote:

From: Ming Liu <[email protected]>

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.

---
 recipes-qt/qt5/qtwayland_git.bb | 3 +++
 1 file changed, 3 insertions(+)
recipes-qt/qt5/qtwayland_git.bb +3 -1
index 91ffcd7..aece932 100644
@@ -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

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel