1#!/usr/bin/env bash 2# shellcheck disable=SC2086 # we want word splitting 3 4set -ex 5 6export LIBWAYLAND_VERSION="1.21.0" 7export WAYLAND_PROTOCOLS_VERSION="1.31" 8 9git clone https://gitlab.freedesktop.org/wayland/wayland 10cd wayland 11git checkout "$LIBWAYLAND_VERSION" 12meson setup -Ddocumentation=false -Ddtd_validation=false -Dlibraries=true _build $EXTRA_MESON_ARGS 13meson install -C _build 14cd .. 15rm -rf wayland 16 17git clone https://gitlab.freedesktop.org/wayland/wayland-protocols 18cd wayland-protocols 19git checkout "$WAYLAND_PROTOCOLS_VERSION" 20meson setup _build $EXTRA_MESON_ARGS 21meson install -C _build 22cd .. 23rm -rf wayland-protocols 24