mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 21:56:42 +00:00
mesa: allow building with DISPLAYSERVER=weston
This commit is contained in:
parent
ab5ad1e0c1
commit
3a9350fd93
@ -37,6 +37,12 @@ if [ "$DISPLAYSERVER" = "x11" ]; then
|
|||||||
MESA_DRI="--enable-dri --enable-dri3"
|
MESA_DRI="--enable-dri --enable-dri3"
|
||||||
MESA_GLX="--enable-glx --enable-driglx-direct --enable-glx-tls"
|
MESA_GLX="--enable-glx --enable-driglx-direct --enable-glx-tls"
|
||||||
MESA_PLATFORMS="--with-platforms=x11,drm"
|
MESA_PLATFORMS="--with-platforms=x11,drm"
|
||||||
|
elif [ "$DISPLAYSERVER" = "weston" ]; then
|
||||||
|
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET wayland wayland-protocols"
|
||||||
|
MESA_DRI="--enable-dri --disable-dri3"
|
||||||
|
# The glx in glx-tls is a misnomer - there's nothing glx in it.
|
||||||
|
MESA_GLX="--disable-glx --disable-driglx-direct --enable-glx-tls"
|
||||||
|
MESA_PLATFORMS="--with-platforms=drm,wayland"
|
||||||
else
|
else
|
||||||
MESA_DRI="--enable-dri --disable-dri3"
|
MESA_DRI="--enable-dri --disable-dri3"
|
||||||
# The glx in glx-tls is a misnomer - there's nothing glx in it.
|
# The glx in glx-tls is a misnomer - there's nothing glx in it.
|
||||||
@ -104,7 +110,6 @@ PKG_CONFIGURE_OPTS_TARGET="CC_FOR_BUILD=$HOST_CC \
|
|||||||
--enable-shared-glapi \
|
--enable-shared-glapi \
|
||||||
$MESA_GALLIUM_LLVM \
|
$MESA_GALLIUM_LLVM \
|
||||||
--disable-silent-rules \
|
--disable-silent-rules \
|
||||||
--with-gl-lib-name=GL \
|
|
||||||
--with-osmesa-lib-name=OSMesa \
|
--with-osmesa-lib-name=OSMesa \
|
||||||
--with-gallium-drivers=$GALLIUM_DRIVERS \
|
--with-gallium-drivers=$GALLIUM_DRIVERS \
|
||||||
--with-dri-drivers=$DRI_DRIVERS \
|
--with-dri-drivers=$DRI_DRIVERS \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user