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