meson: add wayland-protocols from meson wrapdb

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>
This commit is contained in:
Erik Faye-Lund 2023-10-12 15:17:53 +02:00 committed by Marge Bot
parent 7953e14878
commit 5fe5c3e223

View File

@ -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