aboutsummaryrefslogtreecommitdiffstats
path: root/src/meson.build
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2020-03-06 10:04:53 -0800
committerMatt Turner <mattst88@gmail.com>2020-03-09 11:31:50 -0700
commit5ddb8dff878f3addd349bf58860cb6fad0a013ce (patch)
tree78a29c59da7252c811c32254ea21176b7f84c0f4 /src/meson.build
parentprotocol: add invalid_size error to wl_surface (diff)
downloadwayland-5ddb8dff878f3addd349bf58860cb6fad0a013ce.tar
wayland-5ddb8dff878f3addd349bf58860cb6fad0a013ce.tar.gz
wayland-5ddb8dff878f3addd349bf58860cb6fad0a013ce.tar.bz2
wayland-5ddb8dff878f3addd349bf58860cb6fad0a013ce.tar.lz
wayland-5ddb8dff878f3addd349bf58860cb6fad0a013ce.tar.xz
wayland-5ddb8dff878f3addd349bf58860cb6fad0a013ce.tar.zst
wayland-5ddb8dff878f3addd349bf58860cb6fad0a013ce.zip
meson: Require wayland-scanner of a matching version
We have always built libwayland with the scanner from the same build so that the generated code and installed headers are exactly up-to-date with the libwayland version. If libwayland was to use a scanner later than itself, the scanner might do things that are not available in the libwayland at hand, leading to a broken build or a broken library (headers). Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/meson.build')
-rw-r--r--src/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/meson.build b/src/meson.build
index 3e8c9bf..cf92321 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -55,7 +55,7 @@ pkgconfig.generate(
)
if meson.is_cross_build()
- scanner_dep = dependency('wayland-scanner', native: true, version: '>=1.14.0')
+ scanner_dep = dependency('wayland-scanner', native: true, version: meson.project_version())
wayland_scanner_for_build = find_program(scanner_dep.get_pkgconfig_variable('wayland_scanner'))
else
wayland_scanner_for_build = wayland_scanner