diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2022-02-28 12:04:27 -0500 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2022-04-04 09:17:34 -0400 |
commit | 7954a4c9cbf8355d8c8ea9b3d98df45d9f96f66e (patch) | |
tree | 9323406b7184b8e1b02588499fcd0d080b16116a /mesonbuild/modules/unstable_wayland.py | |
parent | 105bbaabdda4656194e97729f67bba9c0f6c8ae1 (diff) | |
download | meson-7954a4c9cbf8355d8c8ea9b3d98df45d9f96f66e.zip meson-7954a4c9cbf8355d8c8ea9b3d98df45d9f96f66e.tar.gz meson-7954a4c9cbf8355d8c8ea9b3d98df45d9f96f66e.tar.bz2 |
wayland: Also lookup scanner in pkgconfig
This moves generally useful logic from GNOME module's
_get_native_binary() into find_program() implementation. We could decide
later to expose it as public API.
Diffstat (limited to 'mesonbuild/modules/unstable_wayland.py')
-rw-r--r-- | mesonbuild/modules/unstable_wayland.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/modules/unstable_wayland.py b/mesonbuild/modules/unstable_wayland.py index c3e29f4..332d938 100644 --- a/mesonbuild/modules/unstable_wayland.py +++ b/mesonbuild/modules/unstable_wayland.py @@ -45,7 +45,9 @@ class WaylandModule(ExtensionModule): ) def scan_xml(self, state, args, kwargs): if self.scanner_bin is None: - self.scanner_bin = state.find_program('wayland-scanner', for_machine=MachineChoice.BUILD) + self.scanner_bin = state.find_program('wayland-scanner', + for_machine=MachineChoice.BUILD, + depname='wayland-scanner') scope = 'public' if kwargs['public'] else 'private' sides = [i for i in ['client', 'server'] if kwargs[i]] |