aboutsummaryrefslogtreecommitdiff
path: root/extra/mesa/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-02-08 03:53:03 +0300
committerCem Keylan <cem@ckyln.com>2021-02-08 03:53:03 +0300
commitadea80c68d5172d11687e8e0b8c1d4d422f7ec80 (patch)
tree09a6a2587e439da4c180fda9c0980ad7492043e9 /extra/mesa/build
parent57bdb1fa3c7a51a6abe99300a47a31f5f76c3f11 (diff)
downloadrepository-adea80c68d5172d11687e8e0b8c1d4d422f7ec80.tar.gz
mesa: build with wayland support if available
Diffstat (limited to 'extra/mesa/build')
-rwxr-xr-xextra/mesa/build10
1 files changed, 5 insertions, 5 deletions
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