gstreamer/plugins/tracers/meson.build

34 lines
772 B
Meson
Raw Normal View History

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
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,
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')),
)