[OE-core] [PATCH 2/2] gobject-introspection: auto-enable/-disable gobject-introspection for meson
Alexander Kanavin
alex.kanavin at gmail.com
Mon Apr 1 14:56:15 UTC 2019
On Mon, 1 Apr 2019 at 15:52, Andreas Müller <schnitzeltony at gmail.com> wrote:
> +EXTRA_OEMESON_prepend_class-target = "-Dintrospection=${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'true', 'false', d)} "
> +EXTRA_OEMESON_prepend_class-native = "-Dintrospection=False "
> +EXTRA_OEMESON_prepend_class-nativesdk = "-Dintrospection=False "
Sadly, unlike autotools where the option name comes from a common m4
macro, this is not going to work with meson. There is no common ground
between upstreams on how to name this option, and so you get 'gir',
'with_introspection' and anything in between.
A better approach would be to introduce a variable:
GIR_MESON_OPTION ?= 'introspection'
and override it in recipes as needed.
Alex
Alex
More information about the Openembedded-core
mailing list