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
20 GST_PARSE_SRC = gstparse.c
22 GST_PARSE_LA = parse/libgstparse.la
28 GST_TRACE_SRC = gsttrace.c
31 if GST_DISABLE_ENUMTYPES
34 GST_ENUMTYPES_SRC = gstenumtypes.c
40 GST_INDEX_SRC = gstindex.c gstindexfactory.c
46 GST_PLUGIN_SRC = gstplugin.c
52 GST_URI_SRC = gsturi.c
55 SUBDIRS = $(SUBDIRS_PARSE)
59 # make variables for all generated source and header files to make the
62 built_header_configure = gstconfig.h gstversion.h
63 built_header_make = gstenumtypes.h gstmarshal.h
64 built_source_make = $(GST_ENUMTYPES_SRC) gstmarshal.c
66 EXTRA_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
67 gstmarshal.list gstxml.c gstparse.c gsttrace.c gstregistryxml.c
69 libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
107 gsttypefindfactory.c \
112 $(GST_REGISTRY_SRC) \
115 # do not put files in the distribution that are generated
116 nodist_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = $(built_source_make)
118 # BUILT_SOURCES are built on make all/check/install before all other targets
120 $(built_header_configure) \
121 $(built_header_make) \
123 # CLEANFILES is for files generated by make
124 CLEANFILES = $(built_header_make) $(built_source_make) $(as_dll_cleanfiles)
125 # DISTCLEANFILES is for files generated by configure
126 DISTCLEANFILES = $(built_header_configure)
128 libgstreamer_@GST_MAJORMINOR@_la_CFLAGS = \
130 -DG_LOG_DOMAIN=g_log_domain_gstreamer \
131 -DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\" \
132 -DGST_DISABLE_DEPRECATED \
136 libgstreamer_@GST_MAJORMINOR@_la_LIBADD = \
141 libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = \
142 $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
144 libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
158 gstelementfactory.h \
186 gsttypefindfactory.h \
194 libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers)
195 nodist_libgstreamer_@GST_MAJORMINOR@include_HEADERS = \
196 $(built_header_configure) $(built_header_make)
200 glib-compat-private.h \
205 gstmarshal.h: gstmarshal.list
206 glib-genmarshal --header --prefix=gst_marshal $(srcdir)/gstmarshal.list > gstmarshal.h.tmp
207 mv gstmarshal.h.tmp gstmarshal.h
209 gstmarshal.c: gstmarshal.list gst_private.h
210 echo "#include \"gst_private.h\"" > gstmarshal.c.tmp
211 echo "#include \"glib-object.h\"" >> gstmarshal.c.tmp
212 echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
213 glib-genmarshal --body --prefix=gst_marshal $(srcdir)/gstmarshal.list >> gstmarshal.c.tmp
214 mv gstmarshal.c.tmp gstmarshal.c
216 gstenumtypes.h: $(gst_headers)
218 --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
219 --fprod "\n/* enumerations from \"@filename@\" */\n" \
220 --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
221 --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
224 gstenumtypes.c: $(gst_headers)
226 --fhead "#include \"gst_private.h\"\n#include <gst/gst.h>" \
227 --fprod "\n/* enumerations from \"@filename@\" */" \
228 --vhead "static void\nregister_@enum_name@ (GType* id)\n{\n static const G@Type@Value values[] = {" \
229 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
230 --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" \