diff options
author | Jung Jihoon <jh8801.jung@samsung.com> | 2019-07-02 19:26:06 +0900 |
---|---|---|
committer | Jung Jihoon <jh8801.jung@samsung.com> | 2019-07-02 19:27:24 +0900 |
commit | 657c246a7cf0f8fc2bca1a06d16ea5f0db379c99 (patch) | |
tree | 99f5460cc319d8441a8d4cfbd57d275c159035f9 | |
parent | 77bd29331f57d7f7d8bc5f813a1b4ced107b2f78 (diff) | |
download | wifi-mesh-tizen_6.0.tar.gz wifi-mesh-tizen_6.0.tar.bz2 wifi-mesh-tizen_6.0.zip |
make a gcov package for measuring coverage easiertizen_6.5.m2_releasetizen_6.0.m2_releasetizen_5.5.m2_releasesubmit/tizen_6.5/20211028.161801submit/tizen_6.0_hotfix/20201103.114802submit/tizen_6.0_hotfix/20201102.192502submit/tizen_6.0/20201029.205102submit/tizen_5.5_wearable_hotfix/20201026.184302submit/tizen_5.5_mobile_hotfix/20201026.185102submit/tizen_5.5/20191031.000002submit/tizen/20190704.015937accepted/tizen/unified/20190704.040530accepted/tizen/6.5/unified/20211028.101042accepted/tizen/6.0/unified/hotfix/20201103.050847accepted/tizen/6.0/unified/hotfix/20201103.003948accepted/tizen/6.0/unified/20201030.121710accepted/tizen/5.5/unified/wearable/hotfix/20201027.120930accepted/tizen/5.5/unified/mobile/hotfix/20201027.064857accepted/tizen/5.5/unified/20191031.030220tizen_6.0_hotfixtizen_6.0tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixaccepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unifiedaccepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unified
Change-Id: I642859e562009813f53f40a6dd3aa764e77c896c
Signed-off-by: Jung Jihoon <jh8801.jung@samsung.com>
-rw-r--r-- | packaging/capi-network-wifi-mesh.spec | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/packaging/capi-network-wifi-mesh.spec b/packaging/capi-network-wifi-mesh.spec index 12e78b0..67cbfdf 100644 --- a/packaging/capi-network-wifi-mesh.spec +++ b/packaging/capi-network-wifi-mesh.spec @@ -29,6 +29,14 @@ Requires: %{name} = %{version}-%{release} %description devel Mesh Core API library (development library) +%if 0%{?gcov:1} +%package gcov +Summary: A Wi-Fi Mesh gcov Tool +Group: Network & Connectivity/Development +%description gcov +Wi-Fi Mesh gcov objects +%endif + %prep %setup -q cp %{SOURCE1001} . @@ -51,10 +59,20 @@ cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \ make %{?jobs:-j%jobs} +%if 0%{?gcov:1} +mkdir -p gcov-obj +find . -name '*.gcno' -exec cp '{}' gcov-obj ';' +%endif + %install rm -rf %{buildroot} %make_install +%if 0%{?gcov:1} +mkdir -p %{buildroot}%{_datadir}/gcov/obj +install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj +%endif + %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -69,3 +87,8 @@ rm -rf %{buildroot} %{_includedir}/network/*.h %{_libdir}/pkgconfig/*.pc %{_libdir}/libcapi-network-wifi-mesh.so + +%if 0%{?gcov:1} +%files gcov +%{_datadir}/gcov/obj/* +%endif |