build: check wayland-scanner version

We need the --strict flag, released in wayland 1.14.0.

Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
Simon Ser 2020-01-13 19:27:19 +01:00
parent bfd4362fc2
commit fab3cb3bfe
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ pkgconfig.generate(
)
if meson.is_cross_build()
scanner_dep = dependency('wayland-scanner', native: true)
scanner_dep = dependency('wayland-scanner', native: true, version: '>=1.14.0')
wayland_scanner_for_build = find_program(scanner_dep.get_pkgconfig_variable('wayland_scanner'))
else
wayland_scanner_for_build = wayland_scanner

View File

@ -1,7 +1,7 @@
AC_DEFUN([WAYLAND_SCANNER_RULES], [
PKG_PROG_PKG_CONFIG
PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner])
PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner >= 1.14.0])
wayland_scanner=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
AC_SUBST([wayland_scanner])