tracers: disable the log tracer if debug logging is disabled
[platform/upstream/gstreamer.git] / plugins / tracers / Makefile.am
1
2 plugin_LTLIBRARIES = libgstcoretracers.la
3
4 if HAVE_GETRUSAGE
5 RUSAGE_SOURCES = gstrusage.c
6 else
7 RUSAGE_SOURCES =
8 endif
9
10 if GST_DISABLE_GST_DEBUG
11 LOG_SOURCES =
12 else
13 LOG_SOURCES = gstlog.c
14 endif
15
16 libgstcoretracers_la_DEPENDENCIES = $(top_builddir)/gst/libgstreamer-@GST_API_VERSION@.la
17 libgstcoretracers_la_SOURCES = \
18   gstlatency.c \
19   $(LOG_SOURCES) \
20   $(RUSAGE_SOURCES) \
21   gststats.c \
22         gsttracers.c
23
24 libgstcoretracers_la_CFLAGS = $(GST_OBJ_CFLAGS) \
25   -DGST_USE_UNSTABLE_API
26 libgstcoretracers_la_LIBADD = \
27         $(top_builddir)/gst/printf/libgstprintf.la \
28         $(GST_OBJ_LIBS)
29 libgstcoretracers_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
30 libgstcoretracers_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
31
32 noinst_HEADERS = \
33   gstlatency.h \
34   gstlog.h \
35   gstrusage.h \
36   gststats.h
37
38 CLEANFILES = *.gcno *.gcda *.gcov *.gcov.out
39
40 %.c.gcov: .libs/libgstcoretracers_la-%.gcda %.c
41         $(GCOV) -b -f -o $^ > $@.out
42
43 gcov: $(libgstcoretracers_la_SOURCES:=.gcov)
44