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
23 GST_PARSE_SRC = gstparse.c
24 GST_PARSE_DIRS = parse
25 GST_PARSE_LIBADD = parse/libgstparse.la
31 GST_TRACE_SRC = gsttrace.c
34 if GST_DISABLE_REGISTRY
39 GST_REGISTRY_SRC = gstregistry.c
40 GST_REGISTRY_DIRS = registries
41 GST_REGISTRY_LIBADD = registries/libgstxmlregistry.la
44 if GST_DISABLE_ENUMTYPES
47 GST_ENUMTYPES_SRC = gstenumtypes.c
54 GST_INDEX_SRC = gstindex.c
55 GST_INDEX_DIRS = indexers
61 GST_PLUGIN_SRC = gstplugin.c
67 GST_URI_SRC = gsturi.c
70 EXTRA_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = gstcpuid_i386.s gstmarshal.list gstxml.c gstparse.c gsttrace.c
72 SUBDIRS = $(GST_PARSE_DIRS) $(GST_REGISTRY_DIRS) . autoplug elements schedulers $(GST_INDEX_DIRS)
73 DIST_SUBDIRS = autoplug elements parse registries schedulers indexers
75 libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
78 $(GST_ENUMTYPES_SRC) \
118 $(GST_REGISTRY_SRC) \
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
129 libgstreamer_@GST_MAJORMINOR@_la_CFLAGS = -D_GNU_SOURCE \
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@
137 libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
193 libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers) $(built_headers)
205 # the compiler shoots cothreads.c in the head at -O6
206 libcothreads_la_SOURCES = cothreads.c
207 libcothreads_la_CFLAGS = $(libgstreamer_@GST_MAJORMINOR@_la_CFLAGS)
210 gstmarshal.h: gstmarshal.list
211 glib-genmarshal --header --prefix=gst_marshal $^ > gstmarshal.h.tmp
212 mv gstmarshal.h.tmp gstmarshal.h
214 gstmarshal.c: gstmarshal.list
215 echo "#include \"glib-object.h\"" >gstmarshal.c.tmp
216 echo "#include \"gstlog.h\"" >> gstmarshal.c.tmp
217 echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
218 glib-genmarshal --body --prefix=gst_marshal $^ >> gstmarshal.c.tmp
219 mv gstmarshal.c.tmp gstmarshal.c
221 gstenumtypes.h: $(gst_headers)
223 --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
224 --fprod "/* enumerations from \"@filename@\" */\n" \
225 --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
226 --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
229 gstenumtypes.c: $(gst_headers)
231 --fhead "#include <gst/gst.h>" \
232 --fprod "\n/* enumerations from \"@filename@\" */" \
233 --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[] = {" \
234 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
235 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \