[wayland-scanner] cross compile fails to build the scanner if no scanner on host is found
I've tried to switch the wayland toolchain in this package to Meson for LibreELEC and it failed since no wayland-scanner
is found on the host system while it's a cross compile build. The logic behind this is found here
The build opts for the host package are:
PKG_MESON_OPTS_HOST="-Dlibraries=false \
-Dscanner=true \
-Ddocumentation=false \
-Ddtd_validation=false"
LibreELEC toolchain builds a host toolchain & then a target toolchain. As you recognize we only build the wayland-scanner
for our host which is the reused later for the target build. Since the wayland-scanner
is only used to build the libs e.g. https://gitlab.freedesktop.org/wayland/wayland/-/blob/main/src/meson.build#L132 it should be possible to cross compile the wayland-scanner
without a present host wayland-scanner
if -Dlibraries=false
is set & no libs were build for host.
I "hacked" the logic out with this patch and could successfully build the wayland-scanner
for the host toolchain.
@mattst88 could you fix this / have a look at it as follow up to !68 (merged)