summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/wayland/weston_6.0.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/wayland/weston_6.0.1.bb')
-rw-r--r--meta/recipes-graphics/wayland/weston_6.0.1.bb49
1 files changed, 26 insertions, 23 deletions
diff --git a/meta/recipes-graphics/wayland/weston_6.0.1.bb b/meta/recipes-graphics/wayland/weston_6.0.1.bb
index 95b540333e..fe8f1b8c31 100644
--- a/meta/recipes-graphics/wayland/weston_6.0.1.bb
+++ b/meta/recipes-graphics/wayland/weston_6.0.1.bb
@@ -8,8 +8,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d79ee9e66bb0f95d3386a7acae780b70 \
8SRC_URI = "https://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \ 8SRC_URI = "https://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \
9 file://weston.png \ 9 file://weston.png \
10 file://weston.desktop \ 10 file://weston.desktop \
11 file://0001-make-error-portable.patch \
12 file://xwayland.weston-start \ 11 file://xwayland.weston-start \
12 file://0001-make-error-portable.patch \
13 file://0001-weston-launch-Provide-a-default-version-that-doesn-t.patch \ 13 file://0001-weston-launch-Provide-a-default-version-that-doesn-t.patch \
14" 14"
15SRC_URI[md5sum] = "e7b10710ef1eac82258f97bfd41fe534" 15SRC_URI[md5sum] = "e7b10710ef1eac82258f97bfd41fe534"
@@ -17,7 +17,7 @@ SRC_URI[sha256sum] = "bf2f6d5aae2e11cabb6bd69a76bcf9edb084f8c3e14ca769bea7234a51
17 17
18UPSTREAM_CHECK_URI = "https://wayland.freedesktop.org/releases.html" 18UPSTREAM_CHECK_URI = "https://wayland.freedesktop.org/releases.html"
19 19
20inherit autotools pkgconfig useradd distro_features_check 20inherit meson pkgconfig useradd distro_features_check
21# depends on virtual/egl 21# depends on virtual/egl
22REQUIRED_DISTRO_FEATURES = "opengl" 22REQUIRED_DISTRO_FEATURES = "opengl"
23 23
@@ -26,49 +26,48 @@ DEPENDS += "wayland wayland-protocols libinput virtual/egl pango wayland-native"
26 26
27WESTON_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:1])}" 27WESTON_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:1])}"
28 28
29EXTRA_OECONF = "--enable-setuid-install \ 29EXTRA_OEMESON += "-Dbackend-default=auto -Dbackend-rdp=false"
30 --disable-rdp-compositor \ 30
31 --enable-autotools \
32 "
33PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'kms fbdev wayland egl', '', d)} \ 31PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'kms fbdev wayland egl', '', d)} \
34 ${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xwayland', '', d)} \ 32 ${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xwayland', '', d)} \
35 ${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd x11', d)} \ 33 ${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd x11', d)} \
34 ${@bb.utils.contains_any('DISTRO_FEATURES', 'wayland x11', '', 'headless', d)} \
36 clients launch" 35 clients launch"
37# 36#
38# Compositor choices 37# Compositor choices
39# 38#
40# Weston on KMS 39# Weston on KMS
41PACKAGECONFIG[kms] = "--enable-drm-compositor,--disable-drm-compositor,drm udev virtual/mesa virtual/libgbm mtdev" 40PACKAGECONFIG[kms] = "-Dbackend-drm=true,-Dbackend-drm=false,drm udev virtual/mesa virtual/libgbm mtdev"
42# Weston on Wayland (nested Weston) 41# Weston on Wayland (nested Weston)
43PACKAGECONFIG[wayland] = "--enable-wayland-compositor,--disable-wayland-compositor,virtual/mesa" 42PACKAGECONFIG[wayland] = "-Dbackend-wayland=true,-Dbackend-wayland=false,virtual/mesa"
44# Weston on X11 43# Weston on X11
45PACKAGECONFIG[x11] = "--enable-x11-compositor,--disable-x11-compositor,virtual/libx11 libxcb libxcb libxcursor cairo" 44PACKAGECONFIG[x11] = "-Dbackend-x11=true,-Dbackend-x11=false,virtual/libx11 libxcb libxcb libxcursor cairo"
46# Headless Weston 45# Headless Weston
47PACKAGECONFIG[headless] = "--enable-headless-compositor,--disable-headless-compositor" 46PACKAGECONFIG[headless] = "-Dbackend-headless=true,-Dbackend-headless=false"
48# Weston on framebuffer 47# Weston on framebuffer
49PACKAGECONFIG[fbdev] = "--enable-fbdev-compositor,--disable-fbdev-compositor,udev mtdev" 48PACKAGECONFIG[fbdev] = "-Dbackend-fbdev=true,-Dbackend-fbdev=false,udev mtdev"
50# weston-launch 49# weston-launch
51PACKAGECONFIG[launch] = "--enable-weston-launch,--disable-weston-launch,drm" 50PACKAGECONFIG[launch] = "-Dweston-launch=true,-Dweston-launch=false,drm"
52# VA-API desktop recorder 51# VA-API desktop recorder
53PACKAGECONFIG[vaapi] = "--enable-vaapi-recorder,--disable-vaapi-recorder,libva" 52PACKAGECONFIG[vaapi] = "-Dbackend-drm-screencast-vaapi=true,-Dbackend-drm-screencast-vaapi=false,libva"
54# Weston with EGL support 53# Weston with EGL support
55PACKAGECONFIG[egl] = "--enable-egl --enable-simple-egl-clients,--disable-egl --disable-simple-egl-clients,virtual/egl" 54PACKAGECONFIG[egl] = "-Drenderer-gl=true,-Drenderer-gl=false,virtual/egl"
56# Weston with cairo glesv2 support
57PACKAGECONFIG[cairo-glesv2] = "--with-cairo-glesv2,--with-cairo=image,cairo"
58# Weston with lcms support 55# Weston with lcms support
59PACKAGECONFIG[lcms] = "--enable-lcms,--disable-lcms,lcms" 56PACKAGECONFIG[lcms] = "-Dcolor-management-lcms=true,-Dcolor-management-lcms=false,lcms"
60# Weston with webp support 57# Weston with webp support
61PACKAGECONFIG[webp] = "--with-webp,--without-webp,libwebp" 58PACKAGECONFIG[webp] = "-Dimage-webp=true,-Dimage-webp=false,libwebp"
62# Weston with systemd-login support 59# Weston with systemd-login support
63PACKAGECONFIG[systemd] = "--enable-systemd-login,--disable-systemd-login,systemd dbus" 60PACKAGECONFIG[systemd] = "-Dsystemd=true -Dlauncher-logind=true,-Dsystemd=false -Dlauncher-logind=false,systemd dbus"
64# Weston with Xwayland support (requires X11 and Wayland) 61# Weston with Xwayland support (requires X11 and Wayland)
65PACKAGECONFIG[xwayland] = "--enable-xwayland,--disable-xwayland" 62PACKAGECONFIG[xwayland] = "-Dxwayland=true,-Dxwayland=false"
66# colord CMS support 63# colord CMS support
67PACKAGECONFIG[colord] = "--enable-colord,--disable-colord,colord" 64PACKAGECONFIG[colord] = "-Dcolor-management-colord=true,-Dcolor-management-colord=false,colord"
68# Clients support 65# Clients support
69PACKAGECONFIG[clients] = "--enable-clients --enable-simple-clients --enable-demo-clients-install,--disable-clients --disable-simple-clients" 66PACKAGECONFIG[clients] = "-Dsimple-clients=all -Ddemo-clients=true,-Dsimple-clients= -Ddemo-clients=false"
67# Virtual remote output with GStreamer on DRM backend
68PACKAGECONFIG[remoting] = "-Dremoting=true,-Dremoting=false,gstreamer-1.0"
70# Weston with PAM support 69# Weston with PAM support
71PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam" 70PACKAGECONFIG[pam] = "-Dpam=true,-Dpam=false,libpam"
72 71
73do_install_append() { 72do_install_append() {
74 # Weston doesn't need the .la files to load modules, so wipe them 73 # Weston doesn't need the .la files to load modules, so wipe them
@@ -86,6 +85,10 @@ do_install_append() {
86 if [ "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', 'yes', 'no', d)}" = "yes" ]; then 85 if [ "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', 'yes', 'no', d)}" = "yes" ]; then
87 install -Dm 644 ${WORKDIR}/xwayland.weston-start ${D}${datadir}/weston-start/xwayland 86 install -Dm 644 ${WORKDIR}/xwayland.weston-start ${D}${datadir}/weston-start/xwayland
88 fi 87 fi
88
89 if [ "${@bb.utils.contains('PACKAGECONFIG', 'launch', 'yes', 'no', d)}" = "yes" ]; then
90 chmod u+s ${D}${bindir}/weston-launch
91 fi
89} 92}
90 93
91PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', '${PN}-xwayland', '', d)} \ 94PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', '${PN}-xwayland', '', d)} \