build: add Wayland subproject

This allows developers to work on a new wayland-scanner feature and
test it with wayland-protocols without too much hassle.

Depends on https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/313

Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
Simon Ser 2023-05-04 23:09:18 +02:00
parent f89eb17d55
commit 60c6b51097

View file

@ -1,6 +1,6 @@
prog_scan_sh = find_program('scan.sh') prog_scan_sh = find_program('scan.sh')
dep_scanner = dependency('wayland-scanner', version: '>=1.20.0', native: true) dep_scanner = dependency('wayland-scanner', version: '>=1.20.0', native: true, fallback: 'wayland')
prog_scanner = find_program(dep_scanner.get_variable(pkgconfig: 'wayland_scanner')) prog_scanner = find_program(dep_scanner.get_variable(pkgconfig: 'wayland_scanner', internal: 'wayland_scanner'))
libwayland = [ libwayland = [
dependency('wayland-client'), dependency('wayland-client'),