meson: build gir even when cross-compiling if introspection was enabled explicitly
authorTim-Philipp Müller <tim@centricular.com>
Thu, 17 Oct 2019 19:06:24 +0000 (20:06 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 18 Oct 2019 00:33:55 +0000 (00:33 +0000)
commit30672ba7d134553e59935ddc875104adba26f25c
tree61b5544328b0b4520b50202c2e319a436e63339e
parentb3e9e3f747f6e7473a9e6e566cf7816838fcef52
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