gstreamer/plugins/tracers/meson.build
Xavier Claessens 4a554a2a68 Meson: Add 'coretracers' feature option
This was the only plugin still built when using
-Dauto_features=disabled, besides coreelements.
2019-12-03 19:01:38 -05:00

34 lines
753 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',
]
if gst_debug
gst_tracers_sources += ['gstlog.c']
endif
if cdata.has('HAVE_GETRUSAGE')
gst_tracers_sources += ['gstrusage.c']
endif
tracers_args = gst_c_args + ['-DGST_USE_UNSTABLE_API']
gst_tracers = library('gstcoretracers',
gst_tracers_sources,
c_args : tracers_args,
include_directories : [configinc],
dependencies : [gst_dep],
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gst_tracers, install_dir : plugins_pkgconfig_install_dir)
plugins += [gst_tracers]