configuration: config_h
)
-doxygen = find_program('doxygen', required: false)
-if not doxygen.found()
- error('doxygen not found')
-endif
-
dconf = configuration_data()
dconf.set('VERSION', meson.project_version())
if find_program('dot', required : false).found()
dconf.set('HAVE_DOT', 'NO')
endif
-subdir('doc')
+if get_option('enable_documentation') == true
+ doxygen = find_program('doxygen', required: false)
+ if not doxygen.found()
+ error('doxygen not found')
+ endif
+ subdir('doc')
+endif
type: 'boolean',
value: false,
description: 'enable tizen specific gcov configuration'
-)
\ No newline at end of file
+)
+
+option('enable_documentation',
+ type: 'boolean',
+ value: false,
+ description: 'enable generating documentation by using doxygen'
+)
Source1001: %{name}.manifest
BuildRequires: meson
-BuildRequires: doxygen
BuildRequires: pkgconfig(grpc)
BuildRequires: pkgconfig(grpc++)
BuildRequires: pkgconfig(capi-system-system-settings)
BuildRequires: pkgconfig(capi-base-utils-i18n)
+%if 0%{?gendoc:1}
+BuildRequires: doxygen
+%endif
+
%if 0%{?gcov:1}
BuildRequires: lcov
%endif
%description bootstrap
gRPC Server
+%if 0%{?gendoc:1}
%package docs
Summary: documentation
License: Apache-2.0
%description docs
documentations for aurum
+%endif
%if 0%{?gcov:1}
%package gcov
%define TIZEN_GCOV false
%endif
+%if 0%{?gendoc:1}
+%define TIZEN_GEN_DOC true
+%else
+%define TIZEN_GEN_DOC false
+%endif
meson \
--prefix /usr \
--libdir %{_libdir} \
-Dcpp_std=c++17 \
-Dtizen=true \
+ -Denable_documentation=%{TIZEN_GEN_DOC} \
-Dtizen_gcov=%{TIZEN_GCOV} \
-Dtzapp_path=%{TZ_SYS_RO_APP} \
-Dtzpackage_path=%{TZ_SYS_RO_PACKAGES} \
%{TZ_SYS_RO_PACKAGES}/org.tizen.aurum-bootstrap.xml
%{TZ_SYS_RO_APP}/org.tizen.aurum-bootstrap/*
+%if 0%{?gendoc:1}
%files docs
%manifest %{name}.manifest
%defattr(-,root,root)
%license COPYING
%{_datadir}/doc/aurum/
+%endif
%if 0%{?gcov:1}
%files gcov
%{_bindir}/gtest_aurum
%else
%exclude %{_bindir}/gtest_aurum
-%endif
-
+%endif
\ No newline at end of file