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
31 GST_TRACE_SRC = gsttrace.c
32 GST_TRACE_H = gsttrace.h
35 if GST_DISABLE_ENUMTYPES
38 GST_ENUMTYPES_SRC = gstenumtypes.c
44 GST_INDEX_SRC = gstindex.c gstindexfactory.c
50 GST_PLUGIN_SRC = gstplugin.c
56 GST_URI_SRC = gsturi.c
59 SUBDIRS = $(SUBDIRS_PARSE)
63 # make variables for all generated source and header files to make the
66 built_header_configure = gstconfig.h gstversion.h
67 built_header_make = gstenumtypes.h gstmarshal.h
68 built_source_make = $(GST_ENUMTYPES_SRC) gstmarshal.c
70 EXTRA_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
71 gstmarshal.list gstxml.c gstparse.c gsttrace.c gstregistryxml.c
74 # temporarily not used
77 libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
114 gsttypefindfactory.c \
119 $(GST_REGISTRY_SRC) \
122 # do not put files in the distribution that are generated
123 nodist_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = $(built_source_make)
125 # BUILT_SOURCES are built on make all/check/install before all other targets
127 $(built_header_configure) \
128 $(built_header_make) \
130 # CLEANFILES is for files generated by make
131 CLEANFILES = $(built_header_make) $(built_source_make) $(as_dll_cleanfiles) *.gcno *.gcda *.gcov *.gcov.out
132 # DISTCLEANFILES is for files generated by configure
133 DISTCLEANFILES = $(built_header_configure)
135 libgstreamer_@GST_MAJORMINOR@_la_CFLAGS = \
137 -DG_LOG_DOMAIN=g_log_domain_gstreamer \
138 -DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\" \
139 -DGST_DISABLE_DEPRECATED \
143 libgstreamer_@GST_MAJORMINOR@_la_LIBADD = \
148 libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = \
149 $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
151 libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
165 gstelementfactory.h \
193 gsttypefindfactory.h \
201 libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers)
202 nodist_libgstreamer_@GST_MAJORMINOR@include_HEADERS = \
203 $(built_header_configure) $(built_header_make)
211 glib-compat-private.h \
216 gstmarshal.h: gstmarshal.list
217 glib-genmarshal --header --prefix=gst_marshal $(srcdir)/gstmarshal.list > gstmarshal.h.tmp
218 mv gstmarshal.h.tmp gstmarshal.h
220 gstmarshal.c: gstmarshal.list gst_private.h
221 echo "#include \"gst_private.h\"" > gstmarshal.c.tmp
222 echo "#include \"glib-object.h\"" >> gstmarshal.c.tmp
223 echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
224 glib-genmarshal --body --prefix=gst_marshal $(srcdir)/gstmarshal.list >> 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 "\n/* 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_private.h\"\n#include <gst/gst.h>" \
238 --fprod "\n/* enumerations from \"@filename@\" */" \
239 --vhead "static void\nregister_@enum_name@ (GType* id)\n{\n static const G@Type@Value values[] = {" \
240 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
241 --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" \
244 %.c.gcov: .libs/libgstreamer_@GST_MAJORMINOR@_la-%.gcda %.c
245 $(GCOV) -b -f -o $^ > $@.out
247 gcov: $(libgstreamer_@GST_MAJORMINOR@_la_SOURCES:=.gcov)