1 lib_LTLIBRARIES = libgstreamer-@GST_MAJORMINOR@.la
3 if GST_DISABLE_LOADSAVE
6 GST_LOADSAVE_SRC = gstxml.c
9 if GST_DISABLE_REGISTRY
12 GST_REGISTRY_SRC = gstregistryxml.c
21 GST_PARSE_SRC = gstparse.c
22 GST_PARSE_H = gstparse.h
24 GST_PARSE_LA = parse/libgstparse.la
30 GST_TRACE_SRC = gsttrace.c
33 if GST_DISABLE_ENUMTYPES
36 GST_ENUMTYPES_SRC = gstenumtypes.c
42 GST_INDEX_SRC = gstindex.c gstindexfactory.c
48 GST_PLUGIN_SRC = gstplugin.c
54 GST_URI_SRC = gsturi.c
57 SUBDIRS = $(SUBDIRS_PARSE)
61 # make variables for all generated source and header files to make the
64 built_header_configure = gstconfig.h gstversion.h
65 built_header_make = gstenumtypes.h gstmarshal.h
66 built_source_make = $(GST_ENUMTYPES_SRC) gstmarshal.c
68 EXTRA_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
69 gstmarshal.list gstxml.c gstparse.c gsttrace.c gstregistryxml.c
72 # temporarily not used
75 libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
113 gsttypefindfactory.c \
118 $(GST_REGISTRY_SRC) \
121 # do not put files in the distribution that are generated
122 nodist_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = $(built_source_make)
124 # BUILT_SOURCES are built on make all/check/install before all other targets
126 $(built_header_configure) \
127 $(built_header_make) \
129 # CLEANFILES is for files generated by make
130 CLEANFILES = $(built_header_make) $(built_source_make) $(as_dll_cleanfiles) *.gcno *.gcda *.gcov *.gcov.out
131 # DISTCLEANFILES is for files generated by configure
132 DISTCLEANFILES = $(built_header_configure)
134 libgstreamer_@GST_MAJORMINOR@_la_CFLAGS = \
136 -DG_LOG_DOMAIN=g_log_domain_gstreamer \
137 -DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\" \
138 -DGST_DISABLE_DEPRECATED \
142 libgstreamer_@GST_MAJORMINOR@_la_LIBADD = \
147 libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = \
148 $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
150 libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
164 gstelementfactory.h \
192 gsttypefindfactory.h \
200 libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers)
201 nodist_libgstreamer_@GST_MAJORMINOR@include_HEADERS = \
202 $(built_header_configure) $(built_header_make)
209 glib-compat-private.h \
215 gstmarshal.h: gstmarshal.list
216 glib-genmarshal --header --prefix=gst_marshal $(srcdir)/gstmarshal.list > gstmarshal.h.tmp
217 mv gstmarshal.h.tmp gstmarshal.h
219 gstmarshal.c: gstmarshal.list gst_private.h
220 echo "#include \"gst_private.h\"" > gstmarshal.c.tmp
221 echo "#include \"glib-object.h\"" >> gstmarshal.c.tmp
222 echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
223 glib-genmarshal --body --prefix=gst_marshal $(srcdir)/gstmarshal.list >> gstmarshal.c.tmp
224 mv gstmarshal.c.tmp gstmarshal.c
226 gstenumtypes.h: $(gst_headers)
228 --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
229 --fprod "\n/* enumerations from \"@filename@\" */\n" \
230 --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
231 --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
234 gstenumtypes.c: $(gst_headers)
236 --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 " \
237 --fprod "\n/* enumerations from \"@filename@\" */" \
238 --vhead "static void\nregister_@enum_name@ (GType* id)\n{\n static const G@Type@Value values[] = {" \
239 --vprod " { C_@TYPE@(@VALUENAME@), \"@VALUENAME@\", \"@valuenick@\" }," \
240 --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" \
243 %.c.gcov: .libs/libgstreamer_@GST_MAJORMINOR@_la-%.gcda %.c
244 $(GCOV) -b -f -o $^ > $@.out
246 gcov: $(libgstreamer_@GST_MAJORMINOR@_la_SOURCES:=.gcov)