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 <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Jacopo Mondi 2021-11-20 10:46:56 +01:00
parent 663b5d859f
commit 8178e01b36
2 changed files with 4 additions and 0 deletions

View file

@ -172,6 +172,7 @@ py_mod.find_installation('python3', modules: py_modules)
summary({ summary({
'Enabled pipelines': pipelines, 'Enabled pipelines': pipelines,
'Enabled IPA modules': ipa_modules, 'Enabled IPA modules': ipa_modules,
'Tracing support': tracing_enabled,
'Android support': android_enabled, 'Android support': android_enabled,
'GStreamer support': gst_enabled, 'GStreamer support': gst_enabled,
'V4L2 emulation support': v4l2_enabled, 'V4L2 emulation support': v4l2_enabled,

View file

@ -70,8 +70,11 @@ if libgnutls.found()
endif endif
if liblttng.found() if liblttng.found()
tracing_enabled = true
config_h.set('HAVE_TRACING', 1) config_h.set('HAVE_TRACING', 1)
libcamera_sources += files(['tracepoints.cpp']) libcamera_sources += files(['tracepoints.cpp'])
else
tracing_enabled = false
endif endif
if libudev.found() if libudev.found()