Re: [PATCH v5] libtracefs: Add initial support for meson

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 04, 2023 at 11:09:16AM -0500, Steven Rostedt wrote:
 This also doesn't build the static library libtracefs.a.
> 
> We have environments that we need to build trace-cmd statically. As
> trace-cmd depends on libtraceevent and libtracefs, that means both need a
> static library as well.

Configure the build with

  'meson setup .build --default-library=both'

Though, we could add libtraceevent and libracefs as subprojects to trace-cmd
which avoids all the hassle to install libtraceevent and libtracefs
independenly from trace-cmd. It also takes care of all the dependency
setup. Basically with


  'meson setup .build --wrap-mode=forcefallback'

in trace-cmd meson would download, setup and build libtraceevent and libtracefs
within the trace-cmd build. This is makes the whole development process
between these project way smoother. And if you would configure the build
with

  'meson setup .build --wrap-mode=forcefallback --default-library=static'

would staticly link all subprojects into the trace-cmd binary.

I haven't added this part to the initial mesonizing of the projects. Keep
things simple to begin with.



[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux