1 lib_LTLIBRARIES = libgstreamer-@GST_MAJORMINOR@.la
3 if GST_DISABLE_REGISTRY
6 GST_REGISTRY_SRC = gstregistrybinary.c
14 GST_PARSE_LA = parse/libgstparse.la
20 GST_TRACE_SRC = gsttrace.c
26 GST_PLUGIN_SRC = gstplugin.c
29 SUBDIRS = $(SUBDIRS_PARSE)
33 # make variables for all generated source and header files to make the
36 built_header_configure = gstconfig.h gstversion.h
37 built_header_make = gstenumtypes.h
38 built_source_make = gstenumtypes.c
40 EXTRA_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
45 # temporarily not used
48 libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
99 gsttypefindfactory.c \
106 # do not put files in the distribution that are generated
107 nodist_libgstreamer_@GST_MAJORMINOR@_la_SOURCES = $(built_source_make)
109 # BUILT_SOURCES are built on make all/check/install before all other targets
111 $(built_header_configure) \
112 $(built_header_make) \
114 # CLEANFILES is for files generated by make
115 CLEANFILES = $(built_header_make) $(built_source_make) $(as_dll_cleanfiles) *.gcno *.gcda *.gcov *.gcov.out
116 # DISTCLEANFILES is for files generated by configure
117 DISTCLEANFILES = $(built_header_configure)
119 libgstreamer_@GST_MAJORMINOR@_la_CFLAGS = \
122 -DG_LOG_DOMAIN=g_log_domain_gstreamer \
123 -DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\" \
124 -DGST_DISABLE_DEPRECATED \
128 libgstreamer_@GST_MAJORMINOR@_la_LIBADD = \
134 libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS = \
135 $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
137 libgstreamer_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst
152 gstcontrolbinding.h \
157 gstelementmetadata.h \
158 gstelementfactory.h \
189 gsttypefindfactory.h \
196 libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers) math-compat.h
198 nodist_libgstreamer_@GST_MAJORMINOR@include_HEADERS = \
199 $(built_header_configure) $(built_header_make)
203 glib-compat-private.h \
206 gstelementmetadata.h \
209 gstregistrybinary.h \
210 gstregistrychunks.h \
214 gstenumtypes.h: $(gst_headers)
215 $(AM_V_GEN)glib-mkenums \
216 --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
217 --fprod "\n/* enumerations from \"@filename@\" */\n" \
218 --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
219 --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
222 gstenumtypes.c: $(gst_headers)
223 $(AM_V_GEN)glib-mkenums \
224 --fhead "#include \"gst_private.h\"\n#include <gst/gst.h>\n#define C_ENUM(v) ((gint) v)\n#define C_FLAGS(v) ((guint) v)\n " \
225 --fprod "\n/* enumerations from \"@filename@\" */" \
226 --vhead "GType\n@enum_name@_get_type (void)\n{\n static gsize id = 0;\n static const G@Type@Value values[] = {" \
227 --vprod " { C_@TYPE@(@VALUENAME@), \"@VALUENAME@\", \"@valuenick@\" }," \
228 --vtail " { 0, NULL, NULL }\n };\n\n if (g_once_init_enter (&id)) {\n GType tmp = g_@type@_register_static (\"@EnumName@\", values);\n g_once_init_leave (&id, tmp);\n }\n\n return (GType) id;\n}" \
231 %.c.gcov: .libs/libgstreamer_@GST_MAJORMINOR@_la-%.gcda %.c
232 $(GCOV) -b -f -o $^ > $@.out
234 gcov: $(libgstreamer_@GST_MAJORMINOR@_la_SOURCES:=.gcov)
236 Android.mk: Makefile.am
237 androgenizer -:PROJECT gstreamer -:SHARED libgstreamer-@GST_MAJORMINOR@ \
239 -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
240 -:SOURCES $(libgstreamer_@GST_MAJORMINOR@_la_SOURCES) \
241 $(nodist_libgstreamer_@GST_MAJORMINOR@_la_SOURCES) \
242 -:CFLAGS $(DEFS) $(libgstreamer_@GST_MAJORMINOR@_la_CFLAGS) \
243 -:LDFLAGS $(libgstreamer_@GST_MAJORMINOR@_la_LDFLAGS) \
244 $(libgstreamer_@GST_MAJORMINOR@_la_LIBADD) \
247 -:HEADER_TARGET gstreamer-@GST_MAJORMINOR@/gst \
248 -:HEADERS $(libgstreamer_@GST_MAJORMINOR@include_HEADERS) \
249 -:LIBFILTER_STATIC gstparse \
250 -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
253 if HAVE_INTROSPECTION
254 BUILT_GIRSOURCES = Gst-@GST_MAJORMINOR@.gir
256 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstreamer_@GST_MAJORMINOR@include_HEADERS))
257 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstreamer_@GST_MAJORMINOR@_la_SOURCES))
259 Gst-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstreamer-@GST_MAJORMINOR@.la
260 $(AM_V_GEN)GST_PLUGIN_SYSTEM_PATH="" GST_PLUGIN_PATH="" GST_REGISTRY_UPDATE=no \
261 $(INTROSPECTION_SCANNER) -v --namespace Gst \
262 --nsversion=@GST_MAJORMINOR@ \
266 -DIN_GOBJECT_INTROSPECTION=1 \
267 -DGST_USE_UNSTABLE_API \
268 --c-include='gst/gst.h' \
269 --library=libgstreamer-0.11.la \
271 --include=GObject-2.0 \
272 --include=GModule-2.0 \
273 --libtool="$(top_builddir)/libtool" \
276 --pkg gmodule-no-export-2.0 \
278 --pkg-export gstreamer-@GST_MAJORMINOR@ \
279 --add-init-section="gst_init(NULL, NULL);" \
284 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
285 # install anything - we need to install inside our prefix.
286 girdir = $(datadir)/gir-1.0
287 gir_DATA = $(BUILT_GIRSOURCES)
289 typelibsdir = $(libdir)/girepository-1.0/
291 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
293 %.typelib: %.gir $(INTROSPECTION_COMPILER)
294 $(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
296 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
299 # try to prevent packaging errors
300 check-libexecdir-consistency:
301 @if test "${GST_PLUGIN_SCANNER_INSTALLED}" != "${libexecdir}/gstreamer-$(GST_MAJORMINOR)/gst-plugin-scanner"; then \
302 echo "*** Inconsistent libexecdir! Please use ./configure --libexecdir=/foo/bar"; \
303 echo "*** to set the libexecdir and not make libexecdir=/foo/bar or the like."; \
304 echo "*** The same goes for prefix, libdir etc."; \
305 echo "*** ${GST_PLUGIN_SCANNER_INSTALLED} != ${libexecdir}/gstreamer-$(GST_MAJORMINOR)/gst-plugin-scanner"; \
309 all-local: check-libexecdir-consistency