mesa : make egles2 build depend on OPENGLES distro flag.

when building qt with X11 support, some qpa plugins for X11 still use gles dependencies.
This commit is contained in:
longchair 2016-04-11 16:00:48 +02:00
parent f492bf1ee9
commit 8653154b1a

View File

@ -55,6 +55,12 @@ for drv in $GRAPHIC_DRIVERS; do
[ "$drv" = "vmware" ] && XA_CONFIG="--enable-xa"
done
if [ "$OPENGLES_SUPPORT" = "yes" ]; then
MESA_GLES="--enable-gles2"
else
MESA_GLES="--disable-gles2"
fi
PKG_CONFIGURE_OPTS_TARGET="CC_FOR_BUILD=$HOST_CC \
CXX_FOR_BUILD=$HOST_CXX \
CFLAGS_FOR_BUILD= \
@ -70,7 +76,7 @@ PKG_CONFIGURE_OPTS_TARGET="CC_FOR_BUILD=$HOST_CC \
--disable-selinux \
--enable-opengl \
--disable-gles1 \
--disable-gles2 \
$MESA_GLES \
--enable-dri \
--enable-dri3 \
--enable-glx \