1 lib_LTLIBRARIES = libgstreamer-@GST_MAJORMINOR@.la
3 if GST_DISABLE_LOADSAVE
6 GST_LOADSAVE_SRC = gstxml.c
9 if GST_DISABLE_REGISTRY
12 if USE_BINARY_REGISTRY
13 GST_REGISTRY_SRC = gstregistrybinary.c
15 GST_REGISTRY_SRC = gstregistryxml.c
25 GST_PARSE_SRC = gstparse.c
26 GST_PARSE_H = gstparse.h
28 GST_PARSE_LA = parse/libgstparse.la
34 GST_TRACE_SRC = gsttrace.c
37 if GST_DISABLE_ENUMTYPES
40 GST_ENUMTYPES_SRC = gstenumtypes.c
46 GST_INDEX_SRC = gstindex.c gstindexfactory.c
52 GST_PLUGIN_SRC = gstplugin.c
58 GST_URI_SRC = gsturi.c
61 SUBDIRS = $(SUBDIRS_PARSE)
65 # make variables for all generated source and header files to make the
68 built_header_configure = gstconfig.h gstversion.h
69 built_header_make = gstenumtypes.h gstmarshal.h
70 built_source_make = $(GST_ENUMTYPES_SRC) gstmarshal.c
72 EXTRA_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
73 gstmarshal.list gstparse.c gsttrace.c gstxml.c \
74 gstregistryxml.c gstregistrybinary.c
77 # temporarily not used
80 libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
118 gsttypefindfactory.c \
123 $(GST_REGISTRY_SRC) \
126 # do not put files in the distribution that are generated
127 nodist_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = $(built_source_make)
129 # BUILT_SOURCES are built on make all/check/install before all other targets
131 $(built_header_configure) \
132 $(built_header_make) \
134 # CLEANFILES is for files generated by make
135 CLEANFILES = $(built_header_make) $(built_source_make) $(as_dll_cleanfiles) *.gcno *.gcda *.gcov *.gcov.out
136 # DISTCLEANFILES is for files generated by configure
137 DISTCLEANFILES = $(built_header_configure)
139 libgstreamer_@GST_MAJORMINOR@_la_CFLAGS = \
141 -DG_LOG_DOMAIN=g_log_domain_gstreamer \
142 -DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\" \
143 -DGST_DISABLE_DEPRECATED \
147 libgstreamer_@GST_MAJORMINOR@_la_LIBADD = \
152 libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = \
153 $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
155 libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
169 gstelementfactory.h \
197 gsttypefindfactory.h \
205 libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers)
206 nodist_libgstreamer_@GST_MAJORMINOR@include_HEADERS = \
207 $(built_header_configure) $(built_header_make)
214 glib-compat-private.h \
218 gstregistrybinary.h \
221 gstmarshal.h: gstmarshal.list
222 glib-genmarshal --header --prefix=gst_marshal $(srcdir)/gstmarshal.list > gstmarshal.h.tmp
223 mv gstmarshal.h.tmp gstmarshal.h
225 gstmarshal.c: gstmarshal.list gst_private.h
226 echo "#include \"gst_private.h\"" > gstmarshal.c.tmp
227 echo "#include \"glib-object.h\"" >> gstmarshal.c.tmp
228 echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
229 glib-genmarshal --body --prefix=gst_marshal $(srcdir)/gstmarshal.list >> gstmarshal.c.tmp
230 mv gstmarshal.c.tmp gstmarshal.c
232 gstenumtypes.h: $(gst_headers)
234 --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
235 --fprod "\n/* enumerations from \"@filename@\" */\n" \
236 --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
237 --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
240 gstenumtypes.c: $(gst_headers)
242 --fhead "#include \"gst_private.h\"\n#include <gst/gst.h>\n#define C_ENUM(v) ((gint) v)\n#define C_FLAGS(v) ((guint) v)\n " \
243 --fprod "\n/* enumerations from \"@filename@\" */" \
244 --vhead "static void\nregister_@enum_name@ (GType* id)\n{\n static const G@Type@Value values[] = {" \
245 --vprod " { C_@TYPE@(@VALUENAME@), \"@VALUENAME@\", \"@valuenick@\" }," \
246 --vtail " { 0, NULL, NULL }\n };\n *id = g_@type@_register_static (\"@EnumName@\", values);\n}\nGType\n@enum_name@_get_type (void)\n{\n static GType id;\n static GOnce once = G_ONCE_INIT;\n\n g_once (&once, (GThreadFunc)register_@enum_name@, &id);\n return id;\n}\n" \
249 %.c.gcov: .libs/libgstreamer_@GST_MAJORMINOR@_la-%.gcda %.c
250 $(GCOV) -b -f -o $^ > $@.out
252 gcov: $(libgstreamer_@GST_MAJORMINOR@_la_SOURCES:=.gcov)