package/sdl2: enable OpenGL ES support
Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
739b66e8d9
commit
8cdf3f7bcd
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue