From: Alexander Shiyan <eagle.alexander923@gmail.com>
To: buildroot@buildroot.org
Cc: Alexander Shiyan <eagle.alexander923@gmail.com>
Subject: [Buildroot] [PATCH] package/sdl2: Add wayland support
Date: Thu, 6 Feb 2025 10:09:10 +0300 [thread overview]
Message-ID: <20250206070910.1423800-1-eagle.alexander923@gmail.com> (raw)
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
next reply other threads:[~2025-02-06 7:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-06 7:09 Alexander Shiyan [this message]
2025-02-07 12:03 ` [Buildroot] [PATCH] package/sdl2: Add wayland support Thomas Devoogdt
2025-02-09 17:20 ` Alexander Shiyan
2025-02-09 18:19 ` Thomas Devoogdt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250206070910.1423800-1-eagle.alexander923@gmail.com \
--to=eagle.alexander923@gmail.com \
--cc=buildroot@buildroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.