mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-27 04:20:38 -09:00
package/sdl2: allow wayland support to be enabled without X11
Commit 4662553088 ("package/sdl2: add wayland support") added an option to
enable wayland support but accidentally put the .mk logic inside the
BR2_PACKAGE_SDL2_X11, so it would only trigger if the X11 driver was
enabled.
Fix that by moving it outside the conditional.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
@@ -104,13 +104,6 @@ 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
|
||||
@@ -136,6 +129,13 @@ else
|
||||
SDL2_CONF_OPTS += --disable-video-x11 --without-x
|
||||
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_SDL2_OPENGL),y)
|
||||
SDL2_CONF_OPTS += --enable-video-opengl
|
||||
SDL2_DEPENDENCIES += libgl
|
||||
|
||||
Reference in New Issue
Block a user