ci: Use common build script for libwayland

Rather than open-coding libwayland install for each container, create a
common build script like the rest, using both git and meson like the
rest.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11248>
This commit is contained in:
Daniel Stone
2021-11-25 16:49:03 +01:00
committed by Marge Bot
parent db3d76c42d
commit 9bab991be0
3 changed files with 15 additions and 14 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/bash
set -ex
export LIBWAYLAND_VERSION="1.18.0"
git clone https://gitlab.freedesktop.org/wayland/wayland
cd wayland
git checkout "$LIBWAYLAND_VERSION"
meson -Ddocumentation=false -Ddtd_validation=false -Dlibraries=true _build
ninja -C _build install
cd ..
rm -rf wayland