summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/wayland
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2012-12-05 12:07:51 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-18 13:28:04 +0000
commit7cdfbc6b2fc853771fb3c53e6f7b3ef0ae4338bd (patch)
treef271de5c96beffcde244605796fa59d99575eae0 /meta/recipes-graphics/wayland
parent1e3372bdd1f662f5db5c4efd40649bd43a821ec8 (diff)
downloadpoky-7cdfbc6b2fc853771fb3c53e6f7b3ef0ae4338bd.tar.gz
weston: add reference Wayland compositor
This is the reference Wayland compositor. If the "wayland" DISTRO_FEATURE is present the KMS and Wayland (nested) compositors are enabled. If the "x11" DISTRO_FEATURE is present the X11 compositor is enabled, and a launcher installed. This also ships a basic Wayland terminal. Based on work by Alexandru Damian <alexandru.damian@intel.com>, Daniel Stone <daniel@fooishbar.org>, and Damien Lespiau <damien.lespiau@intel.com>. (From OE-Core rev: 94fcb80121b64974ff57b76275addaa684c559cf) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/wayland')
-rw-r--r--meta/recipes-graphics/wayland/weston/weston.desktop9
-rw-r--r--meta/recipes-graphics/wayland/weston/weston.pngbin0 -> 2383 bytes
-rw-r--r--meta/recipes-graphics/wayland/weston_1.0.3.bb52
3 files changed, 61 insertions, 0 deletions
diff --git a/meta/recipes-graphics/wayland/weston/weston.desktop b/meta/recipes-graphics/wayland/weston/weston.desktop
new file mode 100644
index 0000000000..1086ae8bf6
--- /dev/null
+++ b/meta/recipes-graphics/wayland/weston/weston.desktop
@@ -0,0 +1,9 @@
1[Desktop Entry]
2Encoding=UTF-8
3Type=Application
4Name=Weston
5Comment=Wayland Compostitor
6Exec=weston
7Icon=weston
8Terminal=false
9Categories=Utility;
diff --git a/meta/recipes-graphics/wayland/weston/weston.png b/meta/recipes-graphics/wayland/weston/weston.png
new file mode 100644
index 0000000000..ea8b7e0e23
--- /dev/null
+++ b/meta/recipes-graphics/wayland/weston/weston.png
Binary files differ
diff --git a/meta/recipes-graphics/wayland/weston_1.0.3.bb b/meta/recipes-graphics/wayland/weston_1.0.3.bb
new file mode 100644
index 0000000000..d192fb25d8
--- /dev/null
+++ b/meta/recipes-graphics/wayland/weston_1.0.3.bb
@@ -0,0 +1,52 @@
1SUMMARY = "Weston, a Wayland compositor"
2DESCRIPTION = "Weston is the reference implementation of a Wayland compositor"
3HOMEPAGE = "http://wayland.freedesktop.org"
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://COPYING;md5=275efac2559a224527bd4fd593d38466 \
6 file://src/compositor.c;endline=23;md5=aa98a8db03480fe7d500d0b1f4b8850c"
7
8SRC_URI = "http://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \
9 file://weston.png \
10 file://weston.desktop"
11SRC_URI[md5sum] = "f82ac2e013e6b6a6303ac4ba7b64c7f2"
12SRC_URI[sha256sum] = "3136a7d2f654ea3e946d4217f7e25321248ad2921f1f4e2504dda58968e04853"
13
14inherit autotools pkgconfig
15
16DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0 mtdev jpeg"
17DEPENDS += "wayland mesa-dri virtual/egl"
18
19EXTRA_OECONF = "--disable-android-compositor --enable-setuid-install"
20EXTRA_OECONF += "--disable-tablet-shell --disable-xwayland"
21EXTRA_OECONF += "--enable-simple-clients --enable-clients --disable-simple-egl-clients"
22
23PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'wayland', 'kms wayland', '', d)} \
24 ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
25 ${@base_contains('DISTRO_FEATURES', 'opengles2', 'gles', '', d)} \
26 "
27# Weston on KMS
28PACKAGECONFIG[kms] = "--enable-drm-compositor --enable-weston-launch,--disable-drm-compositor --disable-weston-launch,drm udev mesa-dri libpam"
29# Weston on Wayland (nested Weston)
30PACKAGECONFIG[wayland] = "--enable-wayland-compositor,--disable-wayland-compositor,mesa-dri"
31# Weston on X11
32PACKAGECONFIG[x11] = "--enable-x11-compositor,--disable-x11-compositor,virtual/libx11 libxcb libxcb libxcursor cairo"
33
34PACKAGECONFIG[gles] = "--with-cairo-glesv2,,virtual/libgles2"
35
36do_install_append() {
37 # Weston doesn't need the .la files to load modules, so wipe them
38 rm -f ${D}/${libdir}/weston/*.la
39
40 for feature in ${DISTRO_FEATURES}; do
41 # If X11, ship a desktop file to launch it
42 if [ "$feature" = "x11" ]; then
43 install -d ${D}${datadir}/applications
44 install ${WORKDIR}/weston.desktop ${D}${datadir}/applications
45
46 install -d ${D}${datadir}/icons/hicolor/48x48/apps
47 install ${WORKDIR}/weston.png ${D}${datadir}/icons/hicolor/48x48/apps
48 fi
49 done
50}
51
52FILES_${PN} += "${datadir}/applications ${datadir}/icons"