2019-12-03 20:40:59 +00:00
|
|
|
if not tracer_hooks
|
|
|
|
if get_option('coretracers').enabled()
|
|
|
|
error('coretracers plugin enabled but not tracer_hooks')
|
|
|
|
endif
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
2016-09-26 21:21:19 +00:00
|
|
|
gst_tracers_sources = [
|
|
|
|
'gstlatency.c',
|
|
|
|
'gstleaks.c',
|
|
|
|
'gststats.c',
|
|
|
|
'gsttracers.c',
|
|
|
|
]
|
|
|
|
|
2018-05-05 13:38:09 +00:00
|
|
|
if gst_debug
|
2016-12-09 22:28:22 +00:00
|
|
|
gst_tracers_sources += ['gstlog.c']
|
2016-12-09 20:55:39 +00:00
|
|
|
endif
|
|
|
|
|
2016-12-21 03:30:22 +00:00
|
|
|
if cdata.has('HAVE_GETRUSAGE')
|
2016-09-26 21:21:19 +00:00
|
|
|
gst_tracers_sources += ['gstrusage.c']
|
|
|
|
endif
|
|
|
|
|
2020-07-16 13:03:35 +00:00
|
|
|
thread_dep = dependency('threads', required : false)
|
|
|
|
|
2016-09-26 21:21:19 +00:00
|
|
|
gst_tracers = library('gstcoretracers',
|
|
|
|
gst_tracers_sources,
|
2020-07-24 12:30:39 +00:00
|
|
|
c_args : gst_c_args,
|
2016-09-26 21:21:19 +00:00
|
|
|
include_directories : [configinc],
|
2020-07-16 13:03:35 +00:00
|
|
|
dependencies : [gst_dep, thread_dep],
|
2016-09-26 21:21:19 +00:00
|
|
|
install : true,
|
2018-11-02 13:49:01 +00:00
|
|
|
install_dir : plugins_install_dir,
|
2016-09-26 21:21:19 +00:00
|
|
|
)
|
2018-11-02 13:49:01 +00:00
|
|
|
pkgconfig.generate(gst_tracers, install_dir : plugins_pkgconfig_install_dir)
|
2019-05-16 06:17:35 +00:00
|
|
|
plugins += [gst_tracers]
|