meson: add wayland-protocols from meson wrapdb
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 12 Oct 2023 13:17:53 +0000 (15:17 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 13 Oct 2023 16:44:31 +0000 (16:44 +0000)
Sometimes, users don't have a recent enough version of wayland-protocols
to build Mesa. But these days, Meson's WrapDB has a wrap that's more
than new enough for our needs.

If we add the wrap-file to the subprojects folder, we'll download a more
recent wrap if the installed version is too old (or doesn't exist at
all).

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25683>

subprojects/wayland-protocols.wrap [new file with mode: 0644]

diff --git a/subprojects/wayland-protocols.wrap b/subprojects/wayland-protocols.wrap
new file mode 100644 (file)
index 0000000..ee9ee73
--- /dev/null
@@ -0,0 +1,10 @@
+[wrap-file]
+directory = wayland-protocols-1.32
+source_url = https://gitlab.freedesktop.org/wayland/wayland-protocols/-/releases/1.32/downloads/wayland-protocols-1.32.tar.xz
+source_filename = wayland-protocols-1.32.tar.xz
+source_hash = 7459799d340c8296b695ef857c07ddef24c5a09b09ab6a74f7b92640d2b1ba11
+source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/wayland-protocols_1.32-1/wayland-protocols-1.32.tar.xz
+wrapdb_version = 1.32-1
+
+[provide]
+wayland-protocols = wayland_protocols