From: Thomas Devoogdt <thomas@devoogdt.com>
To: buildroot@buildroot.org
Cc: Michael Fischer <mf@go-sys.de>,
Thomas Devoogdt <thomas.devoogdt@barco.com>
Subject: [Buildroot] [PATCH v1] package/sdl2: enable wayland support
Date: Fri, 30 Aug 2024 19:52:29 +0200 [thread overview]
Message-ID: <20240830175229.2619362-1-thomas@devoogdt.com> (raw)
In-Reply-To: <20230315085103.1671888-2-luke@ljones.dev>
From: Thomas Devoogdt <thomas.devoogdt@barco.com>
Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
---
package/sdl2/Config.in | 17 +++++++++++++++++
package/sdl2/sdl2.mk | 8 +++++++-
2 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/package/sdl2/Config.in b/package/sdl2/Config.in
index 7c8258fe73..ed24cbd9d7 100644
--- a/package/sdl2/Config.in
+++ b/package/sdl2/Config.in
@@ -29,6 +29,23 @@ comment "X11 video driver needs X.org"
depends on !BR2_PACKAGE_XORG7
depends on BR2_USE_MMU
+config BR2_PACKAGE_SDL2_WAYLAND
+ bool "Wayland video driver"
+ depends on BR2_TOOLCHAIN_HAS_THREADS # wayland
+ depends on BR2_PACKAGE_WAYLAND
+ depends on BR2_PACKAGE_HAS_LIBEGL
+ depends on BR2_PACKAGE_SDL2_OPENGLES
+ select BR2_PACKAGE_LIBXKBCOMMON
+ select BR2_PACKAGE_WAYLAND_PROTOCOLS
+
+comment "Wayland video driver needs a toolchain w/ threads"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS
+
+comment "Wayland video driver needs wayland with an OpenGLES+EGL backend"
+ depends on !BR2_PACKAGE_WAYLAND || \
+ !BR2_PACKAGE_HAS_LIBEGL || \
+ !BR2_PACKAGE_SDL2_OPENGLES
+
config BR2_PACKAGE_SDL2_KMSDRM
bool "KMS/DRM video driver"
depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm
diff --git a/package/sdl2/sdl2.mk b/package/sdl2/sdl2.mk
index d19bc0fb8f..a029e9d40f 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 \
@@ -112,6 +111,13 @@ else
SDL2_CONF_OPTS += --disable-video-x11-xcursor
endif
+ifeq ($(BR2_PACKAGE_SDL2_WAYLAND),y)
+SDL2_DEPENDENCIES += libegl libxkbcommon wayland wayland-protocols
+SDL2_CONF_OPTS += --enable-video-wayland
+else
+SDL2_CONF_OPTS += --disable-video-wayland
+endif
+
ifeq ($(BR2_PACKAGE_XLIB_LIBXI),y)
SDL2_DEPENDENCIES += xlib_libXi
SDL2_CONF_OPTS += --enable-video-x11-xinput
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-08-30 17:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-15 8:51 [Buildroot] (no subject) Luke D. Jones
2023-03-15 8:51 ` [Buildroot] [PATCH] package/sdl2: Add config for wayland, vivante, pulseaudio Luke D. Jones
2023-03-16 14:09 ` Luke Jones
2024-08-30 17:52 ` Thomas Devoogdt [this message]
2025-02-09 18:16 ` [Buildroot] [PATCH v2] package/sdl2: add wayland support Thomas Devoogdt
2025-05-16 15:17 ` Peter Korsgaard
2025-05-16 15:52 ` Peter Korsgaard
2026-11-20 21:54 ` [Buildroot] [PATCH v2] package/sdl2: add PulseAudio support Angelo Compagnucci
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=20240830175229.2619362-1-thomas@devoogdt.com \
--to=thomas@devoogdt.com \
--cc=buildroot@buildroot.org \
--cc=mf@go-sys.de \
--cc=thomas.devoogdt@barco.com \
/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.