aboutsummaryrefslogtreecommitdiff
path: root/protocols/meson.build
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-11-25 10:46:00 +0100
committerSimon Ser <contact@emersion.fr>2022-11-25 10:46:00 +0100
commit366f6ef3d31688631dc453028e108f98a1d7ab57 (patch)
treed7433723c40be6f12a0d193b7a84e6f1633df02c /protocols/meson.build
parente2bc8866f46701e9c825ad7fa5baac02b2e4898f (diff)
build: drop wayland-scanner fallback
Diffstat (limited to 'protocols/meson.build')
-rw-r--r--protocols/meson.build14
1 files changed, 5 insertions, 9 deletions
diff --git a/protocols/meson.build b/protocols/meson.build
index 71e700bb..59c58122 100644
--- a/protocols/meson.build
+++ b/protocols/meson.build
@@ -1,14 +1,10 @@
wl_protocol_dir = wayland_protos.get_variable('pkgdatadir')
-wayland_scanner_dep = dependency('wayland-scanner', required: false, native: true)
-if wayland_scanner_dep.found()
- wayland_scanner = find_program(
- wayland_scanner_dep.get_variable(pkgconfig: 'wayland_scanner'),
- native: true,
- )
-else
- wayland_scanner = find_program('wayland-scanner', native: true)
-endif
+wayland_scanner_dep = dependency('wayland-scanner', native: true)
+wayland_scanner = find_program(
+ wayland_scanner_dep.get_variable(pkgconfig: 'wayland_scanner'),
+ native: true,
+)
protocols = [
wl_protocol_dir / 'stable/xdg-shell/xdg-shell.xml',