Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
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"
--disable-esd \
--disable-dbus \
--disable-pulseaudio \
- --disable-video-opengles \
--disable-video-wayland
# We must enable static build to get compilation successful.
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