mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-14 06:59:53 -05:00
build: add a target to ease the creation of coverage files
This commit is contained in:
parent
d53f16b6a2
commit
89a6fd740f
1 changed files with 19 additions and 1 deletions
|
|
@ -2066,4 +2066,22 @@ $(installmodlibexecLTLIBRARIES): install-pkglibLTLIBRARIES
|
||||||
installpadsplibLTLIBRARIES = install-padsplibLTLIBRARIES
|
installpadsplibLTLIBRARIES = install-padsplibLTLIBRARIES
|
||||||
$(installpadsplibLTLIBRARIES): install-libLTLIBRARIES
|
$(installpadsplibLTLIBRARIES): install-libLTLIBRARIES
|
||||||
|
|
||||||
.PHONY: massif update-all update-ffmpeg update-sbc update-map-file
|
if HAVE_GCOV
|
||||||
|
coverage:
|
||||||
|
@echo ""
|
||||||
|
@echo "Don't forget to run 'make check' before generating coverage stats."
|
||||||
|
@echo ""
|
||||||
|
lcov --capture --directory . --output-file $(builddir)/gcov-all.info
|
||||||
|
-rm -r $(builddir)/coverage
|
||||||
|
genhtml --output-directory $(builddir)/coverage gcov-all.info
|
||||||
|
@echo ""
|
||||||
|
@echo "Coverage data now available at: $(abs_builddir)/coverage/index.html"
|
||||||
|
else
|
||||||
|
coverage:
|
||||||
|
@echo ""
|
||||||
|
@echo "To generate coverage stats, rerun configure with '--enable-gcov',"
|
||||||
|
@echo "and don't forget to disable it again for regular builds."
|
||||||
|
@echo ""
|
||||||
|
endif
|
||||||
|
|
||||||
|
.PHONY: massif update-all update-ffmpeg update-sbc update-map-file coverage
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue