mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
package/kodi: add optional support for wayland
For details see upstream PR 12664. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> [Thomas: - add BR2_PACKAGE_HAS_LIBGL dependency to BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_WAYLAND_GL - don't select BR2_PACKAGE_WAYLANDPP from the blind options, but instead from the visible options] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
5d25713f24
commit
9756f6a7ac
@ -27,6 +27,26 @@ config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_RBPI
|
|||||||
depends on BR2_PACKAGE_HAS_UDEV # libinput
|
depends on BR2_PACKAGE_HAS_UDEV # libinput
|
||||||
select BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
|
select BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
|
||||||
|
|
||||||
|
config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_WAYLAND_GL
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
depends on BR2_PACKAGE_HAS_LIBGL
|
||||||
|
depends on BR2_PACKAGE_HAS_LIBEGL_WAYLAND # waylandpp
|
||||||
|
depends on BR2_HOST_GCC_AT_LEAST_4_9 # waylandpp
|
||||||
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # waylandpp
|
||||||
|
depends on BR2_PACKAGE_WAYLAND # waylandpp
|
||||||
|
select BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
|
||||||
|
|
||||||
|
config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_WAYLAND_GLES
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
depends on BR2_PACKAGE_HAS_LIBGLES
|
||||||
|
depends on BR2_PACKAGE_HAS_LIBEGL_WAYLAND # waylandpp
|
||||||
|
depends on BR2_HOST_GCC_AT_LEAST_4_9 # waylandpp
|
||||||
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # waylandpp
|
||||||
|
depends on BR2_PACKAGE_WAYLAND # waylandpp
|
||||||
|
select BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
|
||||||
|
|
||||||
config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_X11_OPENGL
|
config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_X11_OPENGL
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
@ -188,6 +208,19 @@ config BR2_PACKAGE_KODI_PLATFORM_RBPI
|
|||||||
select BR2_PACKAGE_LIBINPUT
|
select BR2_PACKAGE_LIBINPUT
|
||||||
select BR2_PACKAGE_LIBXKBCOMMON
|
select BR2_PACKAGE_LIBXKBCOMMON
|
||||||
|
|
||||||
|
config BR2_PACKAGE_KODI_PLATFORM_WAYLAND_GL
|
||||||
|
bool "Wayland/OpenGL"
|
||||||
|
depends on BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_WAYLAND_GL
|
||||||
|
select BR2_PACKAGE_LIBGLU
|
||||||
|
select BR2_PACKAGE_LIBXKBCOMMON
|
||||||
|
select BR2_PACKAGE_WAYLANDPP
|
||||||
|
|
||||||
|
config BR2_PACKAGE_KODI_PLATFORM_WAYLAND_GLES
|
||||||
|
bool "Wayland/GLES"
|
||||||
|
depends on BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_WAYLAND_GLES
|
||||||
|
select BR2_PACKAGE_LIBXKBCOMMON
|
||||||
|
select BR2_PACKAGE_WAYLANDPP
|
||||||
|
|
||||||
config BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
|
config BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
|
||||||
bool "X11/OpenGL"
|
bool "X11/OpenGL"
|
||||||
depends on BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_X11_OPENGL
|
depends on BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_X11_OPENGL
|
||||||
@ -241,13 +274,19 @@ config BR2_PACKAGE_KODI_LIBUSB
|
|||||||
|
|
||||||
config BR2_PACKAGE_KODI_LIBVA
|
config BR2_PACKAGE_KODI_LIBVA
|
||||||
bool "va"
|
bool "va"
|
||||||
depends on BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
|
depends on \
|
||||||
|
BR2_PACKAGE_KODI_PLATFORM_WAYLAND_GL || \
|
||||||
|
BR2_PACKAGE_KODI_PLATFORM_WAYLAND_GLES || \
|
||||||
|
BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
|
||||||
select BR2_PACKAGE_LIBVA
|
select BR2_PACKAGE_LIBVA
|
||||||
help
|
help
|
||||||
Enable libva support.
|
Enable libva support.
|
||||||
|
|
||||||
comment "libva support needs platform 'X11/OpenGL'"
|
comment "libva support needs platform 'Wayland' or 'X11/OpenGL'"
|
||||||
depends on !BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
|
depends on \
|
||||||
|
!BR2_PACKAGE_KODI_PLATFORM_WAYLAND_GL && \
|
||||||
|
!BR2_PACKAGE_KODI_PLATFORM_WAYLAND_GLES && \
|
||||||
|
!BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
|
||||||
|
|
||||||
config BR2_PACKAGE_KODI_LIBVDPAU
|
config BR2_PACKAGE_KODI_LIBVDPAU
|
||||||
bool "vdpau"
|
bool "vdpau"
|
||||||
|
@ -174,6 +174,22 @@ KODI_CONF_OPTS += -DCORE_PLATFORM_NAME=rbpi
|
|||||||
KODI_DEPENDENCIES += libinput libxkbcommon rpi-userland
|
KODI_DEPENDENCIES += libinput libxkbcommon rpi-userland
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_KODI_PLATFORM_WAYLAND_GL),y)
|
||||||
|
KODI_CONF_OPTS += \
|
||||||
|
-DCORE_PLATFORM_NAME=wayland \
|
||||||
|
-DWAYLAND_RENDER_SYSTEM=gl
|
||||||
|
KODI_DEPENDENCIES += libegl libgl libglu libxkbcommon waylandpp
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_KODI_PLATFORM_WAYLAND_GLES),y)
|
||||||
|
KODI_CONF_OPTS += \
|
||||||
|
-DCORE_PLATFORM_NAME=wayland \
|
||||||
|
-DWAYLAND_RENDER_SYSTEM=gles
|
||||||
|
KODI_C_FLAGS += `$(PKG_CONFIG_HOST_BINARY) --cflags egl`
|
||||||
|
KODI_CXX_FLAGS += `$(PKG_CONFIG_HOST_BINARY) --cflags egl`
|
||||||
|
KODI_DEPENDENCIES += libegl libgles libxkbcommon waylandpp
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL),y)
|
ifeq ($(BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL),y)
|
||||||
KODI_CONF_OPTS += -DCORE_PLATFORM_NAME=x11
|
KODI_CONF_OPTS += -DCORE_PLATFORM_NAME=x11
|
||||||
KODI_DEPENDENCIES += libegl libglu libgl xlib_libX11 xlib_libXext \
|
KODI_DEPENDENCIES += libegl libglu libgl xlib_libX11 xlib_libXext \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user