@@ -40,6 +40,13 @@ comment "OpenGL support needs X11 and an OpenGL provider"
depends on BR2_USE_MMU
depends on !BR2_PACKAGE_HAS_LIBGL || !BR2_PACKAGE_XORG7
+config BR2_PACKAGE_SDL2_OPENGLES
+ bool "OpenGL ES"
+ depends on BR2_PACKAGE_HAS_LIBGLES
+
+comment "OpenGL ES support needs an OpenGL ES provider"
+ depends on !BR2_PACKAGE_HAS_LIBGLES
+
endif
comment "sdl2 needs a toolchain w/ dynamic library"
@@ -18,7 +18,6 @@ SDL2_CONF_OPTS += \
--disable-esd \
--disable-dbus \
--disable-pulseaudio \
- --disable-video-opengles \
--disable-video-wayland
# We must enable static build to get compilation successful.
@@ -105,6 +104,13 @@ else
SDL2_CONF_OPTS += --disable-video-opengl
endif
+ifeq ($(BR2_PACKAGE_SDL2_OPENGLES),y)
+SDL2_CONF_OPTS += --enable-video-opengles
+SDL2_DEPENDENCIES += libgles
+else
+SDL2_CONF_OPTS += --disable-video-opengles
+endif
+
ifeq ($(BR2_PACKAGE_TSLIB),y)
SDL2_DEPENDENCIES += tslib
SDL2_CONF_OPTS += --enable-input-tslib
Signed-off-by: Romain Naour <romain.naour@gmail.com> --- package/sdl2/Config.in | 7 +++++++ package/sdl2/sdl2.mk | 8 +++++++- 2 files changed, 14 insertions(+), 1 deletion(-)