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_PLUGIN_SRC = gstplugin.c
23 if !GST_DISABLE_GST_DEBUG
24 SUBDIRS_PRINTF = printf
25 GST_PRINTF_LA = printf/libgstprintf.la
31 SUBDIRS = $(SUBDIRS_PARSE) $(SUBDIRS_PRINTF)
33 DIST_SUBDIRS = parse printf
35 # make variables for all generated source and header files to make the
38 built_headers_configure = gstversion.h gstconfig.h
39 built_header_make = gstenumtypes.h
40 built_source_make = gstenumtypes.c
42 EXTRA_libgstreamer_@GST_API_VERSION@_la_SOURCES = \
46 # temporarily not used
49 libgstreamer_@GST_API_VERSION@_la_SOURCES = \
70 gstdeviceproviderfactory.c \
71 gstdynamictypefactory.c \
102 gststreamcollection.c \
117 gsttypefindfactory.c \
124 # do not put files in the distribution that are generated
125 nodist_libgstreamer_@GST_API_VERSION@_la_SOURCES = $(built_source_make)
127 # BUILT_SOURCES are built on make all/check/install before all other targets
129 $(built_headers_configure) \
130 $(built_header_make) \
132 # CLEANFILES is for files generated by make
133 CLEANFILES = $(built_header_make) $(built_source_make) $(as_dll_cleanfiles) *.gcno *.gcda *.gcov *.gcov.out
134 # DISTCLEANFILES is for files generated by configure
135 DISTCLEANFILES = $(built_headers_configure)
137 libgstreamer_@GST_API_VERSION@_la_CFLAGS = \
140 -DG_LOG_DOMAIN=g_log_domain_gstreamer \
141 -DGST_API_VERSION=\""$(GST_API_VERSION)"\" \
142 -DGST_DISABLE_DEPRECATED \
148 libgstreamer_@GST_API_VERSION@_la_LIBADD = \
158 libgstreamer_@GST_API_VERSION@_la_LDFLAGS = \
159 $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
161 libgstreamer_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst
179 gstcontrolbinding.h \
184 gstelementmetadata.h \
186 gstdeviceprovider.h \
187 gstdeviceproviderfactory.h \
188 gstdynamictypefactory.h \
189 gstelementfactory.h \
216 gststreamcollection.h \
230 gsttypefindfactory.h \
237 libgstreamer_@GST_API_VERSION@include_HEADERS = $(gst_headers) math-compat.h
239 nodist_libgstreamer_@GST_API_VERSION@include_HEADERS = \
240 $(built_headers_configure) $(built_header_make)
244 glib-compat-private.h \
247 gstelementmetadata.h \
250 gstregistrybinary.h \
251 gstregistrychunks.h \
255 gstenumtypes.h: $(gst_headers)
256 $(AM_V_GEN)$(GLIB_MKENUMS) \
257 --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n#include <gst/gstconfig.h>\n\nG_BEGIN_DECLS\n" \
258 --fprod "\n/* enumerations from \"@filename@\" */\n" \
259 --vhead "GST_API GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
260 --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
263 gstenumtypes.c: $(gst_headers)
264 $(AM_V_GEN)$(GLIB_MKENUMS) \
265 --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 " \
266 --fprod "\n/* enumerations from \"@filename@\" */" \
267 --vhead "GType\n@enum_name@_get_type (void)\n{\n static gsize id = 0;\n static const G@Type@Value values[] = {" \
268 --vprod " { C_@TYPE@(@VALUENAME@), \"@VALUENAME@\", \"@valuenick@\" }," \
269 --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}" \
272 %.c.gcov: .libs/libgstreamer_@GST_API_VERSION@_la-%.gcda %.c
273 $(GCOV) -b -f -o $^ > $@.out
275 gcov: $(libgstreamer_@GST_API_VERSION@_la_SOURCES:=.gcov)
277 if HAVE_INTROSPECTION
278 BUILT_GIRSOURCES = Gst-@GST_API_VERSION@.gir
280 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstreamer_@GST_API_VERSION@include_HEADERS))
281 gir_headers+=$(patsubst %,$(builddir)/%, $(built_header_make))
282 gir_headers+=$(patsubst %,$(builddir)/%, gstversion.h)
283 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstreamer_@GST_API_VERSION@_la_SOURCES))
284 gir_sources+=$(patsubst %,$(builddir)/%, $(built_source_make))
286 Gst-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstreamer-@GST_API_VERSION@.la
287 $(AM_V_GEN)GST_PLUGIN_SYSTEM_PATH_1_0="" GST_PLUGIN_PATH_1_0="" GST_REGISTRY_DISABLE=yes GI_SCANNER_DISABLE_CACHE=yes \
288 CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CC="$(CC)" PKG_CONFIG="$(PKG_CONFIG)" DLLTOOL="$(DLLTOOL)" \
289 $(INTROSPECTION_SCANNER) -v --namespace Gst \
290 --nsversion=@GST_API_VERSION@ \
295 -DIN_GOBJECT_INTROSPECTION=1 \
296 --c-include='gst/gst.h' \
297 --library=libgstreamer-@GST_API_VERSION@.la \
299 --include=GObject-2.0 \
300 --include=GModule-2.0 \
301 --libtool="${LIBTOOL}" \
304 --pkg gmodule-no-export-2.0 \
305 --pkg-export gstreamer-@GST_API_VERSION@ \
306 --add-init-section="$(INTROSPECTION_INIT)" \
311 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
312 # install anything - we need to install inside our prefix.
313 girdir = $(datadir)/gir-1.0
314 gir_DATA = $(BUILT_GIRSOURCES)
316 typelibsdir = $(libdir)/girepository-1.0/
318 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
320 %.typelib: %.gir $(INTROSPECTION_COMPILER)
321 $(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
323 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
326 # try to prevent packaging errors
327 check-libexecdir-consistency:
328 @if test "${GST_PLUGIN_SCANNER_INSTALLED}" != "${libexecdir}/gstreamer-$(GST_API_VERSION)/gst-plugin-scanner"; then \
329 echo "*** Inconsistent libexecdir! Please use ./configure --libexecdir=/foo/bar"; \
330 echo "*** to set the libexecdir and not make libexecdir=/foo/bar or the like."; \
331 echo "*** The same goes for prefix, libdir etc."; \
332 echo "*** ${GST_PLUGIN_SCANNER_INSTALLED} != ${libexecdir}/gstreamer-$(GST_API_VERSION)/gst-plugin-scanner"; \
336 all-local: check-libexecdir-consistency