From 8cdf3f7bcd4495c2932455141de8aa7ae66a849b Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Sun, 26 Feb 2017 17:48:54 +0100 Subject: [PATCH] package/sdl2: enable OpenGL ES support Signed-off-by: Romain Naour Signed-off-by: Thomas Petazzoni --- package/sdl2/Config.in | 7 +++++++ package/sdl2/sdl2.mk | 8 +++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/package/sdl2/Config.in b/package/sdl2/Config.in index 6345133c42..a2971edc89 100644 --- a/package/sdl2/Config.in +++ b/package/sdl2/Config.in @@ -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" diff --git a/package/sdl2/sdl2.mk b/package/sdl2/sdl2.mk index 3f210f8d60..d2ee50dc1d 100644 --- a/package/sdl2/sdl2.mk +++ b/package/sdl2/sdl2.mk @@ -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 -- 2.30.2