2016-09-26 21:21:19 +00:00
|
|
|
gst_tracers_sources = [
|
|
|
|
'gstlatency.c',
|
|
|
|
'gstleaks.c',
|
|
|
|
'gststats.c',
|
|
|
|
'gsttracers.c',
|
|
|
|
'gstlog.c'
|
|
|
|
]
|
|
|
|
|
|
|
|
if have_getrusage
|
|
|
|
gst_tracers_sources += ['gstrusage.c']
|
|
|
|
endif
|
|
|
|
|
2016-09-27 17:00:47 +00:00
|
|
|
tracers_args = gst_c_args + ['-DGST_USE_UNSTABLE_API']
|
|
|
|
|
|
|
|
unwind_dep = dependency('libunwind', required : false)
|
|
|
|
if unwind_dep.found()
|
|
|
|
tracers_args += ['-DHAVE_UNWIND']
|
|
|
|
endif
|
|
|
|
|
|
|
|
if cc.has_header('execinfo.h') and cc.has_function('backtrace', prefix : '#include <execinfo.h>')
|
|
|
|
tracers_args += ['-DHAVE_BACKTRACE']
|
|
|
|
endif
|
|
|
|
|
2016-09-26 21:21:19 +00:00
|
|
|
gst_tracers = library('gstcoretracers',
|
|
|
|
gst_tracers_sources,
|
2016-09-27 17:00:47 +00:00
|
|
|
c_args : tracers_args,
|
2016-09-26 21:21:19 +00:00
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies : [gst_dep, unwind_dep],
|
|
|
|
link_with : printf_lib,
|
|
|
|
install : true,
|
|
|
|
install_dir : '@0@/gstreamer-1.0'.format(get_option('libdir')),
|
|
|
|
)
|
|
|
|
|