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_REGISTRY
36 GST_REGISTRY_SRC = gstregistry.c
37 SUBDIRS_REGISTRY = registries
38 GST_REGISTRY_LA = registries/libgstxmlregistry.la
41 if GST_DISABLE_ENUMTYPES
44 GST_ENUMTYPES_SRC = gstenumtypes.c
51 GST_INDEX_SRC = gstindex.c
52 SUBDIRS_INDEX = indexers
58 GST_PLUGIN_SRC = gstplugin.c
64 GST_URI_SRC = gsturi.c
67 SUBDIRS = $(SUBDIRS_PARSE) $(SUBDIRS_REGISTRY) . base elements $(SUBDIRS_INDEX) $(SUBDIRS_CHECK)
68 DIST_SUBDIRS = base elements parse registries indexers check
70 # make variables for all generated source and header files to make the
73 built_header_configure = gstconfig.h gstversion.h
74 built_header_make = gstenumtypes.h gstmarshal.h
75 built_source_make = $(GST_ENUMTYPES_SRC) gstmarshal.c
77 EXTRA_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
78 gstmarshal.list gstxml.c gstparse.c gsttrace.c
80 libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
118 gsttypefindfactory.c \
123 $(GST_REGISTRY_SRC) \
129 # do not put files in the distribution that are generated
130 nodist_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = $(built_source_make)
132 # BUILT_SOURCES are built on make all/check/install before all other targets
134 $(built_header_configure) \
135 $(built_header_make) \
137 # CLEANFILES is for files generated by make
138 CLEANFILES = $(built_header_make) $(built_source_make) $(as_dll_cleanfiles)
139 # DISTCLEANFILES is for files generated by configure
140 DISTCLEANFILES = $(built_header_configure)
142 libgstreamer_@GST_MAJORMINOR@_la_CFLAGS = \
145 -DG_LOG_DOMAIN=g_log_domain_gstreamer \
146 -DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\"
147 libgstreamer_@GST_MAJORMINOR@_la_LIBADD = \
148 $(GST_LIB_LIBS) $(GST_PARSE_LA) $(GST_REGISTRY_LA)
149 libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = \
150 @GST_LT_LDFLAGS@ -version-info @GST_LIBVERSION@ \
151 -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*
153 libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
166 gstelementfactory.h \
195 gsttypefindfactory.h \
205 libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers)
206 nodist_libgstreamer_@GST_MAJORMINOR@include_HEADERS = \
207 $(built_header_configure) $(built_header_make)
215 gstmarshal.h: gstmarshal.list
216 glib-genmarshal --header --prefix=gst_marshal $(srcdir)/gstmarshal.list > gstmarshal.h.tmp
217 mv gstmarshal.h.tmp gstmarshal.h
219 gstmarshal.c: gstmarshal.list gst_private.h
220 echo "#include \"gst_private.h\"" > gstmarshal.c.tmp
221 echo "#include \"glib-object.h\"" >> gstmarshal.c.tmp
222 echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
223 glib-genmarshal --body --prefix=gst_marshal $(srcdir)/gstmarshal.list >> gstmarshal.c.tmp
224 mv gstmarshal.c.tmp gstmarshal.c
226 gstenumtypes.h: $(gst_headers)
228 --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
229 --fprod "\n/* enumerations from \"@filename@\" */\n" \
230 --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
231 --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
234 gstenumtypes.c: $(gst_headers)
236 --fhead "#include \"gst_private.h\"\n#include <gst/gst.h>" \
237 --fprod "\n/* enumerations from \"@filename@\" */" \
238 --vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
239 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
240 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \