Change GST_.*_PADDING to _gst_padding[GST_PADDING];
[platform/upstream/gstreamer.git] / gst / Makefile.am
1 lib_LTLIBRARIES = libgstreamer-@GST_MAJORMINOR@.la
2 noinst_LTLIBRARIES = libcothreads.la
3
4 if HAVE_CPU_I386
5 GSTARCH_SRCS = gstcpuid_i386.s
6 else
7 GSTARCH_SRCS = 
8 endif
9
10 #GST_INSTRUMENT_FLAGS = -finstrument-functions -DGST_ENABLE_FUNC_INSTRUMENTATION
11
12 if GST_DISABLE_LOADSAVE
13 GST_LOADSAVE_SRC = 
14 else
15 GST_LOADSAVE_SRC = gstxml.c
16 endif
17
18 if GST_DISABLE_PARSE
19 GST_PARSE_SRC = 
20 GST_PARSE_DIRS = 
21 GST_PARSE_LIBADD = 
22 else
23 GST_PARSE_SRC = gstparse.c
24 GST_PARSE_DIRS = parse
25 GST_PARSE_LIBADD = parse/libgstparse.la 
26 endif
27
28 if GST_DISABLE_TRACE
29 GST_TRACE_SRC = 
30 else
31 GST_TRACE_SRC = gsttrace.c
32 endif
33
34 if GST_DISABLE_REGISTRY
35 GST_REGISTRY_SRC = 
36 GST_REGISTRY_DIRS =
37 GST_REGISTRY_LIBADD = 
38 else
39 GST_REGISTRY_SRC = gstregistry.c
40 GST_REGISTRY_DIRS = registries
41 GST_REGISTRY_LIBADD = registries/libgstxmlregistry.la
42 endif
43
44 if GST_DISABLE_ENUMTYPES
45 GST_ENUMTYPES_SRC = 
46 else
47 GST_ENUMTYPES_SRC = gstenumtypes.c
48 endif
49
50 if GST_DISABLE_INDEX
51 GST_INDEX_SRC = 
52 GST_INDEX_DIRS =
53 else
54 GST_INDEX_SRC = gstindex.c
55 GST_INDEX_DIRS = indexers
56 endif
57
58 if GST_DISABLE_PLUGIN
59 GST_PLUGIN_SRC = 
60 else
61 GST_PLUGIN_SRC = gstplugin.c
62 endif
63
64 if GST_DISABLE_URI
65 GST_URI_SRC = 
66 else
67 GST_URI_SRC = gsturi.c
68 endif
69
70 EXTRA_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = gstcpuid_i386.s gstmarshal.list gstxml.c gstparse.c gsttrace.c
71
72 SUBDIRS = $(GST_PARSE_DIRS) $(GST_REGISTRY_DIRS) . autoplug elements schedulers $(GST_INDEX_DIRS) 
73 DIST_SUBDIRS = autoplug elements parse registries schedulers indexers
74
75 libgstreamer_@GST_MAJORMINOR@_la_SOURCES =              \
76         gst.c                   \
77         gstmarshal.c            \
78         $(GST_ENUMTYPES_SRC)    \
79         gstobject.c             \
80         gstatomic.c             \
81         gstbin.c                \
82         gstbuffer.c             \
83         gstcaps.c               \
84         gstclock.c              \
85         gstcpu.c                \
86         gstdata.c               \
87         gstelement.c            \
88         gstelementfactory.c     \
89         gstevent.c              \
90         gstfilter.c             \
91         gstformat.c             \
92         $(GST_INDEX_SRC)        \
93         gstinfo.c               \
94         gstinterface.c          \
95         gstmemchunk.c           \
96         gstpad.c                \
97         gstpipeline.c           \
98         gstplugin.c             \
99         gstpluginfeature.c      \
100         gstprops.c              \
101         gstprobe.c              \
102         gstqueue.c              \
103         gstquery.c              \
104         gstscheduler.c          \
105         gststructure.c          \
106         gstsystemclock.c        \
107         gsttag.c                \
108         gsttaginterface.c       \
109         gstthread.c             \
110         gstthreaddummy.c        \
111         $(GST_TRACE_SRC)        \
112         gsttrashstack.c         \
113         gsttypefind.c           \
114         $(GST_URI_SRC)          \
115         gsturitype.c            \
116         gstutils.c              \
117         gstvalue.c              \
118         $(GST_REGISTRY_SRC)     \
119         gstregistrypool.c       \
120         $(GST_PARSE_SRC)        \
121         $(GSTARCH_SRCS)         \
122         $(GST_LOADSAVE_SRC)
123
124
125 BUILT_SOURCES = gstversion.h gstconfig.h gstmarshal.h gstmarshal.c gstenumtypes.h $(GST_ENUMTYPES_SRC) 
126 CLEANFILES = gstmarshal.h gstmarshal.c gstenumtypes.h $(GST_ENUMTYPES_SRC)
127 DISTCLEANFILES = gstversion.h gstconfig.h
128
129 libgstreamer_@GST_MAJORMINOR@_la_CFLAGS = -D_GNU_SOURCE \
130         $(GST_CFLAGS) \
131         -DG_LOG_DOMAIN=g_log_domain_gstreamer \
132         -DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\" 
133 libgstreamer_@GST_MAJORMINOR@_la_LIBADD = $(LIBGST_LIBS) $(GST_PARSE_LIBADD) $(GST_REGISTRY_LIBADD)
134 libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = @GST_LT_LDFLAGS@ -version-info @GST_LIBVERSION@ 
135
136
137 libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
138
139 gst_headers =                   \
140         gst.h                   \
141         gstatomic.h             \
142         gstobject.h             \
143         gstbin.h                \
144         gstbuffer.h             \
145         gstcaps.h               \
146         gstclock.h              \
147         gstcompat.h             \
148         gstcpu.h                \
149         gstdata.h               \
150         gstelement.h            \
151         gstevent.h              \
152         gstfilter.h             \
153         gstformat.h             \
154         gstindex.h              \
155         gstinfo.h               \
156         gstinterface.h          \
157         gstlog.h                \
158         gstmacros.h             \
159         gstmemchunk.h           \
160         gstpad.h                \
161         gstpipeline.h           \
162         gstplugin.h             \
163         gstpluginfeature.h      \
164         gstprobe.h              \
165         gstprops.h              \
166         gstqueue.h              \
167         gstquery.h              \
168         gstscheduler.h          \
169         gststructure.h          \
170         gstsystemclock.h        \
171         gsttag.h                \
172         gsttaginterface.h       \
173         gstthread.h             \
174         gsttrace.h              \
175         gsttrashstack.h         \
176         gsttypefind.h           \
177         gsttypes.h              \
178         gsturi.h                \
179         gsturitype.h            \
180         gstutils.h              \
181         gstvalue.h              \
182         gstregistry.h           \
183         gstregistrypool.h       \
184         gstparse.h              \
185         gstxml.h
186
187 built_headers =                 \
188         gstconfig.h             \
189         gstversion.h            \
190         gstmarshal.h            \
191         gstenumtypes.h
192
193 libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers) $(built_headers)
194
195 noinst_HEADERS =                \
196         gst_private.h           \
197         gstatomic_impl.h        \
198         gstdata_private.h       \
199         gstarch.h               \
200         cothreads.h             
201
202 # the compiler shoots cothreads.c in the head at -O6
203 libcothreads_la_SOURCES = cothreads.c
204 libcothreads_la_CFLAGS = $(libgstreamer_@GST_MAJORMINOR@_la_CFLAGS) 
205
206
207 gstmarshal.h: gstmarshal.list
208         glib-genmarshal --header --prefix=gst_marshal $^ > gstmarshal.h.tmp
209         mv gstmarshal.h.tmp gstmarshal.h
210
211 gstmarshal.c: gstmarshal.list
212         echo "#include \"glib-object.h\"" >gstmarshal.c.tmp
213         echo "#include \"gstlog.h\"" >> gstmarshal.c.tmp
214         echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
215         glib-genmarshal --body --prefix=gst_marshal $^ >> gstmarshal.c.tmp
216         mv gstmarshal.c.tmp gstmarshal.c
217
218 gstenumtypes.h: $(gst_headers)
219         glib-mkenums \
220         --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
221         --fprod "/* enumerations from \"@filename@\" */\n" \
222         --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
223         --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
224         $^ > gstenumtypes.h
225
226 gstenumtypes.c: $(gst_headers)
227         glib-mkenums \
228         --fhead "#include <gst/gst.h>" \
229         --fprod "\n/* enumerations from \"@filename@\" */" \
230         --vhead "GType\n@enum_name@_get_type (void)\n{\n  static GType etype = 0;\n  if (etype == 0) {\n    static const G@Type@Value values[] = {"     \
231         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
232         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
233         $^ > gstenumtypes.c
234
235 EXTRA_DIST = ROADMAP