userland: Add wayland support

backport and fix needed patches for supporting wayland-egl
use PACKAGECONFIG for wayland so we can add proper DEPENDS on wayland
Fix QA warnings about dev-so

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2015-08-10 02:52:39 -07:00
committed by Andrei Gherzan
parent 4db634bcda
commit bfbe0ce3b4
8 changed files with 3093 additions and 1 deletions
+15 -1
View File
@@ -25,12 +25,25 @@ SRC_URI = "\
file://0005-user-vcsm-Fix-build-with-clang.patch \
file://0006-Fix-enum-type-conversion-warnings.patch \
file://0007-vcos_platform_types-Dont-use-extern-inline-with-clan.patch \
file://0008-Allow-applications-to-set-next-resource-handle.patch \
file://0009-wayland-Add-support-for-the-Wayland-winsys.patch \
file://0010-wayland-Add-Wayland-example.patch \
file://0011-wayland-egl-Add-bcm_host-to-dependencies.patch \
file://0012-interface-remove-faulty-assert-to-make-weston-happy-.patch \
file://0013-zero-out-wl-buffers-in-egl_surface_free.patch \
file://0014-initialize-front-back-wayland-buffers.patch \
"
S = "${WORKDIR}/git"
inherit cmake pkgconfig
EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS='-Wl,--no-as-needed'"
EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS='-Wl,--no-as-needed' \
"
PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}"
PACKAGECONFIG[wayland] = "-DBUILD_WAYLAND=TRUE,,wayland,"
CFLAGS_append = " -fPIC"
do_install_append () {
@@ -45,6 +58,7 @@ do_install_append () {
# to force the .so files into the runtime package (and keep them
# out of -dev package).
FILES_SOLIBSDEV = ""
INSANE_SKIP_${PN} += "dev-so"
FILES_${PN} += " \
${libdir}/*.so \