summaryrefslogtreecommitdiffstats
path: root/meta-agl-core/dynamic-layers/meta-qt5/recipes-qt/qt5
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2021-06-07 17:29:36 -0400
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2021-06-08 21:55:19 +0000
commit327c2ec6bc24dd13d6f49430bff613c573f19357 (patch)
tree6fc7cabdb1daa68b39e38bc1a37f8e30cd9ef517 /meta-agl-core/dynamic-layers/meta-qt5/recipes-qt/qt5
parent77492a798656108508458f527d60f969bef83bf7 (diff)
meta-agl-core: dynamically add qtbase bbappend
Add a dynamic layer addition for meta-qt5 that contains a qtbase bbappend with the required configuration changes for building it with Wayland support. The aim is to avoid duplication of these configuration changes among meta-agl-core users. Bug-AGL: SPEC-3972 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I642ad6e62c10da1b1c2323a13c7d5fa91ba9f028 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/26395 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'meta-agl-core/dynamic-layers/meta-qt5/recipes-qt/qt5')
-rw-r--r--meta-agl-core/dynamic-layers/meta-qt5/recipes-qt/qt5/qtbase_%.bbappend1
-rw-r--r--meta-agl-core/dynamic-layers/meta-qt5/recipes-qt/qt5/qtbase_aglcore.inc8
2 files changed, 9 insertions, 0 deletions
diff --git a/meta-agl-core/dynamic-layers/meta-qt5/recipes-qt/qt5/qtbase_%.bbappend b/meta-agl-core/dynamic-layers/meta-qt5/recipes-qt/qt5/qtbase_%.bbappend
new file mode 100644
index 000000000..aab944c2f
--- /dev/null
+++ b/meta-agl-core/dynamic-layers/meta-qt5/recipes-qt/qt5/qtbase_%.bbappend
@@ -0,0 +1 @@
+require ${@bb.utils.contains('AGL_FEATURES', 'aglcore', 'qtbase_aglcore.inc', '', d)}
diff --git a/meta-agl-core/dynamic-layers/meta-qt5/recipes-qt/qt5/qtbase_aglcore.inc b/meta-agl-core/dynamic-layers/meta-qt5/recipes-qt/qt5/qtbase_aglcore.inc
new file mode 100644
index 000000000..ae5444e13
--- /dev/null
+++ b/meta-agl-core/dynamic-layers/meta-qt5/recipes-qt/qt5/qtbase_aglcore.inc
@@ -0,0 +1,8 @@
+PACKAGECONFIG_WAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}"
+
+PACKAGECONFIG_GL = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)}"
+
+PACKAGECONFIG_append = " ${PACKAGECONFIG_WAYLAND}"
+
+# '-qpa wayland-egl' set wayland-egl as default of platform plugins
+PACKAGECONFIG[wayland]="-qpa wayland-egl -no-qpa-platform-guard"