1require qt5.inc 2require qt5-git.inc 3 4inherit pkgconfig 5 6DEPENDS += "qtbase qtdeclarative wayland wayland-native qtwayland-native" 7DEPENDS:append:class-target = " libxkbcommon" 8 9LICENSE = "GFDL-1.3 & BSD-3-Clause & ( GPL-3.0-only & The-Qt-Company-GPL-Exception-1.0 | The-Qt-Company-Commercial ) & ( GPL-2.0-or-later | LGPL-3.0-only | The-Qt-Company-Commercial )" 10LIC_FILES_CHKSUM = " \ 11 file://LICENSE.LGPL3;md5=e6a600fd5e1d9cbde2d983680233ad02 \ 12 file://LICENSE.GPL2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ 13 file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \ 14 file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073 \ 15 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ 16" 17 18# Patches from https://github.com/meta-qt5/qtwayland/commits/b5.15 19# 5.15.meta-qt5.1 20SRC_URI += "file://0001-tst_seatv4-Include-array.patch \ 21 file://0001-linux-dmabuf-unstable-v1-Include-missing-array-heade.patch \ 22 file://0001-Fix-vulkan-buffer-formats-for-GLES2.patch \ 23 file://0001-qwaylandinputcontext-Include-missing-header-locale.h.patch \ 24 " 25 26PACKAGECONFIG ?= " \ 27 wayland-client \ 28 wayland-server \ 29 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl wayland', 'wayland-egl', '', d)} \ 30 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xcomposite-egl xcomposite-glx', '', d)} \ 31 ${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'wayland-vulkan-server-buffer', '', d)} \ 32" 33PACKAGECONFIG:class-native ?= "" 34PACKAGECONFIG:class-nativesdk ?= "" 35QMAKE_PROFILES:class-native = "${S}/src/qtwaylandscanner" 36QMAKE_PROFILES:class-nativesdk = "${S}/src/qtwaylandscanner" 37B:class-native = "${SEPB}/src/qtwaylandscanner" 38B:class-nativesdk = "${SEPB}/src/qtwaylandscanner" 39 40PACKAGECONFIG[wayland-client] = "-feature-wayland-client,-no-feature-wayland-client" 41PACKAGECONFIG[wayland-server] = "-feature-wayland-server,-no-feature-wayland-server" 42PACKAGECONFIG[xcomposite-egl] = "-feature-xcomposite-egl,-no-feature-xcomposite-egl,libxcomposite" 43PACKAGECONFIG[xcomposite-glx] = "-feature-xcomposite-glx,-no-feature-xcomposite-glx,virtual/mesa" 44PACKAGECONFIG[wayland-egl] = "-feature-wayland-egl,-no-feature-wayland-egl,virtual/egl" 45PACKAGECONFIG[wayland-brcm] = "-feature-wayland-brcm,-no-feature-wayland-brcm,virtual/egl" 46PACKAGECONFIG[wayland-drm-egl-server-buffer] = "-feature-wayland-drm-egl-server-buffer,-no-feature-wayland-drm-egl-server-buffer,libdrm virtual/egl" 47PACKAGECONFIG[wayland-libhybris-egl-server-buffer] = "-feature-wayland-libhybris-egl-server-buffer,-no-feature-wayland-libhybris-egl-server-buffer,libhybris" 48PACKAGECONFIG[wayland-vulkan-server-buffer] = "-feature-wayland-vulkan-server-buffer,-no-feature-wayland-vulkan-server-buffer,vulkan-headers" 49 50EXTRA_QMAKEVARS_CONFIGURE += "${PACKAGECONFIG_CONFARGS}" 51 52SRCREV = "533fff12f7c4beb177b56b766c71b1c7384e6229" 53 54BBCLASSEXTEND =+ "native nativesdk" 55 56# The same issue as in qtbase: 57# http://errors.yoctoproject.org/Errors/Details/152641/ 58LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" 59