shithub: openh264

Download patch

ref: 62824ce398eacb64927fc96bade4d6818d9dccd2
parent: 8962b7c98baa809867d23d301665b9c0e99db10b
parent: 63ff6b566cdc4c7b7915c901671c03971f3763ba
author: volvet <qizh@cisco.com>
date: Fri Mar 14 04:48:16 EDT 2014

Merge pull request #484 from licaiguo/add-gcov

Add gcov

--- a/Makefile
+++ b/Makefile
@@ -40,6 +40,10 @@
 CFLAGS += -DNO_DYNAMIC_VP
 LDFLAGS +=
 
+ifeq (Yes, $(GCOV))
+CFLAGS += -fprofile-arcs -ftest-coverage
+LDFLAGS += -lgcov
+endif
 
 #### No user-serviceable parts below this line
 ifneq ($(V),Yes)
--- /dev/null
+++ b/code-coverage.sh
@@ -1,0 +1,6 @@
+#!/bin/sh
+lcov -b . -d . -c -o tmp.info
+lcov -e tmp.info \*/codec/\* -o gcov.info
+mkdir -p code-coverage
+genhtml gcov.info -o ./code-coverage
+rm -f tmp.info gcov.info