weston_aglcore.inc: Always build the PipeWire backend 11/30611/6
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 4 Dec 2024 15:53:50 +0000 (17:53 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Fri, 13 Dec 2024 11:54:09 +0000 (11:54 +0000)
We need the PipeWire backend in agl-kvm-demo but it might be useful in
other builds as well, so let's build it by default. Other users can just
include the package when they require it.

Furthermore, with this change we remove weston-remoting and with it we
no longer build remoting plug-in when agl-weston-remoting feature is
supplied.

Bug-AGL: SPEC-5235
Change-Id: I140c46aa33ce832100f4e696aa3bcfef6d43522a
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/30611
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
meta-agl-core/recipes-graphics/wayland/weston_13.0_aglcore.inc

index 0b5dae7..e2e18c1 100644 (file)
@@ -1,13 +1,13 @@
 FILESEXTRAPATHS:append := ":${THISDIR}/weston"
 
-PACKAGECONFIG:append = "${@bb.utils.contains('DISTRO_FEATURES', 'weston-remoting', ' remoting', '', d)}"
-
 SRC_URI:append = " \
                  file://0001-clients-Handle-missing-pointer_surface-is-there-s-no.patch \
                  file://0001-backend-drm-don-t-leak-gem_handle_refcnt-in-drm_dest.patch \
                  file://0002-backend-drm-always-create-gem_handle_refcnt-hash-tab.patch \
 "
 
+PACKAGECONFIG:append = " pipewire "
+WESTON_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:1])}"
 
 # Split weston-terminal out of the main package to allow installing it
 # separately for use with other compositors.  The icons, etc. that end
@@ -16,8 +16,9 @@ SRC_URI:append = " \
 # packaged in weston-examples in addition to ivi-shell in the main
 # package.
 
-PACKAGE_BEFORE_PN += "${PN}-data ${PN}-terminal"
+PACKAGE_BEFORE_PN += "${PN}-data ${PN}-terminal ${PN}-pipewire"
 
+FILES:${PN}-pipewire = "${libdir}/libweston-${WESTON_MAJOR_VERSION}/pipewire-backend.so"
 FILES:${PN}-data = "${datadir}/weston"
 
 FILES:${PN}-terminal = "${bindir}/weston-terminal"