meson.build: Don't set the dependency type for wayland-scanner 02/27102/1 12.92.0 marlin/12.92.0 marlin_12.92.0
authorMarius Vlad <marius.vlad@collabora.com>
Fri, 28 Jan 2022 11:08:45 +0000 (13:08 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Fri, 28 Jan 2022 11:45:57 +0000 (13:45 +0200)
commit9cc8100eef72bf1235c3b87430e4c2f6d396f128
treedfdfc260f12be83b214644baf3c1e717b355c4cf
parent26c37c4140ce5739d646c104f1e378b2c5d8ec27
meson.build: Don't set the dependency type for wayland-scanner

meson (0.53) seem to be smart enough to resolve cross-compile
dependencies without setting explicitly the dependency type.

Setting the dependency  as native results in ignoring PKG_CONFIG_PATH
and using PATH to choose and alternative pkg-config. Sourcing the
yocto/OE toolchain would result in picking the hosts pkg-config due to
modified a PATH where SDKTARGETSYSROOT is before any of the hosts paths.

Combined that with the fact that PKG_CONFIG_PATH is reset when the
dependency is se to native (why that hapens is something to further
investigate) results in not finding wayland-scanner.

Tested with both yocto/OE toolchains and native (local) builds to make
sure we can still build it and seems we're fine.

Bug-AGL: SPEC-4169

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I5c4b12eff044aeb0c3ab4c18e943da4e15d6c411
meson.build