meson: build gir even when cross-compiling if introspection was enabled explicitly
authorTim-Philipp Müller <tim@centricular.com>
Thu, 17 Oct 2019 11:13:35 +0000 (12:13 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 17 Oct 2019 18:54:21 +0000 (19:54 +0100)
commit35db4a2433fbdf8612cf98b5aab5b14aeb5372f8
treebd6e840afe00c6bb27d1d63ae4e86b981bfe88e3
parent10d9e18f022fe797715c5e473768fa09cd5b91b1
meson: build gir even when cross-compiling if introspection was enabled explicitly

This can be made to work in certain circumstances when
cross-compiling, so default to not building g-i stuff
when cross-compiling, but allow it if introspection was
enabled explicitly via -Dintrospection=enabled.

Fixes #454 and #381.
meson.build