File kodi_wayland_include.patch of Package kodi-next
diff -uNr kodi-19.0~alpha2.20201031T035652.orig/cmake/scripts/linux/ExtraTargets.cmake kodi-19.0~alpha2.20201031T035652/cmake/scripts/linux/ExtraTargets.cmake
--- kodi-19.0~alpha2.20201031T035652.orig/cmake/scripts/linux/ExtraTargets.cmake 2020-10-31 03:56:52.000000000 +0100
+++ kodi-19.0~alpha2.20201031T035652/cmake/scripts/linux/ExtraTargets.cmake 2020-11-01 07:13:37.017759900 +0100
@@ -15,6 +15,11 @@
endif()
if("wayland" IN_LIST CORE_PLATFORM_NAME_LC)
+ pkg_check_modules(PC_WAYLANDPP_CLIENT REQUIRED wayland-client++)
+ pkg_check_modules(PC_WAYLANDPP_SCANNER REQUIRED wayland-scanner++)
+ pkg_get_variable(WAYLANDPP_SCANNER wayland-scanner++ wayland_scannerpp)
+ pkg_get_variable(WAYLANDPP_PKGDATADIR wayland-client++ pkgdatadir)
+ set(WAYLANDPP_PROTOCOLS_DIR "${WAYLANDPP_PKGDATADIR}/protocols")
# This cannot go into wayland.cmake since it requires the Wayland dependencies
# to already be resolved
set(PROTOCOL_XMLS "${WAYLANDPP_PROTOCOLS_DIR}/presentation-time.xml"