Blame Makefile.am

Packit a6ee4b
DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
Packit a6ee4b
Packit a6ee4b
# note: keep in sync with configure.ac
Packit a6ee4b
ACLOCAL_AMFLAGS = -I m4 -I common/m4
Packit a6ee4b
Packit a6ee4b
aclocaldir = $(datadir)/aclocal
Packit a6ee4b
aclocal_DATA = gst-element-check-1.0.m4
Packit a6ee4b
Packit a6ee4b
SUBDIRS = pkgconfig \
Packit a6ee4b
	gst libs plugins tests \
Packit a6ee4b
	docs \
Packit a6ee4b
	po \
Packit a6ee4b
	m4 \
Packit a6ee4b
	common \
Packit a6ee4b
	data
Packit a6ee4b
Packit a6ee4b
if BUILD_TOOLS
Packit a6ee4b
SUBDIRS += tools
Packit a6ee4b
endif
Packit a6ee4b
Packit a6ee4b
# These are all the possible subdirs
Packit a6ee4b
DIST_SUBDIRS = pkgconfig \
Packit a6ee4b
	gst libs plugins tools tests \
Packit a6ee4b
	docs \
Packit a6ee4b
	po \
Packit a6ee4b
	m4 \
Packit a6ee4b
	common \
Packit a6ee4b
	data
Packit a6ee4b
Packit a6ee4b
EXTRA_DIST = \
Packit a6ee4b
	gst-element-check-1.0.m4 \
Packit a6ee4b
	configure.ac autogen.sh depcomp \
Packit a6ee4b
	MAINTAINERS ABOUT-NLS RELEASE gstreamer.doap \
Packit a6ee4b
	scripts/gst-uninstalled \
Packit a6ee4b
	$(shell find "$(top_srcdir)" -type f -name meson.build ! -path "$(top_srcdir)/gstreamer-*" ) \
Packit a6ee4b
	meson_options.txt \
Packit a6ee4b
	gst/parse/gen_lex.py.in gst/parse/gen_grammar.py.in
Packit a6ee4b
Packit a6ee4b
DISTCLEANFILES = _stdint.h
Packit a6ee4b
Packit a6ee4b
include $(top_srcdir)/common/release.mak
Packit a6ee4b
include $(top_srcdir)/common/po.mak
Packit a6ee4b
Packit a6ee4b
if GST_GCOV_ENABLED
Packit a6ee4b
clean-gcov:
Packit a6ee4b
	find -name "*.da" -o -name "*.gcov" | xargs rm || true
Packit a6ee4b
Packit a6ee4b
clean-bbg:
Packit a6ee4b
	find -name "*.bbg" -o -name "*.bb" | xargs rm || true
Packit a6ee4b
Packit a6ee4b
GCOV_DIRS=gst libs
Packit a6ee4b
Packit a6ee4b
## .PHONY so it always rebuilds it
Packit a6ee4b
.PHONY: coverage-report.txt
Packit a6ee4b
Packit a6ee4b
coverage-report.txt:
Packit a6ee4b
	BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ;			  \
Packit a6ee4b
	C_FILES= ;							  \
Packit a6ee4b
	for F in $$BBG_FILES ; do					  \
Packit a6ee4b
		F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ;		  \
Packit a6ee4b
		C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g'` ;		  \
Packit a6ee4b
		B=`basename $$F .bbg` ;					  \
Packit a6ee4b
		D=`dirname $$F` ;					  \
Packit a6ee4b
		DA=`echo $$F | sed -e 's/.bbg/.da/g'` ;			  \
Packit a6ee4b
		DA_libs=`echo $$D/.libs/$$B/.da` ;			  \
Packit a6ee4b
		if test -e $$DA || test -e $$DA_libs; then		  \
Packit a6ee4b
			C_FILES="$$C_FILES $$C" ;			  \
Packit a6ee4b
		fi ;							  \
Packit a6ee4b
	done ;								  \
Packit a6ee4b
	echo $$C_FILES ;						  \
Packit a6ee4b
	$(top_builddir)/testsuite/decode-gcov --report $$C_FILES > coverage-report.txt
Packit a6ee4b
Packit a6ee4b
check-coverage: clean-gcov all check coverage-report.txt
Packit a6ee4b
	cat coverage-report.txt
Packit a6ee4b
Packit a6ee4b
else
Packit a6ee4b
coverage-report.txt:
Packit a6ee4b
	echo "Need to reconfigure with --enable-gcov"
Packit a6ee4b
Packit a6ee4b
check-coverage:
Packit a6ee4b
	echo "Need to reconfigure with --enable-gcov"
Packit a6ee4b
endif
Packit a6ee4b
Packit a6ee4b
if HAVE_CHECK
Packit a6ee4b
check-valgrind:
Packit a6ee4b
	$(MAKE) -C tests/check check-valgrind
Packit a6ee4b
Packit a6ee4b
check-torture:
Packit a6ee4b
	$(MAKE) -C tests/check torture
Packit a6ee4b
Packit a6ee4b
build-checks:
Packit a6ee4b
	$(MAKE) -C tests/check build-checks
Packit a6ee4b
else
Packit a6ee4b
check-valgrind:
Packit a6ee4b
	echo "'check' library not installed, skipping"
Packit a6ee4b
Packit a6ee4b
check-torture:
Packit a6ee4b
	echo "'check' library not installed, skipping"
