Patreon Logo Support us on Patreon to keep GamingOnLinux alive. This ensures all of our main content remains free for everyone. Just good, fresh content! Alternatively, you can donate through PayPal Logo PayPal. You can also buy games using our partner links for GOG and Humble Store.
Title: Using Meson
sr_ls_boy 23 Oct 2017
Mesa now supports building with the Meson build suite.
I have never used meson before. How does it work?

Below is how I configure mesa with autotools.
Does meson support all switches?

Spoiler, click me

PKG_CONFIG_PATH=/usr/lib64/pkgconfig \
CC="gcc -g ${BUILD64} -L/usr/lib64" \
CXX="g++ -g ${BUILD64} -L/usr/lib64" \
CFLAGS="-g -O2 ${BUILD64} -L/usr/lib64" \
CXXFLAGS="-g -O2 ${BUILD64} -L/usr/lib64" \
CPPFLAGS="-g -Wdate-time -D_FORTIFY_SOURCE=2" \
FCFLAGS="-g -O2" \
FFLAGS="-g -O2" \
GCJFLAGS="-g -O2" \
LDFLAGS="-g -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-rpath,/usr/lib64 -L/usr/lib64 -Wl,-rpath,/lib64 -L/lib64" \
OBJCFLAGS="-g -O2" \
OBJCXXFLAGS="-g -O2" \
LLVM_LDFLAGS="-L/usr/lib64" \
\
../configure \
--prefix=/usr --mandir=/usr/share/man \
--infodir=/usr/share/info --sysconfdir=/etc \
--libdir=/usr/lib64 \
--localstatedir=/var \
--build=x86_64-linux-gnu \
\
--enable-dri --with-dri-drivers=radeon,swrast \
--enable-osmesa --enable-glx-tls --enable-shared-glapi \
--enable-texture-float --with-vulkan-drivers=radeon \
--enable-driglx-direct --enable-dri3 --with-platforms=x11,drm \
--enable-xa --enable-llvm --enable-vdpau \
--enable-va --enable-xvmc \
--enable-nine --with-gallium-drivers="svga radeonsi swrast" \
--enable-gles1 --enable-gles2
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon Logo Patreon. Plain Donations: PayPal Logo PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register