Skip to content

Commit

Permalink
build: drop wayland-scanner fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Nov 25, 2022
1 parent e2bc886 commit 366f6ef
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions protocols/meson.build
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit 366f6ef

Please sign in to comment.