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 if !GST_DISABLE_GST_DEBUG
30 SUBDIRS_PRINTF = printf
31 GST_PRINTF_LA = printf/libgstprintf.la
37 SUBDIRS = $(SUBDIRS_PARSE) $(SUBDIRS_PRINTF)
39 DIST_SUBDIRS = parse printf
41 # make variables for all generated source and header files to make the
44 built_header_configure = gstversion.h
45 built_sys_header_configure = gstconfig.h
46 built_header_make = gstenumtypes.h
47 built_source_make = gstenumtypes.c
49 EXTRA_libgstreamer_@GST_API_VERSION@_la_SOURCES = \
54 # temporarily not used
57 libgstreamer_@GST_API_VERSION@_la_SOURCES = \
79 gstdeviceproviderfactory.c \
106 gstregistrychunks.c \
122 gsttypefindfactory.c \
129 # do not put files in the distribution that are generated
130 nodist_libgstreamer_@GST_API_VERSION@_la_SOURCES = $(built_source_make)
132 # BUILT_SOURCES are built on make all/check/install before all other targets
134 $(built_header_configure) \
135 $(built_sys_header_configure) \
136 $(built_header_make) \
138 # CLEANFILES is for files generated by make
139 CLEANFILES = $(built_header_make) $(built_source_make) $(as_dll_cleanfiles) *.gcno *.gcda *.gcov *.gcov.out
140 # DISTCLEANFILES is for files generated by configure
141 DISTCLEANFILES = $(built_header_configure) $(built_sys_header_configure)
143 libgstreamer_@GST_API_VERSION@_la_CFLAGS = \
146 -DG_LOG_DOMAIN=g_log_domain_gstreamer \
147 -DGST_API_VERSION=\""$(GST_API_VERSION)"\" \
148 -DGST_DISABLE_DEPRECATED \
152 libgstreamer_@GST_API_VERSION@_la_LIBADD = \
160 libgstreamer_@GST_API_VERSION@_la_LDFLAGS = \
161 $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
163 libgstreamer_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst
181 gstcontrolbinding.h \
186 gstelementmetadata.h \
188 gstdeviceprovider.h \
189 gstdeviceproviderfactory.h \
190 gstelementfactory.h \
227 gsttypefindfactory.h \
234 libgstreamer_@GST_API_VERSION@include_HEADERS = $(gst_headers) math-compat.h
236 nodist_libgstreamer_@GST_API_VERSION@include_HEADERS = \
237 $(built_header_configure) $(built_header_make)
239 configexecincludedir = $(libdir)/gstreamer-@GST_API_VERSION@/include/gst
240 nodist_configexecinclude_HEADERS = $(built_sys_header_configure)
244 glib-compat-private.h \
247 gstelementmetadata.h \
250 gstregistrybinary.h \
251 gstregistrychunks.h \
256 gstenumtypes.h: $(gst_headers)
257 $(AM_V_GEN)$(GLIB_MKENUMS) \
258 --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
259 --fprod "\n/* enumerations from \"@filename@\" */\n" \
260 --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
261 --ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
264 gstenumtypes.c: $(gst_headers)
265 $(AM_V_GEN)$(GLIB_MKENUMS) \
266 --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 " \
267 --fprod "\n/* enumerations from \"@filename@\" */" \
268 --vhead "GType\n@enum_name@_get_type (void)\n{\n static gsize id = 0;\n static const G@Type@Value values[] = {" \
269 --vprod " { C_@TYPE@(@VALUENAME@), \"@VALUENAME@\", \"@valuenick@\" }," \
270 --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}" \
273 %.c.gcov: .libs/libgstreamer_@GST_API_VERSION@_la-%.gcda %.c
274 $(GCOV) -b -f -o $^ > $@.out
276 gcov: $(libgstreamer_@GST_API_VERSION@_la_SOURCES:=.gcov)
278 if HAVE_INTROSPECTION
279 BUILT_GIRSOURCES = Gst-@GST_API_VERSION@.gir
281 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstreamer_@GST_API_VERSION@include_HEADERS))
282 gir_headers+=$(patsubst %,$(builddir)/%, $(built_header_make))
283 gir_headers+=$(patsubst %,$(builddir)/%, gstversion.h)
284 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstreamer_@GST_API_VERSION@_la_SOURCES))
285 gir_sources+=$(patsubst %,$(builddir)/%, $(built_source_make))
287 Gst-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstreamer-@GST_API_VERSION@.la
288 $(AM_V_GEN)GST_PLUGIN_SYSTEM_PATH_1_0="" GST_PLUGIN_PATH_1_0="" GST_REGISTRY_UPDATE=no GI_SCANNER_DISABLE_CACHE=yes\
289 $(INTROSPECTION_SCANNER) -v --namespace Gst \
290 --nsversion=@GST_API_VERSION@ \
294 -DIN_GOBJECT_INTROSPECTION=1 \
295 --c-include='gst/gst.h' \
296 --library=libgstreamer-@GST_API_VERSION@.la \
298 --include=GObject-2.0 \
299 --include=GModule-2.0 \
300 --libtool="${LIBTOOL}" \
303 --pkg gmodule-no-export-2.0 \
304 --pkg-export gstreamer-@GST_API_VERSION@ \
305 --add-init-section="$(INTROSPECTION_INIT)" \
310 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
311 # install anything - we need to install inside our prefix.
312 girdir = $(datadir)/gir-1.0
313 gir_DATA = $(BUILT_GIRSOURCES)
315 typelibsdir = $(libdir)/girepository-1.0/
317 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
319 %.typelib: %.gir $(INTROSPECTION_COMPILER)
320 $(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
322 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
325 # try to prevent packaging errors
326 check-libexecdir-consistency:
327 @if test "${GST_PLUGIN_SCANNER_INSTALLED}" != "${libexecdir}/gstreamer-$(GST_API_VERSION)/gst-plugin-scanner"; then \
328 echo "*** Inconsistent libexecdir! Please use ./configure --libexecdir=/foo/bar"; \
329 echo "*** to set the libexecdir and not make libexecdir=/foo/bar or the like."; \
330 echo "*** The same goes for prefix, libdir etc."; \
331 echo "*** ${GST_PLUGIN_SCANNER_INSTALLED} != ${libexecdir}/gstreamer-$(GST_API_VERSION)/gst-plugin-scanner"; \
335 all-local: check-libexecdir-consistency