On Fri, 23 Dec 2022 11:15:02 +0100 Daniel Wagner <dwagner@xxxxxxx> wrote: > Add support for building the project with meson. > > trace-cmd depends on a statically linked libtracecmd > (e.g. trace_perf_open, trace_perf_close, trace_perf_init). > > Instead depending libtracecmd to be compiled and installed > separately add libtracecmd directly to trace-cmd build. This > avoids an additional step. > > We still are able to build libtracecmd as stand alone project. > The top meson.build file just lives in the lib directory. > > Signed-off-by: Daniel Wagner <dwagner@xxxxxxx> > --- I forgot to mention last time, I hit this: meson.build:79:11: ERROR: Unknown variable "conf10". But I added this: diff --git a/meson.build b/meson.build index 31f8a101190e..9c800b80d341 100644 --- a/meson.build +++ b/meson.build @@ -23,6 +23,7 @@ mandir = join_paths(prefixdir, get_option('mandir')) htmldir = join_paths(prefixdir, get_option('htmldir')) conf = configuration_data() +conf10 = configuration_data() libtraceevent_dep = dependency('libtraceevent', version: '>= 1.5.0', required: true) libtracefs_dep = dependency('libtracefs', version: '>= 1.6.0', required: true) As a work around. But now I get this: ../tracecmd/trace-profile.c:13:10: fatal error: libaudit.h: No such file or directory 13 | #include <libaudit.h> | ^~~~~~~~~~~~ We're missing the -DNO_AUDIT added when not there, as that file has: #ifndef NO_AUDIT #include <libaudit.h> #endif -- Steve