diff mbox series

[meta-xfce] xfce4-screenshooter: Fix build for wayland systems

Message ID 20250703011925.1469842-1-raj.khem@gmail.com
State New
Headers show
Series [meta-xfce] xfce4-screenshooter: Fix build for wayland systems | expand

Commit Message

Khem Raj July 3, 2025, 1:19 a.m. UTC
Ensure that wayland-scanner is added to dependencies
Create protocols directory as well where the .c files generated
during build are emitted into.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../xfce4-screenshooter/xfce4-screenshooter_1.10.6.bb     | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-xfce/recipes-apps/xfce4-screenshooter/xfce4-screenshooter_1.10.6.bb b/meta-xfce/recipes-apps/xfce4-screenshooter/xfce4-screenshooter_1.10.6.bb
index 8778ff3451..f843b9459e 100644
--- a/meta-xfce/recipes-apps/xfce4-screenshooter/xfce4-screenshooter_1.10.6.bb
+++ b/meta-xfce/recipes-apps/xfce4-screenshooter/xfce4-screenshooter_1.10.6.bb
@@ -9,9 +9,13 @@  inherit xfce-app perlnative
 
 SRC_URI[sha256sum] = "992066cfecfb44a68681340bfd55d524d40410aac3da6ef25c6c6cb2150a5965"
 
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland', d)}"
+PACKAGECONFIG[wayland] = "--enable-wayland, --disable-wayland, wayland-native wayland"
+
+EXTRA_OECONF += "WAYLAND_SCANNER=${STAGING_BINDIR_NATIVE}/wayland-scanner"
+
 do_compile:prepend() {
-    mkdir -p lib
-    mkdir -p src panel-plugin
+    mkdir -p lib src panel-plugin protocols
 }
 
 FILES:${PN} += " \