From: Sunggyu Choi Date: Mon, 22 Jul 2019 08:09:35 +0000 (+0900) Subject: Update gcov configuration for common X-Git-Tag: accepted/tizen/unified/20190724.063746~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e037318fdca4e8a2dddd4acac8d63ab504cd0df5;p=platform%2Fcore%2Fapi%2Fcommon.git Update gcov configuration for common Change-Id: Idc22e677de37fcf06171784ef9a94ada7b91d035 Signed-off-by: Sunggyu Choi --- diff --git a/packaging/capi-base-common.spec b/packaging/capi-base-common.spec index 667425d..2d21bac 100644 --- a/packaging/capi-base-common.spec +++ b/packaging/capi-base-common.spec @@ -58,6 +58,13 @@ mkdir -p gcov-obj find . -name '*.gcno' -exec cp '{}' gcov-obj ';' %endif +%if 0%{?gcov:1} +lcov -c --ignore-errors graph --no-external -q -d . -o capi-base-common.info +genhtml capi-base-common.info -o capi-base-common.out +zip -r capi-base-common.zip capi-base-common.out capi-base-common.info +install -m 0644 capi-base-common.zip %{buildroot}%{_datadir}/gcov/ +%endif + %install rm -rf %{buildroot} %make_install @@ -67,13 +74,6 @@ mkdir -p %{buildroot}%{_datadir}/gcov/obj install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj %endif -%if 0%{?gcov:1} -lcov -c --ignore-errors graph --no-external -q -d . -o capi-base-common.info -genhtml capi-base-common.info -o capi-base-common.out -zip -r capi-base-common.zip capi-base-common.out capi-base-common.info -install -m 0644 capi-base-common.zip %{buildroot}%{_datadir}/gcov/ -%endif - %post -p /sbin/ldconfig %postun -p /sbin/ldconfig