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
57 SUBDIRS = $(SUBDIRS_PARSE) . base elements $(SUBDIRS_INDEX) $(SUBDIRS_CHECK)
58 DIST_SUBDIRS = base elements parse indexers check
60 # make variables for all generated source and header files to make the
63 built_header_configure = gstconfig.h gstversion.h
64 built_header_make = gstenumtypes.h gstmarshal.h
65 built_source_make = $(GST_ENUMTYPES_SRC) gstmarshal.c
67 EXTRA_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
68 gstmarshal.list gstxml.c gstparse.c gsttrace.c
70 libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
109 gsttypefindfactory.c \
118 # do not put files in the distribution that are generated
119 nodist_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = $(built_source_make)
121 # BUILT_SOURCES are built on make all/check/install before all other targets
123 $(built_header_configure) \
124 $(built_header_make) \
126 # CLEANFILES is for files generated by make
127 CLEANFILES = $(built_header_make) $(built_source_make) $(as_dll_cleanfiles)
128 # DISTCLEANFILES is for files generated by configure
129 DISTCLEANFILES = $(built_header_configure)
131 libgstreamer_@GST_MAJORMINOR@_la_CFLAGS = \
134 -DG_LOG_DOMAIN=g_log_domain_gstreamer \
135 -DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\"
136 libgstreamer_@GST_MAJORMINOR@_la_LIBADD = \
137 $(GST_LIB_LIBS) $(GST_PARSE_LA)
138 libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = \
139 @GST_LT_LDFLAGS@ -version-info @GST_LIBVERSION@ \
140 -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).* \
143 libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
156 gstelementfactory.h \
184 gsttypefindfactory.h \
193 libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers)
194 nodist_libgstreamer_@GST_MAJORMINOR@include_HEADERS = \
195 $(built_header_configure) $(built_header_make)
204 gstmarshal.h: gstmarshal.list
205 glib-genmarshal --header --prefix=gst_marshal $(srcdir)/gstmarshal.list > gstmarshal.h.tmp
206 mv gstmarshal.h.tmp gstmarshal.h
208 gstmarshal.c: gstmarshal.list gst_private.h
209 echo "#include \"gst_private.h\"" > gstmarshal.c.tmp
210 echo "#include \"glib-object.h\"" >> gstmarshal.c.tmp
211 echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
212 glib-genmarshal --body --prefix=gst_marshal $(srcdir)/gstmarshal.list >> gstmarshal.c.tmp
213 mv gstmarshal.c.tmp gstmarshal.c
215 gstenumtypes.h: $(gst_headers)
217 --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
218 --fprod "\n/* enumerations from \"@filename@\" */\n" \
219 --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
220 --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
223 gstenumtypes.c: $(gst_headers)
225 --fhead "#include \"gst_private.h\"\n#include <gst/gst.h>" \
226 --fprod "\n/* enumerations from \"@filename@\" */" \
227 --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[] = {" \
228 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
229 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \