mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 07:27:49 +00:00
cairo: set options based on OPENGL/ES
Setting the flags related to OpenGL should not be based on the presence of the DISPLAYSERVER - one can have OpenGL without DISPLAYSERVER.
This commit is contained in:
parent
5a67b4194d
commit
35ed1108f2
@ -74,18 +74,27 @@ pre_configure_target() {
|
||||
--x-libraries="${SYSROOT_PREFIX}/usr/lib" \
|
||||
--enable-xlib \
|
||||
--enable-xlib-xrender \
|
||||
--enable-gl \
|
||||
--enable-glx \
|
||||
--disable-glesv2 \
|
||||
--disable-egl \
|
||||
--with-x"
|
||||
else
|
||||
else
|
||||
PKG_CONFIGURE_OPTS_TARGET+=" --disable-xlib \
|
||||
--disable-xlib-xrender \
|
||||
--disable-gl \
|
||||
--disable-glx \
|
||||
--enable-glesv2 \
|
||||
--enable-egl \
|
||||
--without-x"
|
||||
fi
|
||||
|
||||
if [ "${OPENGL_SUPPORT}" = "yes" ]; then
|
||||
PKG_CONFIGURE_OPTS_TARGET+=" --enable-gl \
|
||||
--enable-glx \
|
||||
--disable-glesv2 \
|
||||
--disable-egl"
|
||||
elif [ "${OPENGLES_SUPPORT}" = "yes" ]; then
|
||||
PKG_CONFIGURE_OPTS_TARGET+=" --disable-gl \
|
||||
--disable-glx \
|
||||
--enable-glesv2 \
|
||||
--enable-egl"
|
||||
else
|
||||
PKG_CONFIGURE_OPTS_TARGET+=" --disable-gl \
|
||||
--disable-glx \
|
||||
--disable-glesv2 \
|
||||
--disable-egl"
|
||||
fi
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user