1 lib_LTLIBRARIES = libgstreamer-@GST_MAJORMINOR@.la
9 if GST_DISABLE_LOADSAVE
12 GST_LOADSAVE_SRC = gstxml.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
41 GST_INDEX_SRC = gstindex.c gstindexfactory.c
42 SUBDIRS_INDEX = indexers
48 GST_PLUGIN_SRC = gstplugin.c
54 GST_URI_SRC = gsturi.c
72 DIST_SUBDIRS = base elements parse indexers net check
74 # make variables for all generated source and header files to make the
77 built_header_configure = gstconfig.h gstversion.h
78 built_header_make = gstenumtypes.h gstmarshal.h
79 built_source_make = $(GST_ENUMTYPES_SRC) gstmarshal.c
81 EXTRA_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
82 gstmarshal.list gstxml.c gstparse.c gsttrace.c
84 libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
124 gsttypefindfactory.c \
133 # do not put files in the distribution that are generated
134 nodist_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = $(built_source_make)
136 # BUILT_SOURCES are built on make all/check/install before all other targets
138 $(built_header_configure) \
139 $(built_header_make) \
141 # CLEANFILES is for files generated by make
142 CLEANFILES = $(built_header_make) $(built_source_make) $(as_dll_cleanfiles)
143 # DISTCLEANFILES is for files generated by configure
144 DISTCLEANFILES = $(built_header_configure)
146 libgstreamer_@GST_MAJORMINOR@_la_CFLAGS = \
148 -DG_LOG_DOMAIN=g_log_domain_gstreamer \
149 -DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\" \
150 -DGST_DISABLE_DEPRECATED \
154 libgstreamer_@GST_MAJORMINOR@_la_LIBADD = \
159 libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = \
163 libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
176 gstelementfactory.h \
205 gsttypefindfactory.h \
214 libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers)
215 nodist_libgstreamer_@GST_MAJORMINOR@include_HEADERS = \
216 $(built_header_configure) $(built_header_make)
225 gstmarshal.h: gstmarshal.list
226 glib-genmarshal --header --prefix=gst_marshal $(srcdir)/gstmarshal.list > gstmarshal.h.tmp
227 mv gstmarshal.h.tmp gstmarshal.h
229 gstmarshal.c: gstmarshal.list gst_private.h
230 echo "#include \"gst_private.h\"" > gstmarshal.c.tmp
231 echo "#include \"glib-object.h\"" >> gstmarshal.c.tmp
232 echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
233 glib-genmarshal --body --prefix=gst_marshal $(srcdir)/gstmarshal.list >> gstmarshal.c.tmp
234 mv gstmarshal.c.tmp gstmarshal.c
236 gstenumtypes.h: $(gst_headers)
238 --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
239 --fprod "\n/* enumerations from \"@filename@\" */\n" \
240 --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
241 --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
244 gstenumtypes.c: $(gst_headers)
246 --fhead "#include \"gst_private.h\"\n#include <gst/gst.h>" \
247 --fprod "\n/* enumerations from \"@filename@\" */" \
248 --vhead "static void\nregister_@enum_name@ (GType* id)\n{\n static const G@Type@Value values[] = {" \
249 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
250 --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" \