meson: build gir even when cross-compiling if introspection was enabled explicitly
authorTim-Philipp Müller <tim@centricular.com>
Thu, 17 Oct 2019 23:39:12 +0000 (00:39 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 17 Oct 2019 23:39:12 +0000 (00:39 +0100)
commit97a4d0cd7de8cfbf983acc7e37ba2f8fb73c3e19
tree3722d3b9629f64f9c271e94e14355f64f48ccfb3
parenta40476914d4cbc944b56d919538afa751fc3d813
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.

See gstreamer/gstreamer#454 and gstreamer/gstreamer#381.
meson.build