gstreamer/plugins/tracers/meson.build
Olivier Crête a4a1782872 tracer: Add new tracer to list loaded elements and other features
This new tracer will list loaded elements and plugins. This should
make it easier to generate minimal builds of GStreamer.

This also traces other features such as typefind functions, device
providers and dynamic types.

The format of the output of gst-stats should match the parameters
expected by the meson based gst-build system.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/782>
2021-08-18 17:01:27 -04:00

35 lines
780 B
Meson

if not tracer_hooks
if get_option('coretracers').enabled()
error('coretracers plugin enabled but not tracer_hooks')
endif
subdir_done()
endif
gst_tracers_sources = [
'gstlatency.c',
'gstleaks.c',
'gststats.c',
'gsttracers.c',
'gstfactories.c'
]
if gst_debug
gst_tracers_sources += ['gstlog.c']
endif
if cdata.has('HAVE_GETRUSAGE')
gst_tracers_sources += ['gstrusage.c']
endif
thread_dep = dependency('threads', required : false)
gst_tracers = library('gstcoretracers',
gst_tracers_sources,
c_args : gst_c_args,
include_directories : [configinc],
dependencies : [gst_dep, thread_dep],
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gst_tracers, install_dir : plugins_pkgconfig_install_dir)
plugins += [gst_tracers]