}
}
+/* LCOV_EXCL_START */
static void _uiccTransmitCallback(TapiHandle *handle, int result,
void *data, void *user_data)
{
g_main_loop_quit(context->loop);
g_main_loop_unref(context->loop);
}
+/* LCOV_EXCL_STOP */
namespace smartcard_service_api
{
return result;
}
+ /* LCOV_EXCL_START */
int UICCTerminal::transmit(const ByteArray &command,
terminalTransmitCallback callback, void *userParam)
{
return result;
}
+ /* LCOV_EXCL_STOP */
bool UICCTerminal::isSecureElementPresence() const
{
return result;
}
+ /* LCOV_EXCL_START */
void UICCTerminal::uiccStatusNotiCallback(TapiHandle *handle,
const char *noti_id, void *data, void *user_data)
{
break;
}
}
+ /* LCOV_EXCL_STOP */
} /* namespace smartcard_service_api */
%description devel
smartcard service.
+%if 0%{?gcov:1}
+%package gcov
+Summary: A smartcard-plugin-uicc gcov Tool
+Group: Network & Connectivity/Development
+
+%description gcov
+A smartcard-plugin-uicc gcov objects
+%endif
%build
+%if 0%{?gcov:1}
+export CFLAGS="-fprofile-arcs -ftest-coverage"
+export CXXFLAGS="-fprofile-arcs -ftest-coverage"
+export LDFLAGS=" -lgcov"
+%endif
+
%if 0%{?sec_build_binary_debug_enable}
export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
%ifarch aarch64 x86_64
-DTIZEN_ARCH_64=1 \
%endif
+ -DBUILD_GCOV=%{?gcov:1}%{!?gcov:0}
#make %{?jobs:-j%jobs}
+%if 0%{?gcov:1}
+mkdir -p gcov-obj
+find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
+%endif
%install
cd obj-arm-limux-qnueabi
%make_install
+%if 0%{?gcov:1}
+mkdir -p %{buildroot}%{_datadir}/gcov/obj
+install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
+%endif
+
%post
/sbin/ldconfig
%license LICENSE.APLv2
%defattr(-,root,root,-)
%{_libdir}/se/lib*.so
+
+%if 0%{?gcov:1}
+%files gcov
+%{_datadir}/gcov/obj/*
+%endif
+