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
24 GST_PARSE_LA = parse/libgstparse.la
30 GST_TRACE_SRC = gsttrace.c
36 GST_PLUGIN_SRC = gstplugin.c
39 SUBDIRS = $(SUBDIRS_PARSE)
43 # make variables for all generated source and header files to make the
46 built_header_configure = gstconfig.h gstversion.h
47 built_header_make = gstenumtypes.h gstmarshal.h
48 built_source_make = gstenumtypes.c gstmarshal.c
50 EXTRA_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
51 gstmarshal.list gsttrace.c gstxml.c \
52 gstregistryxml.c gstregistrybinary.c
55 # temporarily not used
58 libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
102 gsttypefindfactory.c \
107 $(GST_REGISTRY_SRC) \
110 # do not put files in the distribution that are generated
111 nodist_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = $(built_source_make)
113 # BUILT_SOURCES are built on make all/check/install before all other targets
115 $(built_header_configure) \
116 $(built_header_make) \
118 # CLEANFILES is for files generated by make
119 CLEANFILES = $(built_header_make) $(built_source_make) $(as_dll_cleanfiles) *.gcno *.gcda *.gcov *.gcov.out
120 # DISTCLEANFILES is for files generated by configure
121 DISTCLEANFILES = $(built_header_configure)
123 libgstreamer_@GST_MAJORMINOR@_la_CFLAGS = \
126 -DG_LOG_DOMAIN=g_log_domain_gstreamer \
127 -DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\" \
128 -DGST_DISABLE_DEPRECATED \
132 libgstreamer_@GST_MAJORMINOR@_la_LIBADD = \
138 libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = \
139 $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS) $(LIBM)
141 libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
156 gstelementfactory.h \
188 gsttypefindfactory.h \
196 libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers)
197 nodist_libgstreamer_@GST_MAJORMINOR@include_HEADERS = \
198 $(built_header_configure) $(built_header_make)
202 glib-compat-private.h \
206 gstregistrybinary.h \
209 gstmarshal.h: gstmarshal.list
210 glib-genmarshal --header --prefix=gst_marshal $(srcdir)/gstmarshal.list > gstmarshal.h.tmp
211 mv gstmarshal.h.tmp gstmarshal.h
213 gstmarshal.c: gstmarshal.list gst_private.h
214 echo "#include \"gst_private.h\"" > gstmarshal.c.tmp
215 echo "#include \"glib-object.h\"" >> gstmarshal.c.tmp
216 echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
217 glib-genmarshal --body --prefix=gst_marshal $(srcdir)/gstmarshal.list >> gstmarshal.c.tmp
218 mv gstmarshal.c.tmp gstmarshal.c
220 gstenumtypes.h: $(gst_headers)
222 --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
223 --fprod "\n/* enumerations from \"@filename@\" */\n" \
224 --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
225 --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
228 gstenumtypes.c: $(gst_headers)
230 --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 " \
231 --fprod "\n/* enumerations from \"@filename@\" */" \
232 --vhead "GType\n@enum_name@_get_type (void)\n{\n static gsize id = 0;\n static const G@Type@Value values[] = {" \
233 --vprod " { C_@TYPE@(@VALUENAME@), \"@VALUENAME@\", \"@valuenick@\" }," \
234 --vtail " { 0, NULL, NULL }\n };\n\n if (g_once_init_enter (&id)) {\n GType tmp = g_@type@_register_static (\"@EnumName@\", values);\n g_once_init_leave (&id, tmp);\n }\n\n return (GType) id;\n}" \
237 %.c.gcov: .libs/libgstreamer_@GST_MAJORMINOR@_la-%.gcda %.c
238 $(GCOV) -b -f -o $^ > $@.out
240 gcov: $(libgstreamer_@GST_MAJORMINOR@_la_SOURCES:=.gcov)