1 lib_LTLIBRARIES = libgstreamer-@GST_MAJORMINOR@.la
2 noinst_LTLIBRARIES = libcothreads.la
5 GSTARCH_SRCS = gstcpuid_i386.s
10 #GST_INSTRUMENT_FLAGS = -finstrument-functions -DGST_ENABLE_FUNC_INSTRUMENTATION
12 if GST_DISABLE_LOADSAVE
15 GST_LOADSAVE_SRC = gstxml.c
18 if GST_DISABLE_TYPEFIND
21 GST_TYPEFIND_SRC = gsttypefind.c
24 if GST_DISABLE_AUTOPLUG
28 GST_AUTOPLUG_SRC = gstautoplug.c
29 GST_AUTOPLUG_DIRS = autoplug
37 GST_PARSE_SRC = gstparse.c
38 GST_PARSE_DIRS = parse
39 GST_PARSE_LIBADD = parse/libgstparse.la
45 GST_TRACE_SRC = gsttrace.c
48 if GST_DISABLE_REGISTRY
53 GST_REGISTRY_SRC = gstregistry.c
54 GST_REGISTRY_DIRS = registries
55 GST_REGISTRY_LIBADD = registries/libgstxmlregistry.la
58 if GST_DISABLE_ENUMTYPES
61 GST_ENUMTYPES_SRC = gstenumtypes.c
68 GST_INDEX_SRC = gstindex.c
69 GST_INDEX_DIRS = indexers
75 GST_PLUGIN_SRC = gstplugin.c
81 GST_URI_SRC = gsturi.c
84 EXTRA_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = gstcpuid_i386.s gstmarshal.list gstxml.c gsttypefind.c gstparse.c gstautoplug.c gsttrace.c
86 SUBDIRS = $(GST_PARSE_DIRS) $(GST_REGISTRY_DIRS) . $(GST_AUTOPLUG_DIRS) elements schedulers types $(GST_INDEX_DIRS)
87 DIST_SUBDIRS = autoplug elements parse registries schedulers types indexers
89 libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
92 $(GST_ENUMTYPES_SRC) \
98 gstbufferpool-default.c \
104 gstelementfactory.c \
126 $(GST_TYPEFIND_SRC) \
130 $(GST_REGISTRY_SRC) \
137 BUILT_SOURCES = gstversion.h gstconfig.h gstmarshal.h gstmarshal.c gstenumtypes.h $(GST_ENUMTYPES_SRC)
139 libgstreamer_@GST_MAJORMINOR@_la_CFLAGS = -D_GNU_SOURCE \
141 -DG_LOG_DOMAIN=g_log_domain_gstreamer \
142 -DGST_CACHE_DIR=\""$(GST_CACHE_DIR)"\" \
143 -DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\"
144 libgstreamer_@GST_MAJORMINOR@_la_LIBADD = $(LIBGST_LIBS) $(GST_PARSE_LIBADD) $(GST_REGISTRY_LIBADD)
145 libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = @GST_LT_LDFLAGS@ -version-info @GST_LIBVERSION@
148 libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
158 gstbufferpool-default.h \
202 libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers) $(built_headers)
211 # the compiler shoots cothreads.c in the head at -O6
212 libcothreads_la_SOURCES = cothreads.c
213 libcothreads_la_CFLAGS = $(libgstreamer_@GST_MAJORMINOR@_la_CFLAGS)
216 gstmarshal.h: gstmarshal.list
217 glib-genmarshal --header --prefix=gst_marshal $^ > gstmarshal.h.tmp
218 mv gstmarshal.h.tmp gstmarshal.h
220 gstmarshal.c: gstmarshal.list
221 echo "#include \"glib-object.h\"" >gstmarshal.c.tmp
222 echo "#include \"gstlog.h\"" >> gstmarshal.c.tmp
223 echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
224 glib-genmarshal --body --prefix=gst_marshal $^ >> gstmarshal.c.tmp
225 mv gstmarshal.c.tmp gstmarshal.c
227 gstenumtypes.h: $(gst_headers)
229 --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
230 --fprod "/* enumerations from \"@filename@\" */\n" \
231 --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
232 --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
235 gstenumtypes.c: $(gst_headers)
237 --fhead "#include <gst/gst.h>" \
238 --fprod "\n/* enumerations from \"@filename@\" */" \
239 --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[] = {" \
240 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
241 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
244 # Don't want the generated marshal files in the dist
246 rm -f $(distdir)/gstmarshal.c $(distdir)/gstmarshal.h
248 # Clean generated files
250 rm -f $(top_builddir)/gst/gstmarshal.c $(top_builddir)/gst/gstmarshal.h