1 lib_LTLIBRARIES = libgstreamer-@GST_MAJORMINOR@.la
4 #GST_INSTRUMENT_FLAGS = -finstrument-functions -DGST_ENABLE_FUNC_INSTRUMENTATION
6 if GST_DISABLE_LOADSAVE
9 GST_LOADSAVE_SRC = gstxml.c
17 GST_PARSE_SRC = gstparse.c
18 GST_PARSE_DIRS = parse
19 GST_PARSE_LA = parse/libgstparse.la
25 GST_TRACE_SRC = gsttrace.c
28 if GST_DISABLE_REGISTRY
33 GST_REGISTRY_SRC = gstregistry.c
34 GST_REGISTRY_DIRS = registries
35 GST_REGISTRY_LA = registries/libgstxmlregistry.la
38 if GST_DISABLE_ENUMTYPES
41 GST_ENUMTYPES_SRC = gstenumtypes.c
48 GST_INDEX_SRC = gstindex.c
49 GST_INDEX_DIRS = indexers
55 GST_PLUGIN_SRC = gstplugin.c
61 GST_URI_SRC = gsturi.c
64 SUBDIRS = $(GST_PARSE_DIRS) $(GST_REGISTRY_DIRS) . base elements schedulers $(GST_INDEX_DIRS)
65 DIST_SUBDIRS = base elements parse registries schedulers indexers
67 # make variables for all generated source and header files to make the
70 built_header_configure = gstconfig.h gstversion.h
71 built_header_make = gstenumtypes.h gstmarshal.h
72 built_source_make = $(GST_ENUMTYPES_SRC) gstmarshal.c
74 EXTRA_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
75 gstmarshal.list gstxml.c gstparse.c gsttrace.c
77 libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
118 $(GST_REGISTRY_SRC) \
124 # do not put files in the distribution that are generated
125 nodist_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = $(built_source_make)
127 # BUILT_SOURCES are built on make all/check/install before all other targets
129 $(built_header_configure) \
130 $(built_header_make) \
132 # CLEANFILES is for files generated by make
133 CLEANFILES = $(built_header_make) $(built_source_make) $(as_dll_cleanfiles)
134 # DISTCLEANFILES is for files generated by configure
135 DISTCLEANFILES = $(built_header_configure)
137 libgstreamer_@GST_MAJORMINOR@_la_CFLAGS = \
140 -DG_LOG_DOMAIN=g_log_domain_gstreamer \
141 -DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\"
142 libgstreamer_@GST_MAJORMINOR@_la_LIBADD = \
143 $(GST_LIB_LIBS) $(GST_PARSE_LA) $(GST_REGISTRY_LA)
144 libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = \
145 @GST_LT_LDFLAGS@ -version-info @GST_LIBVERSION@ \
146 -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*
148 libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
199 libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers)
200 nodist_libgstreamer_@GST_MAJORMINOR@include_HEADERS = \
201 $(built_header_configure) $(built_header_make)
212 gstmarshal.h: gstmarshal.list
213 glib-genmarshal --header --prefix=gst_marshal $(srcdir)/gstmarshal.list > gstmarshal.h.tmp
214 mv gstmarshal.h.tmp gstmarshal.h
216 gstmarshal.c: gstmarshal.list gst_private.h
217 echo "#include \"gst_private.h\"" > gstmarshal.c.tmp
218 echo "#include \"glib-object.h\"" >> gstmarshal.c.tmp
219 echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
220 glib-genmarshal --body --prefix=gst_marshal $(srcdir)/gstmarshal.list >> gstmarshal.c.tmp
221 mv gstmarshal.c.tmp gstmarshal.c
223 gstenumtypes.h: $(gst_headers)
225 --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
226 --fprod "/* enumerations from \"@filename@\" */\n" \
227 --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
228 --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
231 gstenumtypes.c: $(gst_headers)
233 --fhead "#include \"gst_private.h\"\n#include <gst/gst.h>" \
234 --fprod "\n/* enumerations from \"@filename@\" */" \
235 --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[] = {" \
236 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
237 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \