Skip to content

Commit

Permalink
build: add subproject fallback for wayland-protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion authored and bl4ckb0ne committed Sep 1, 2021
1 parent d9523fa commit 267eb02
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions protocol/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
wayland_protos = dependency('wayland-protocols', version: '>=1.21')
wl_protocol_dir = wayland_protos.get_variable(pkgconfig: 'pkgdatadir')
wayland_protos = dependency('wayland-protocols',
version: '>=1.21',
fallback: ['wayland-protocols', 'wayland_protocols'],
default_options: ['tests=false'],
)
wl_protocol_dir = wayland_protos.get_variable(pkgconfig: 'pkgdatadir', internal: 'pkgdatadir')

wayland_scanner_dep = dependency('wayland-scanner', native: true)
wayland_scanner = find_program(
Expand Down

0 comments on commit 267eb02

Please sign in to comment.