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_AUTOPLUG
22 GST_AUTOPLUG_SRC = gstautoplug.c
23 GST_AUTOPLUG_DIRS = autoplug
31 GST_PARSE_SRC = gstparse.c
32 GST_PARSE_DIRS = parse
33 GST_PARSE_LIBADD = parse/libgstparse.la
39 GST_TRACE_SRC = gsttrace.c
42 if GST_DISABLE_REGISTRY
47 GST_REGISTRY_SRC = gstregistry.c
48 GST_REGISTRY_DIRS = registries
49 GST_REGISTRY_LIBADD = registries/libgstxmlregistry.la
52 if GST_DISABLE_ENUMTYPES
55 GST_ENUMTYPES_SRC = gstenumtypes.c
62 GST_INDEX_SRC = gstindex.c
63 GST_INDEX_DIRS = indexers
69 GST_PLUGIN_SRC = gstplugin.c
75 GST_URI_SRC = gsturi.c
78 EXTRA_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = gstcpuid_i386.s gstmarshal.list gstxml.c gstparse.c gstautoplug.c gsttrace.c
80 SUBDIRS = $(GST_PARSE_DIRS) $(GST_REGISTRY_DIRS) . $(GST_AUTOPLUG_DIRS) elements schedulers $(GST_INDEX_DIRS)
81 DIST_SUBDIRS = autoplug elements parse registries schedulers indexers
83 libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
86 $(GST_ENUMTYPES_SRC) \
92 gstbufferpool-default.c \
128 $(GST_REGISTRY_SRC) \
135 BUILT_SOURCES = gstversion.h gstconfig.h gstmarshal.h gstmarshal.c gstenumtypes.h $(GST_ENUMTYPES_SRC)
136 CLEANFILES = gstmarshal.h gstmarshal.c gstenumtypes.h $(GST_ENUMTYPES_SRC)
137 DISTCLEANFILES = gstversion.h gstconfig.h
139 libgstreamer_@GST_MAJORMINOR@_la_CFLAGS = -D_GNU_SOURCE \
141 -DG_LOG_DOMAIN=g_log_domain_gstreamer \
142 -DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\"
143 libgstreamer_@GST_MAJORMINOR@_la_LIBADD = $(LIBGST_LIBS) $(GST_PARSE_LIBADD) $(GST_REGISTRY_LIBADD)
144 libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = @GST_LT_LDFLAGS@ -version-info @GST_LIBVERSION@
147 libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
156 gstbufferpool-default.h \
205 libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers) $(built_headers)
214 # the compiler shoots cothreads.c in the head at -O6
215 libcothreads_la_SOURCES = cothreads.c
216 libcothreads_la_CFLAGS = $(libgstreamer_@GST_MAJORMINOR@_la_CFLAGS)
219 gstmarshal.h: gstmarshal.list
220 glib-genmarshal --header --prefix=gst_marshal $^ > gstmarshal.h.tmp
221 mv gstmarshal.h.tmp gstmarshal.h
223 gstmarshal.c: gstmarshal.list
224 echo "#include \"glib-object.h\"" >gstmarshal.c.tmp
225 echo "#include \"gstlog.h\"" >> gstmarshal.c.tmp
226 echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
227 glib-genmarshal --body --prefix=gst_marshal $^ >> gstmarshal.c.tmp
228 mv gstmarshal.c.tmp gstmarshal.c
230 gstenumtypes.h: $(gst_headers)
232 --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
233 --fprod "/* enumerations from \"@filename@\" */\n" \
234 --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
235 --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
238 gstenumtypes.c: $(gst_headers)
240 --fhead "#include <gst/gst.h>" \
241 --fprod "\n/* enumerations from \"@filename@\" */" \
242 --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[] = {" \
243 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
244 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \