On 11/20/20 12:25 PM, Gerd Hoffmann wrote:
> Hi,
>
>> Guess I'll go dig into the meson documentation, this looks more like a
>> build system than a tracing problem to me.
>
> Looking at https://mesonbuild.com/Syntax.html ...
>
> "all objects are immutable".
>
> So "var2 = var1" creates a copy not a reference I guess?
>
> Which implies that ...
>
> foo_ss.add(something)
>
> ... is different from ...
>
> bar_ss = foo_ss
> bar_ss.add(something)
>
> ... which in turn explains why the patch doesn't work at all.
>
> Now I'm wondering how I can make trace/meson.build add the trace
> objects to the module source sets if I can't pass around references
> to the module source sets?
>
> Paolo? Any hints how to tackle this the meson way?
Maybe managing it all in the main meson.build, like the
e28ab096bf8..da33fc09873 cleanup?
("Move the creation of the library to the main meson.build")
>
> thanks,
> Gerd
>
>