mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
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>
This commit is contained in:
parent
8d5fadad47
commit
5ddb8dff87
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue