Document how to build with libwayland and scanner
We should have some documentation about the right way to find wayland-scanner
and that it really should be of the same version as your libwayland is.
Specifically, the Meson snippets talked about in the thread !224 (comment 1325100) could be presented somewhere. We used to have an unfortunate .m4
or .mk
file for the scanner in autotools days, and Meson's Wayland module is not stable yet. Getting the scanner finding and version checks exactly right might help avoid mistakes.
Should as well document what we take for granted upstream: do not commit generated code into VCS, because the scanner gets fixes sometimes and you'd be left out. One also must not use a scanner newer than libwayland, because a new scanner may make use of new libwayland ABI.