Convert everything from GstAtomicInt to g_atomic_int_*, and remove gstatomic.
[platform/upstream/gstreamer.git] / gst / Makefile.am
1 lib_LTLIBRARIES = libgstreamer-@GST_MAJORMINOR@.la
2 noinst_LTLIBRARIES =
3
4 #GST_INSTRUMENT_FLAGS = -finstrument-functions -DGST_ENABLE_FUNC_INSTRUMENTATION
5
6 if GST_DISABLE_LOADSAVE
7 GST_LOADSAVE_SRC = 
8 else
9 GST_LOADSAVE_SRC = gstxml.c
10 endif
11
12 if GST_DISABLE_PARSE
13 GST_PARSE_SRC = 
14 GST_PARSE_DIRS = 
15 GST_PARSE_LIBADD = 
16 else
17 GST_PARSE_SRC = gstparse.c
18 GST_PARSE_DIRS = parse
19 GST_PARSE_LIBADD = parse/libgstparse.la 
20 endif
21
22 if GST_DISABLE_TRACE
23 GST_TRACE_SRC = 
24 else
25 GST_TRACE_SRC = gsttrace.c
26 endif
27
28 if GST_DISABLE_REGISTRY
29 GST_REGISTRY_SRC = 
30 GST_REGISTRY_DIRS =
31 GST_REGISTRY_LIBADD = 
32 else
33 GST_REGISTRY_SRC = gstregistry.c
34 GST_REGISTRY_DIRS = registries
35 GST_REGISTRY_LIBADD = registries/libgstxmlregistry.la
36 endif
37
38 if GST_DISABLE_ENUMTYPES
39 GST_ENUMTYPES_SRC = 
40 else
41 GST_ENUMTYPES_SRC = gstenumtypes.c
42 endif
43
44 if GST_DISABLE_INDEX
45 GST_INDEX_SRC = 
46 GST_INDEX_DIRS =
47 else
48 GST_INDEX_SRC = gstindex.c
49 GST_INDEX_DIRS = indexers
50 endif
51
52 if GST_DISABLE_PLUGIN
53 GST_PLUGIN_SRC = 
54 else
55 GST_PLUGIN_SRC = gstplugin.c
56 endif
57
58 if GST_DISABLE_URI
59 GST_URI_SRC = 
60 else
61 GST_URI_SRC = gsturi.c
62 endif
63
64 SUBDIRS = $(GST_PARSE_DIRS) $(GST_REGISTRY_DIRS) . base elements schedulers $(GST_INDEX_DIRS) 
65 DIST_SUBDIRS = base elements parse registries schedulers indexers
66
67 # make variables for all generated source and header files to make the
68 # distinction clear
69                                                                                 
70 built_header_configure = gstconfig.h gstversion.h
71 built_header_make = gstenumtypes.h gstmarshal.h
72 built_source_make = $(GST_ENUMTYPES_SRC) gstmarshal.c
73
74 EXTRA_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
75         gstmarshal.list gstxml.c gstparse.c gsttrace.c
76
77 libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
78         gst.c                   \
79         gstobject.c             \
80         gstbin.c                \
81         gstbuffer.c             \
82         gstbus.c                \
83         gstcaps.c               \
84         gstclock.c              \
85         gstdata.c               \
86         gstelement.c            \
87         gstelementfactory.c     \
88         gsterror.c              \
89         gstevent.c              \
90         gstfilter.c             \
91         gstformat.c             \
92         $(GST_INDEX_SRC)        \
93         gstinfo.c               \
94         gstinterface.c          \
95         gstiterator.c           \
96         gstmemchunk.c           \
97         gstmessage.c            \
98         gstpad.c                \
99         gstpipeline.c           \
100         gstplugin.c             \
101         gstpluginfeature.c      \
102         gstprobe.c              \
103         gstquery.c              \
104         gstqueue.c              \
105         gstscheduler.c          \
106         gststructure.c          \
107         gstsystemclock.c        \
108         gsttag.c                \
109         gsttaginterface.c       \
110         gsttask.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 # do not put files in the distribution that are generated
125 nodist_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = $(built_source_make)
126
127 # BUILT_SOURCES are built on make all/check/install before all other targets
128 BUILT_SOURCES = \
129         $(built_header_configure)       \
130         $(built_header_make)            \
131         $(built_source_make)
132 # CLEANFILES is for files generated by make
133 CLEANFILES = $(built_header_make) $(built_source_make) $(as_dll_cleanfiles)
134 # DISTCLEANFILES is for files generated by configure
135 DISTCLEANFILES = $(built_header_configure)
136                                                                                 
137 libgstreamer_@GST_MAJORMINOR@_la_CFLAGS =       \
138         -D_GNU_SOURCE                           \
139         $(GST_LIB_CFLAGS)                       \
140         -DG_LOG_DOMAIN=g_log_domain_gstreamer   \
141         -DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\" 
142 libgstreamer_@GST_MAJORMINOR@_la_LIBADD = \
143         $(GST_LIB_LIBS) $(GST_PARSE_LIBADD) $(GST_REGISTRY_LIBADD)
144 libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = \
145         @GST_LT_LDFLAGS@ -version-info @GST_LIBVERSION@ \
146         -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*
147
148 libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
149
150 gst_headers =                   \
151         gst.h                   \
152         gstobject.h             \
153         gstbin.h                \
154         gstbuffer.h             \
155         gstbus.h                \
156         gstcaps.h               \
157         gstclock.h              \
158         gstcompat.h             \
159         gstdata.h               \
160         gstelement.h            \
161         gsterror.h              \
162         gstevent.h              \
163         gstfilter.h             \
164         gstformat.h             \
165         gstindex.h              \
166         gstinfo.h               \
167         gstinterface.h          \
168         gstiterator.h           \
169         gstmacros.h             \
170         gstmemchunk.h           \
171         gstmessage.h            \
172         gstpad.h                \
173         gstpipeline.h           \
174         gstplugin.h             \
175         gstpluginfeature.h      \
176         gstprobe.h              \
177         gstquery.h              \
178         gstqueue.h              \
179         gstscheduler.h          \
180         gststructure.h          \
181         gstsystemclock.h        \
182         gsttag.h                \
183         gsttaginterface.h       \
184         gsttask.h               \
185         gsttrace.h              \
186         gsttrashstack.h         \
187         gsttypefind.h           \
188         gsttypes.h              \
189         gsturi.h                \
190         gsturitype.h            \
191         gstutils.h              \
192         gstvalue.h              \
193         gstregistry.h           \
194         gstregistrypool.h       \
195         gstparse.h              \
196         gstxml.h
197
198 libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers)
199 nodist_libgstreamer_@GST_MAJORMINOR@include_HEADERS = \
200         $(built_header_configure) $(built_header_make)
201
202 noinst_HEADERS =                \
203         gettext.h               \
204         gst-i18n-lib.h          \
205         gst-i18n-app.h          \
206         gst_private.h           \
207         gstdata_private.h       \
208         gstarch.h               \
209         cothreads.h             
210
211 gstmarshal.h: gstmarshal.list
212         glib-genmarshal --header --prefix=gst_marshal $(srcdir)/gstmarshal.list > gstmarshal.h.tmp
213         mv gstmarshal.h.tmp gstmarshal.h
214
215 gstmarshal.c: gstmarshal.list gst_private.h
216         echo "#include \"gst_private.h\"" > gstmarshal.c.tmp
217         echo "#include \"glib-object.h\"" >> gstmarshal.c.tmp
218         echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
219         glib-genmarshal --body --prefix=gst_marshal $(srcdir)/gstmarshal.list >> gstmarshal.c.tmp
220         mv gstmarshal.c.tmp gstmarshal.c
221
222 gstenumtypes.h: $(gst_headers)
223         glib-mkenums \
224         --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
225         --fprod "/* enumerations from \"@filename@\" */\n" \
226         --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
227         --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
228         $^ > gstenumtypes.h
229
230 gstenumtypes.c: $(gst_headers)
231         glib-mkenums \
232         --fhead "#include \"gst_private.h\"\n#include <gst/gst.h>" \
233         --fprod "\n/* enumerations from \"@filename@\" */" \
234         --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[] = {"     \
235         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
236         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
237         $^ > gstenumtypes.c
238
239 EXTRA_DIST = ROADMAP
240