Remove everything libxml2- and loadsave-related
[platform/upstream/gstreamer.git] / tools / Makefile.am
1 ### assemble a list of programs we want to build and install
2
3 if GST_DISABLE_PARSE
4 GST_PARSE_SRC = 
5 GST_PARSE_SRC_V = 
6 else
7 GST_PARSE_SRC = gst-launch
8 GST_PARSE_SRC_V = gst-launch-@GST_MAJORMINOR@
9 endif
10
11
12 GST_OTHER_SRC = \
13         gst-inspect \
14         gst-typefind
15 GST_OTHER_SRC_V = \
16         gst-inspect-@GST_MAJORMINOR@ \
17         gst-typefind-@GST_MAJORMINOR@
18
19 ### so all of the programs we want to build
20 bin_PROGRAMS = \
21         $(GST_PARSE_SRC) $(GST_PARSE_SRC_V) \
22         $(GST_OTHER_SRC) $(GST_OTHER_SRC_V)
23
24 # make sure each versioned tool has the right source file and flags
25 if !GST_DISABLE_PARSE
26 gst_launch_@GST_MAJORMINOR@_SOURCES = gst-launch.c tools.h
27 gst_launch_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS) -UGST_DISABLE_DEPRECATED
28 gst_launch_@GST_MAJORMINOR@_LDADD = $(GST_OBJ_LIBS)
29 endif
30
31 gst_inspect_@GST_MAJORMINOR@_SOURCES = gst-inspect.c tools.h
32 gst_inspect_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS)
33 gst_inspect_@GST_MAJORMINOR@_LDADD = $(GST_OBJ_LIBS)
34 gst_typefind_@GST_MAJORMINOR@_SOURCES = gst-typefind.c tools.h
35 gst_typefind_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS)
36 gst_typefind_@GST_MAJORMINOR@_LDADD = $(GST_OBJ_LIBS)
37
38 # make sure each unversioned tool comes from gst-run.c
39 if !GST_DISABLE_PARSE
40 gst_launch_SOURCES = gst-run.c
41 endif
42
43 gst_inspect_SOURCES = gst-run.c
44 gst_typefind_SOURCES = gst-run.c
45
46 # CFLAGS and libs for nonversioned frontend binaries
47 AM_CFLAGS = $(GLIB_ONLY_CFLAGS)
48 LDADD = $(GLIB_ONLY_LIBS)
49 # due to depcomp not using AM_CFLAGS for rh9/yd3, we also set AM_CPPFLAGS
50 AM_CPPFLAGS = $(GLIB_ONLY_CFLAGS)
51
52 Android.mk: Makefile.am
53         androgenizer -:PROJECT gstreamer \
54          -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
55          -:EXECUTABLE gst-inspect -:TAGS eng debug \
56          -:SOURCES $(gst_inspect_@GST_MAJORMINOR@_SOURCES) \
57          -:CFLAGS $(DEFS) $(gst_inspect_@GST_MAJORMINOR@_CFLAGS) \
58          -:LDFLAGS $(gst_inspect_@GST_MAJORMINOR@_LDADD) \
59          -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
60          -:EXECUTABLE gst-launch -:TAGS eng debug \
61          -:SOURCES $(gst_launch_@GST_MAJORMINOR@_SOURCES) \
62          -:CFLAGS $(DEFS) $(gst_launch_@GST_MAJORMINOR@_CFLAGS) \
63          -:LDFLAGS $(gst_launch_@GST_MAJORMINOR@_LDADD) \
64          -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
65         > $@
66
67 ### man pages we want to install
68 if GST_DISABLE_PARSE
69 GST_PARSE_MAN=
70 else
71 GST_PARSE_MAN = \
72         gst-launch-@GST_MAJORMINOR@.1
73 endif
74
75
76 GST_OTHER_MAN = \
77         gst-inspect-@GST_MAJORMINOR@.1 \
78         gst-typefind-@GST_MAJORMINOR@.1
79
80 manpages = $(GST_PARSE_MAN) $(GST_OTHER_MAN)
81
82 CLEANFILES = $(manpages) *.gcno *.gcda
83 man_MANS = $(manpages)
84
85 # developer helper tools, not meant for installation
86 noinst_SCRIPTS = gst-indent
87
88 noinst_HEADERS = tools.h
89
90 EXTRA_DIST = \
91         $(noinst_SCRIPTS) \
92         gst-inspect.1.in \
93         gst-launch.1.in \
94         gst-typefind.1.in \
95         gst-plot-timeline.py
96
97 %-@GST_MAJORMINOR@.1: %.1.in
98         $(AM_V_GEN)sed \
99                 -e s,gst-inspect,gst-inspect-@GST_MAJORMINOR@,g \
100                 -e s,gst-launch,gst-launch-@GST_MAJORMINOR@,g \
101                 -e s,gst-typefind,gst-typefind-@GST_MAJORMINOR@,g \
102                 -e s,GST_MAJORMINOR,@GST_MAJORMINOR@,g \
103                 $< >$@
104