gstreamer/plugins/tracers/meson.build
Tim-Philipp Müller 9791669ac3 meson: tracers: signal availability of libunwind and backtrace() to code
Not setting cdata here on purpose because of .. complications.
2016-09-27 18:24:02 +01:00

33 lines
772 B
Meson

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
gst_tracers = library('gstcoretracers',
gst_tracers_sources,
c_args : tracers_args,
include_directories : [configinc],
dependencies : [gst_dep, unwind_dep],
link_with : printf_lib,
install : true,
install_dir : '@0@/gstreamer-1.0'.format(get_option('libdir')),
)