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
76 DIST_SUBDIRS = base elements parse indexers net check
78 # make variables for all generated source and header files to make the
81 built_header_configure = gstconfig.h gstversion.h
82 built_header_make = gstenumtypes.h gstmarshal.h
83 built_source_make = $(GST_ENUMTYPES_SRC) gstmarshal.c
85 EXTRA_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
86 gstmarshal.list gstxml.c gstparse.c gsttrace.c
88 libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
128 gsttypefindfactory.c \
136 # do not put files in the distribution that are generated
137 nodist_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = $(built_source_make)
139 # BUILT_SOURCES are built on make all/check/install before all other targets
141 $(built_header_configure) \
142 $(built_header_make) \
144 # CLEANFILES is for files generated by make
145 CLEANFILES = $(built_header_make) $(built_source_make) $(as_dll_cleanfiles)
146 # DISTCLEANFILES is for files generated by configure
147 DISTCLEANFILES = $(built_header_configure)
149 libgstreamer_@GST_MAJORMINOR@_la_CFLAGS = \
151 -DG_LOG_DOMAIN=g_log_domain_gstreamer \
152 -DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\" \
153 -DGST_DISABLE_DEPRECATED \
157 libgstreamer_@GST_MAJORMINOR@_la_LIBADD = \
162 libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = \
163 $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
165 libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
179 gstelementfactory.h \
208 gsttypefindfactory.h \
216 libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers)
217 nodist_libgstreamer_@GST_MAJORMINOR@include_HEADERS = \
218 $(built_header_configure) $(built_header_make)
222 glib-compat-private.h \
227 gstmarshal.h: gstmarshal.list
228 glib-genmarshal --header --prefix=gst_marshal $(srcdir)/gstmarshal.list > gstmarshal.h.tmp
229 mv gstmarshal.h.tmp gstmarshal.h
231 gstmarshal.c: gstmarshal.list gst_private.h
232 echo "#include \"gst_private.h\"" > gstmarshal.c.tmp
233 echo "#include \"glib-object.h\"" >> gstmarshal.c.tmp
234 echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
235 glib-genmarshal --body --prefix=gst_marshal $(srcdir)/gstmarshal.list >> gstmarshal.c.tmp
236 mv gstmarshal.c.tmp gstmarshal.c
238 gstenumtypes.h: $(gst_headers)
240 --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
241 --fprod "\n/* enumerations from \"@filename@\" */\n" \
242 --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
243 --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
246 gstenumtypes.c: $(gst_headers)
248 --fhead "#include \"gst_private.h\"\n#include <gst/gst.h>" \
249 --fprod "\n/* enumerations from \"@filename@\" */" \
250 --vhead "static void\nregister_@enum_name@ (GType* id)\n{\n static const G@Type@Value values[] = {" \
251 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
252 --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" \