build: stop using deprecated Meson functions

Fixes the following warning:

    NOTICE: Future-deprecated features used:
     * 0.55.0: {'ExternalProgram.path'}
     * 0.56.0: {'dependency.get_pkgconfig_variable'}

Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
Simon Ser 2022-06-03 16:38:05 +02:00
parent eb115b3137
commit 7350cbefd8
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
project('wayland-protocols',
version: '1.25',
meson_version: '>= 0.54.0',
meson_version: '>= 0.55.0',
license: 'MIT/Expat',
)

View file

@ -1,6 +1,6 @@
prog_scan_sh = find_program('scan.sh')
dep_scanner = dependency('wayland-scanner', version: '>=1.20.0', native: true)
prog_scanner = find_program(dep_scanner.get_pkgconfig_variable('wayland_scanner'))
prog_scanner = find_program(dep_scanner.get_variable(pkgconfig: 'wayland_scanner'))
libwayland = [
dependency('wayland-client'),
@ -14,7 +14,7 @@ foreach protocol_file : protocol_files
test(test_name, prog_scan_sh,
args: protocol_path,
env: [
'SCANNER=@0@'.format(prog_scanner.path()),
'SCANNER=@0@'.format(prog_scanner.full_path()),
]
)
endforeach