summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorjiyong.min <jiyong.min@samsung.com>2018-11-22 00:30:01 (GMT)
committerjiyong.min <jiyong.min@samsung.com>2018-11-22 22:58:46 (GMT)
commite515d42c5e6a3c685eab494217dcc103bda6b7d9 (patch)
tree3c48bff04b2b907b512f25f35f19f903ea2dd5bf /packaging
parent615ce7cc8180124fef07d26dcc46b72b83c13d08 (diff)
downloadlibmedia-thumbnail-e515d42c5e6a3c685eab494217dcc103bda6b7d9.zip
libmedia-thumbnail-e515d42c5e6a3c685eab494217dcc103bda6b7d9.tar.gz
libmedia-thumbnail-e515d42c5e6a3c685eab494217dcc103bda6b7d9.tar.bz2
- It has only one testcases for libmedia-thumbnail of unittest - It would be enabled by gtest build with '--define "gtests 1"' Change-Id: I93a9b411242640823e9c8802bea31405548e05f0
Diffstat (limited to 'packaging')
-rw-r--r--packaging/libmedia-thumbnail.spec8
1 files changed, 7 insertions, 1 deletions
diff --git a/packaging/libmedia-thumbnail.spec b/packaging/libmedia-thumbnail.spec
index 542655a..44ee87d 100644
--- a/packaging/libmedia-thumbnail.spec
+++ b/packaging/libmedia-thumbnail.spec
@@ -19,6 +19,9 @@ BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(db-util)
BuildRequires: pkgconfig(mmutil-magick)
+%if 0%{?gtests:1}
+BuildRequires: pkgconfig(gmock)
+%endif
%description
Description: Media thumbnail service library for multimedia applications
@@ -47,7 +50,7 @@ cp %{SOURCE1001} %{SOURCE1002} %{SOURCE1003} .
%build
-%cmake .
+%cmake . -DBUILD_GTESTS=%{?gtests:1}%{!?gtests:0}
make %{?_smp_mflags}
%install
@@ -60,6 +63,9 @@ make %{?_smp_mflags}
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_libdir}/*.so.*
+%if 0%{?gtests:1}
+%{_bindir}/gtest*
+%endif
#License
%license LICENSE.APLv2.0