tracer: Add new tracer to list loaded elements and other features
[platform/upstream/gstreamer.git] / plugins / tracers / meson.build
1 if not tracer_hooks
2   if get_option('coretracers').enabled()
3     error('coretracers plugin enabled but not tracer_hooks')
4   endif
5   subdir_done()
6 endif
7
8 gst_tracers_sources = [
9   'gstlatency.c',
10   'gstleaks.c',
11   'gststats.c',
12   'gsttracers.c',
13   'gstfactories.c'
14 ]
15
16 if gst_debug
17   gst_tracers_sources += ['gstlog.c']
18 endif
19
20 if cdata.has('HAVE_GETRUSAGE')
21   gst_tracers_sources += ['gstrusage.c']
22 endif
23
24 thread_dep = dependency('threads', required : false)
25
26 gst_tracers = library('gstcoretracers',
27   gst_tracers_sources,
28   c_args : gst_c_args,
29   include_directories : [configinc],
30   dependencies : [gst_dep, thread_dep],
31   install : true,
32   install_dir : plugins_install_dir,
33 )
34 pkgconfig.generate(gst_tracers, install_dir : plugins_pkgconfig_install_dir)
35 plugins += [gst_tracers]