[OE-core] [PATCH] meson.bbclass: add MESON_CROSS_EXTRA_PROPS to inject properties into meson.cross

Andreas Müller schnitzeltony at gmail.com
Thu May 9 14:01:00 UTC 2019


On Thu, May 9, 2019 at 1:04 PM Burton, Ross <ross.burton at intel.com> wrote:
>
> On Wed, 8 May 2019 at 21:14, Andreas Müller <schnitzeltony at gmail.com> wrote:
> > Some projects rely on (cross)specific properties e.g [1]. By setting
> >
> > MESON_CROSS_EXTRA_PROPS="var1='value1' var2=true"
> >
> > the required properties can be passed to meson.build. The contents of
> > MESON_CROSS_EXTRA_PROPS behave same as known by e.g EXTRA_OEMESON.
> >
> > [1] https://gitlab.gnome.org/GNOME/tracker/blob/master/meson.build#L91
>
> Or see https://git.openembedded.org/openembedded-core/commit/?id=e04e0a20cab04966698c50dc79195a8f159248d3
> for an example of how this is done already.
>
> Ross
I have to get back to this.

For the gnome tracker case I have in the recipe

| # full text search requires sqlite3 build with PACKAGECONFIG[fts5] set
| PACKAGECONFIG[fts] = "-Dfts=true,-Dfts=false"

and was happy to handle it correctly the OE way

| MESON_CROSS_EXTRA_PROPS =
"sqlite3_has_fts5='${@bb.utils.contains('PACKAGECONFIG', 'fts',
'true', 'false', d)}'"

Andreas


More information about the Openembedded-core mailing list