All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/sdl2: Add wayland support
@ 2025-02-06  7:09 Alexander Shiyan
  2025-02-07 12:03 ` Thomas Devoogdt
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Shiyan @ 2025-02-06  7:09 UTC (permalink / raw)
  To: buildroot; +Cc: Alexander Shiyan

This adds a configuration option to enable Wayland video driver
support in SDL2.

Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
---
 package/sdl2/Config.in | 11 +++++++++++
 package/sdl2/sdl2.mk   |  8 +++++++-
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/package/sdl2/Config.in b/package/sdl2/Config.in
index f1c22e4f80..784e381003 100644
--- a/package/sdl2/Config.in
+++ b/package/sdl2/Config.in
@@ -38,6 +38,17 @@ comment "KMS/DRM video driver needs a GBM provider, and OpenGL or OpenGLES+EGL"
 		!BR2_PACKAGE_HAS_LIBEGL || \
 		!(BR2_PACKAGE_SDL2_OPENGL || BR2_PACKAGE_SDL2_OPENGLES)
 
+config BR2_PACKAGE_SDL2_WAYLAND
+	bool "Wayland video driver"
+	depends on BR2_PACKAGE_WAYLAND
+	depends on BR2_PACKAGE_HAS_LIBEGL
+	depends on BR2_PACKAGE_SDL2_OPENGLES
+	depends on BR2_PACKAGE_LIBXKBCOMMON
+
+comment "Wayland video driver needs a Wayland, OpenGLES+EGL and libxkbcommon"
+	depends on !BR2_PACKAGE_WAYLAND || !BR2_PACKAGE_HAS_LIBEGL || \
+		!BR2_PACKAGE_SDL2_OPENGLES || !BR2_PACKAGE_LIBXKBCOMMON
+
 config BR2_PACKAGE_SDL2_OPENGL
 	bool "OpenGL (GLX)"
 	depends on BR2_PACKAGE_HAS_LIBGL
diff --git a/package/sdl2/sdl2.mk b/package/sdl2/sdl2.mk
index 50f80c68d7..918d5d7811 100644
--- a/package/sdl2/sdl2.mk
+++ b/package/sdl2/sdl2.mk
@@ -23,7 +23,6 @@ SDL2_CONF_OPTS += \
 	--disable-video-vivante \
 	--disable-video-cocoa \
 	--disable-video-metal \
-	--disable-video-wayland \
 	--disable-video-dummy \
 	--disable-video-offscreen \
 	--disable-video-vulkan \
@@ -164,4 +163,11 @@ else
 SDL2_CONF_OPTS += --disable-video-kmsdrm
 endif
 
+ifeq ($(BR2_PACKAGE_SDL2_WAYLAND),y)
+SDL2_DEPENDENCIES += libegl libxkbcommon wayland
+SDL2_CONF_OPTS += --enable-video-wayland
+else
+SDL2_CONF_OPTS += --disable-video-wayland
+endif
+
 $(eval $(autotools-package))
-- 
2.39.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-02-09 18:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-06  7:09 [Buildroot] [PATCH] package/sdl2: Add wayland support Alexander Shiyan
2025-02-07 12:03 ` Thomas Devoogdt
2025-02-09 17:20   ` Alexander Shiyan
2025-02-09 18:19     ` Thomas Devoogdt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.