diff options
| author | Ross Burton <ross.burton@intel.com> | 2012-12-05 12:07:51 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-18 13:28:04 +0000 |
| commit | 7cdfbc6b2fc853771fb3c53e6f7b3ef0ae4338bd (patch) | |
| tree | f271de5c96beffcde244605796fa59d99575eae0 | |
| parent | 1e3372bdd1f662f5db5c4efd40649bd43a821ec8 (diff) | |
| download | poky-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>
| -rw-r--r-- | meta/recipes-graphics/wayland/weston/weston.desktop | 9 | ||||
| -rw-r--r-- | meta/recipes-graphics/wayland/weston/weston.png | bin | 0 -> 2383 bytes | |||
| -rw-r--r-- | meta/recipes-graphics/wayland/weston_1.0.3.bb | 52 |
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] | ||
| 2 | Encoding=UTF-8 | ||
| 3 | Type=Application | ||
| 4 | Name=Weston | ||
| 5 | Comment=Wayland Compostitor | ||
| 6 | Exec=weston | ||
| 7 | Icon=weston | ||
| 8 | Terminal=false | ||
| 9 | Categories=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 @@ | |||
| 1 | SUMMARY = "Weston, a Wayland compositor" | ||
| 2 | DESCRIPTION = "Weston is the reference implementation of a Wayland compositor" | ||
| 3 | HOMEPAGE = "http://wayland.freedesktop.org" | ||
| 4 | LICENSE = "MIT" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=275efac2559a224527bd4fd593d38466 \ | ||
| 6 | file://src/compositor.c;endline=23;md5=aa98a8db03480fe7d500d0b1f4b8850c" | ||
| 7 | |||
| 8 | SRC_URI = "http://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \ | ||
| 9 | file://weston.png \ | ||
| 10 | file://weston.desktop" | ||
| 11 | SRC_URI[md5sum] = "f82ac2e013e6b6a6303ac4ba7b64c7f2" | ||
| 12 | SRC_URI[sha256sum] = "3136a7d2f654ea3e946d4217f7e25321248ad2921f1f4e2504dda58968e04853" | ||
| 13 | |||
| 14 | inherit autotools pkgconfig | ||
| 15 | |||
| 16 | DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0 mtdev jpeg" | ||
| 17 | DEPENDS += "wayland mesa-dri virtual/egl" | ||
| 18 | |||
| 19 | EXTRA_OECONF = "--disable-android-compositor --enable-setuid-install" | ||
| 20 | EXTRA_OECONF += "--disable-tablet-shell --disable-xwayland" | ||
| 21 | EXTRA_OECONF += "--enable-simple-clients --enable-clients --disable-simple-egl-clients" | ||
| 22 | |||
| 23 | PACKAGECONFIG ??= "${@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 | ||
| 28 | PACKAGECONFIG[kms] = "--enable-drm-compositor --enable-weston-launch,--disable-drm-compositor --disable-weston-launch,drm udev mesa-dri libpam" | ||
| 29 | # Weston on Wayland (nested Weston) | ||
| 30 | PACKAGECONFIG[wayland] = "--enable-wayland-compositor,--disable-wayland-compositor,mesa-dri" | ||
| 31 | # Weston on X11 | ||
| 32 | PACKAGECONFIG[x11] = "--enable-x11-compositor,--disable-x11-compositor,virtual/libx11 libxcb libxcb libxcursor cairo" | ||
| 33 | |||
| 34 | PACKAGECONFIG[gles] = "--with-cairo-glesv2,,virtual/libgles2" | ||
| 35 | |||
| 36 | do_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 | |||
| 52 | FILES_${PN} += "${datadir}/applications ${datadir}/icons" | ||