Packit a6ee4b
Packit a6ee4b
build-checks:
Packit a6ee4b
	echo "'check' library not installed, skipping"
Packit a6ee4b
endif
Packit a6ee4b
Packit a6ee4b
check-enum-gettypes: $(top_builddir)/gst/gstenumtypes.h
Packit a6ee4b
	@echo 'Checking if all enum and flag _get_type() funcs are inited in gst_init()';                        \
Packit a6ee4b
	FUNCS=`grep '_get_type (' gst/gstenumtypes.h | sed -e 's/^.*gst_/gst_/' -e 's/_get_type.*$$/_get_type/'`;\
Packit a6ee4b
	MISSING_FUNCS='';                                                                                        \
Packit a6ee4b
	for f in $$FUNCS; do                                                                                     \
Packit a6ee4b
	  INIT_LINE=`grep $$f $(top_srcdir)/gst/*.c | grep g_type_class_ref`;                                    \
Packit a6ee4b
	  if test "x$$INIT_LINE" = "x"; then                                                                     \
Packit a6ee4b
	    MISSING_FUNCS="$$MISSING_FUNCS $$f";                                                                 \
Packit a6ee4b
	  fi;                                                                                                    \
Packit a6ee4b
	done;                                                                                                    \
Packit a6ee4b
	if test "x$$MISSING_FUNCS" != "x"; then                                                                  \
Packit a6ee4b
	  echo "FIXME: please add to the following to gst/gst.c init_post():";                                   \
Packit a6ee4b
	  for f in $$MISSING_FUNCS; do                                                                           \
Packit a6ee4b
	    echo "  g_type_class_ref ($$f ());";                                                                 \
Packit a6ee4b
	  done;                                                                                                  \
Packit a6ee4b
	  exit 1;                                                                                                \
Packit a6ee4b
	fi;                                                                                                      \
Packit a6ee4b
	echo 'Checking if all enum and flag _get_type() funcs are deinited in gst_deinit()';                     \
Packit a6ee4b
	MISSING_FUNCS='';                                                                                        \
Packit a6ee4b
	for f in $$FUNCS; do                                                                                     \
Packit a6ee4b
	  INIT_LINE=`grep $$f $(top_srcdir)/gst/*.c | grep g_type_class_unref`;                                  \
Packit a6ee4b
	  if test "x$$INIT_LINE" = "x"; then                                                                     \
Packit a6ee4b
	    MISSING_FUNCS="$$MISSING_FUNCS $$f";                                                                 \
Packit a6ee4b
	  fi;                                                                                                    \
Packit a6ee4b
	done;                                                                                                    \
Packit a6ee4b
	if test "x$$MISSING_FUNCS" != "x"; then                                                                  \
Packit a6ee4b
	  echo "FIXME: please add to the following to gst/gst.c gst_deinit():";                                  \
Packit a6ee4b
	  for f in $$MISSING_FUNCS; do                                                                           \
Packit a6ee4b
	    echo "  g_type_class_unref (g_type_class_peek ($$f ()));";                                           \
Packit a6ee4b
	  done;                                                                                                  \
Packit a6ee4b
	  exit 1;                                                                                                \
Packit a6ee4b
	fi
Packit a6ee4b
Packit a6ee4b
include $(top_srcdir)/common/coverage/lcov.mak
Packit a6ee4b
Packit a6ee4b
check: check-enum-gettypes
Packit a6ee4b
Packit a6ee4b
# cruft: plugins that have been merged or moved or renamed
Packit a6ee4b
Packit a6ee4b
CRUFT_FILES = \
Packit a6ee4b
	$(top_builddir)/win32/common/config.h-new \
Packit a6ee4b
	$(top_builddir)/common/shave \
Packit a6ee4b
	$(top_builddir)/common/shave-libtool \
Packit a6ee4b
	$(top_builddir)/common/m4/codeset.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/gettext.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/glibc2.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/glibc21.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/iconv.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/intdiv0.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/intl.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/intldir.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/intlmacosx.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/intmax.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/inttypes-pri.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/inttypes_h.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/lcmessage.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/lib-ld.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/lib-link.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/lib-prefix.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/libtool.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/lock.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/longlong.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/ltoptions.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/ltsugar.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/ltversion.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/lt~obsolete.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/nls.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/po.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/printf-posix.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/progtest.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/size_max.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/stdint_h.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/uintmax_t.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/visibility.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/wchar_t.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/wint_t.m4 \
Packit a6ee4b
	$(top_builddir)/common/m4/xsize.m4
Packit a6ee4b
Packit a6ee4b
CRUFT_DIRS = \
Packit a6ee4b
	$(top_builddir)/tests/examples/xml \
Packit a6ee4b
	$(top_builddir)/tests/examples/launch \
Packit a6ee4b
	$(top_builddir)/tests/examples/metadata \
Packit a6ee4b
	$(top_builddir)/tests/examples/queue \
Packit a6ee4b
	$(top_builddir)/tests/examples/typefind \
Packit a6ee4b
	$(top_builddir)/gst/tmp-introspect* \
Packit a6ee4b
	$(top_builddir)/libs/gst/*/tmp-introspect* \
Packit a6ee4b
	$(top_srcdir)/docs/plugins/tmpl
Packit a6ee4b
Packit a6ee4b
include $(top_srcdir)/common/cruft.mak
Packit a6ee4b
Packit a6ee4b
all-local: check-cruft