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:
parent
89a38bfaa4
commit
c2ce50b9d7
|
@ -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
|
||||
|
|
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue
Block a user