From 8178e01b36d767e05d7bbb9dd1f752f7ede0db3d Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Sat, 20 Nov 2021 10:46:56 +0100 Subject: libcamera: Add tracing to meson summary The meson option summary currently does not report if the support for tracing is enabled or not. Add it. Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- meson.build | 1 + src/libcamera/meson.build | 3 +++ 2 files changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 7892a9e3..d1074594 100644 --- a/meson.build +++ b/meson.build @@ -172,6 +172,7 @@ py_mod.find_installation('python3', modules: py_modules) summary({ 'Enabled pipelines': pipelines, 'Enabled IPA modules': ipa_modules, + 'Tracing support': tracing_enabled, 'Android support': android_enabled, 'GStreamer support': gst_enabled, 'V4L2 emulation support': v4l2_enabled, diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build index 6727a777..ddedc78c 100644 --- a/src/libcamera/meson.build +++ b/src/libcamera/meson.build @@ -70,8 +70,11 @@ if libgnutls.found() endif if liblttng.found() + tracing_enabled = true config_h.set('HAVE_TRACING', 1) libcamera_sources += files(['tracepoints.cpp']) +else + tracing_enabled = false endif if libudev.found() -- cgit v1.2.1