mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-31 15:07:43 +00:00
package/sdl2: enable opengl support
OpenGl support mean GLX so it require X11 support. Select automatically BR2_PACKAGE_SDL2_X11 to enable minimal X11 libraries support (libx11 and libxext). 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
e8d4c34b54
commit
739b66e8d9
@ -29,6 +29,17 @@ comment "X11 video driver needs X.org"
|
|||||||
depends on !BR2_PACKAGE_XORG7
|
depends on !BR2_PACKAGE_XORG7
|
||||||
depends on BR2_USE_MMU
|
depends on BR2_USE_MMU
|
||||||
|
|
||||||
|
config BR2_PACKAGE_SDL2_OPENGL
|
||||||
|
bool "OpenGL (GLX)"
|
||||||
|
depends on BR2_PACKAGE_HAS_LIBGL
|
||||||
|
depends on BR2_PACKAGE_XORG7
|
||||||
|
depends on BR2_USE_MMU # X11 video driver
|
||||||
|
select BR2_PACKAGE_SDL2_X11
|
||||||
|
|
||||||
|
comment "OpenGL support needs X11 and an OpenGL provider"
|
||||||
|
depends on BR2_USE_MMU
|
||||||
|
depends on !BR2_PACKAGE_HAS_LIBGL || !BR2_PACKAGE_XORG7
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
comment "sdl2 needs a toolchain w/ dynamic library"
|
comment "sdl2 needs a toolchain w/ dynamic library"
|
||||||
|
@ -18,7 +18,6 @@ SDL2_CONF_OPTS += \
|
|||||||
--disable-esd \
|
--disable-esd \
|
||||||
--disable-dbus \
|
--disable-dbus \
|
||||||
--disable-pulseaudio \
|
--disable-pulseaudio \
|
||||||
--disable-video-opengl \
|
|
||||||
--disable-video-opengles \
|
--disable-video-opengles \
|
||||||
--disable-video-wayland
|
--disable-video-wayland
|
||||||
|
|
||||||
@ -99,6 +98,13 @@ else
|
|||||||
SDL2_CONF_OPTS += --disable-video-x11 --without-x
|
SDL2_CONF_OPTS += --disable-video-x11 --without-x
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_SDL2_OPENGL),y)
|
||||||
|
SDL2_CONF_OPTS += --enable-video-opengl
|
||||||
|
SDL2_DEPENDENCIES += libgl
|
||||||
|
else
|
||||||
|
SDL2_CONF_OPTS += --disable-video-opengl
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_TSLIB),y)
|
ifeq ($(BR2_PACKAGE_TSLIB),y)
|
||||||
SDL2_DEPENDENCIES += tslib
|
SDL2_DEPENDENCIES += tslib
|
||||||
SDL2_CONF_OPTS += --enable-input-tslib
|
SDL2_CONF_OPTS += --enable-input-tslib
|
||||||
|
Loading…
x
Reference in New Issue
Block a user