Commit a1db26c4 authored by Kai Vehmanen's avatar Kai Vehmanen

Build system updates: modified lcov rules.

darcs-hash:20070521152408-77cd4-619e4676d30ff65fb56785f1152b49635e238ea9.gz
parent 7ca5c9f4
......@@ -26,3 +26,21 @@ DIST_SUBDIRS = $(SUBDIRS) gst
EXTRA_DIST = scripts common.mk
lcov:
find -name '*.gcda' -delete
$(MAKE) $(AM_MAKEFLAGS) check
find -type d -name '.libs' | while read d ; do \
mv -fv $$d/*.gc* $$d/.. 2>/dev/null || true ; \
done
$(MAKE) lcov-report
lcov-report:
mkdir -p lcov
lcov -d . -c > lcov/lcov.info
lcov -l lcov/lcov.info 2>/dev/null | \
egrep '(^/usr|/test.*\.c)' | \
cut -d: -f1 > lcov/lcov.remove
lcov -r lcov/lcov.info `cat lcov/lcov.remove` 2>/dev/null > lcov/lcov.info.clean
genhtml -o lcov lcov/lcov.info.clean
.PHONY: lcov-report lcov
......@@ -10,6 +10,12 @@ check_symbols=$srcdir/../scripts/check-symbols.sh
if ! test -f $check_symbols; then
echo "can't find check-symbols.sh"
exit 1
fi
if ! test -f .libs/libnice.so; then
echo "not building shared object" >&2
exit 77
fi
sh $check_symbols .libs/libnice.so $srcdir/libnice.symbols
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment