From adea80c68d5172d11687e8e0b8c1d4d422f7ec80 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Mon, 8 Feb 2021 03:53:03 +0300 Subject: mesa: build with wayland support if available --- extra/mesa/build | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'extra/mesa') diff --git a/extra/mesa/build b/extra/mesa/build index 62c7a81b..9d8984da 100755 --- a/extra/mesa/build +++ b/extra/mesa/build @@ -11,10 +11,7 @@ ) -read -r _ pyver <<-EOF -$(python3 --version) -EOF - +pyver=$(python3 --version) pyver=${pyver##* } PYTHONPATH="$PWD/mako/dist/usr/lib/python${pyver%.*}/site-packages:$(python -c "import sys; print(':'.join(sys.path))")" export PYTHONPATH @@ -29,13 +26,16 @@ cat _ > meson.build; rm -f _ python3 bin/git_sha1_gen.py --output include/git_sha1.h +platforms=x11 +cpt l wayland-protocols >/dev/null 2>&1 && platforms=$platforms,wayland + meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --buildtype=release \ - -Dplatforms=x11 \ + -Dplatforms="$platforms" \ . output ninja -C output -- cgit v1.2.3