1 lib_LTLIBRARIES = libgstreamer-@GST_API_VERSION@.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_API_VERSION@_la_SOURCES = \
45 # temporarily not used
48 libgstreamer_@GST_API_VERSION@_la_SOURCES = \
101 gsttypefindfactory.c \
108 # do not put files in the distribution that are generated
109 nodist_libgstreamer_@GST_API_VERSION@_la_SOURCES = $(built_source_make)
111 # BUILT_SOURCES are built on make all/check/install before all other targets
113 $(built_header_configure) \
114 $(built_header_make) \
116 # CLEANFILES is for files generated by make
117 CLEANFILES = $(built_header_make) $(built_source_make) $(as_dll_cleanfiles) *.gcno *.gcda *.gcov *.gcov.out
118 # DISTCLEANFILES is for files generated by configure
119 DISTCLEANFILES = $(built_header_configure)
121 libgstreamer_@GST_API_VERSION@_la_CFLAGS = \
124 -DG_LOG_DOMAIN=g_log_domain_gstreamer \
125 -DGST_API_VERSION=\""$(GST_API_VERSION)"\" \
126 -DGST_DISABLE_DEPRECATED \
130 libgstreamer_@GST_API_VERSION@_la_LIBADD = \
136 libgstreamer_@GST_API_VERSION@_la_LDFLAGS = \
137 $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
139 libgstreamer_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst
154 gstcontrolbinding.h \
159 gstelementmetadata.h \
160 gstelementfactory.h \
193 gsttypefindfactory.h \
200 libgstreamer_@GST_API_VERSION@include_HEADERS = $(gst_headers) math-compat.h
202 nodist_libgstreamer_@GST_API_VERSION@include_HEADERS = \
203 $(built_header_configure) $(built_header_make)
207 glib-compat-private.h \
210 gstelementmetadata.h \
213 gstregistrybinary.h \
214 gstregistrychunks.h \
218 gstenumtypes.h: $(gst_headers)
219 $(AM_V_GEN)glib-mkenums \
220 --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
221 --fprod "\n/* enumerations from \"@filename@\" */\n" \
222 --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
223 --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
226 gstenumtypes.c: $(gst_headers)
227 $(AM_V_GEN)glib-mkenums \
228 --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 " \
229 --fprod "\n/* enumerations from \"@filename@\" */" \
230 --vhead "GType\n@enum_name@_get_type (void)\n{\n static gsize id = 0;\n static const G@Type@Value values[] = {" \
231 --vprod " { C_@TYPE@(@VALUENAME@), \"@VALUENAME@\", \"@valuenick@\" }," \
232 --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}" \
235 %.c.gcov: .libs/libgstreamer_@GST_API_VERSION@_la-%.gcda %.c
236 $(GCOV) -b -f -o $^ > $@.out
238 gcov: $(libgstreamer_@GST_API_VERSION@_la_SOURCES:=.gcov)
240 Android.mk: Makefile.am
241 androgenizer -:PROJECT gstreamer -:SHARED libgstreamer-@GST_API_VERSION@ \
243 -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
244 -:SOURCES $(libgstreamer_@GST_API_VERSION@_la_SOURCES) \
245 $(nodist_libgstreamer_@GST_API_VERSION@_la_SOURCES) \
246 -:CFLAGS $(DEFS) $(libgstreamer_@GST_API_VERSION@_la_CFLAGS) \
247 -:LDFLAGS $(libgstreamer_@GST_API_VERSION@_la_LDFLAGS) \
248 $(libgstreamer_@GST_API_VERSION@_la_LIBADD) \
251 -:HEADER_TARGET gstreamer-@GST_API_VERSION@/gst \
252 -:HEADERS $(libgstreamer_@GST_API_VERSION@include_HEADERS) \
253 -:LIBFILTER_STATIC gstparse \
254 -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
257 if HAVE_INTROSPECTION
258 BUILT_GIRSOURCES = Gst-@GST_API_VERSION@.gir
260 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstreamer_@GST_API_VERSION@include_HEADERS))
261 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstreamer_@GST_API_VERSION@_la_SOURCES))
263 Gst-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstreamer-@GST_API_VERSION@.la
264 $(AM_V_GEN)GST_PLUGIN_SYSTEM_PATH="" GST_PLUGIN_PATH="" GST_REGISTRY_UPDATE=no \
265 $(INTROSPECTION_SCANNER) -v --namespace Gst \
266 --nsversion=@GST_API_VERSION@ \
270 -DIN_GOBJECT_INTROSPECTION=1 \
271 -DGST_USE_UNSTABLE_API \
272 --c-include='gst/gst.h' \
273 --library=libgstreamer-@GST_API_VERSION@.la \
275 --include=GObject-2.0 \
276 --include=GModule-2.0 \
277 --libtool="$(top_builddir)/libtool" \
280 --pkg gmodule-no-export-2.0 \
282 --pkg-export gstreamer-@GST_API_VERSION@ \
283 --add-init-section="gst_init(NULL, NULL);" \
288 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
289 # install anything - we need to install inside our prefix.
290 girdir = $(datadir)/gir-1.0
291 gir_DATA = $(BUILT_GIRSOURCES)
293 typelibsdir = $(libdir)/girepository-1.0/
295 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
297 %.typelib: %.gir $(INTROSPECTION_COMPILER)
298 $(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
300 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
303 # try to prevent packaging errors
304 check-libexecdir-consistency:
305 @if test "${GST_PLUGIN_SCANNER_INSTALLED}" != "${libexecdir}/gstreamer-$(GST_API_VERSION)/gst-plugin-scanner"; then \
306 echo "*** Inconsistent libexecdir! Please use ./configure --libexecdir=/foo/bar"; \
307 echo "*** to set the libexecdir and not make libexecdir=/foo/bar or the like."; \
308 echo "*** The same goes for prefix, libdir etc."; \
309 echo "*** ${GST_PLUGIN_SCANNER_INSTALLED} != ${libexecdir}/gstreamer-$(GST_API_VERSION)/gst-plugin-scanner"; \
313 all-local: check-libexecdir-consistency