[OE-core] [PATCH 2/2] gobject-introspection: auto-enable/-disable gobject-introspection for meson

Andreas Müller schnitzeltony at gmail.com
Mon Apr 1 15:08:29 UTC 2019


On Mon, Apr 1, 2019 at 4:56 PM Alexander Kanavin <alex.kanavin at gmail.com> wrote:
>
> 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.
>
Had an initial version like this - but shelved (or lost) the idea somehow.

Agreed: V2 will follow.

Andreas


More information about the Openembedded-core mailing list