build: add Meson subproject fallback for wayland-protocols

This allows building swaylock with a local wayland-protocols.
This commit is contained in:
Simon Ser 2021-12-20 16:42:00 +01:00
parent 386f8f4241
commit 978ce49894

View File

@ -36,7 +36,7 @@ if is_freebsd
endif
wayland_client = dependency('wayland-client')
wayland_protos = dependency('wayland-protocols', version: '>=1.14')
wayland_protos = dependency('wayland-protocols', version: '>=1.14', fallback: 'wayland-protocols')
xkbcommon = dependency('xkbcommon')
cairo = dependency('cairo')
gdk_pixbuf = dependency('gdk-pixbuf-2.0', required: get_option('gdk-pixbuf'))