2018-05-23 08:52:58 +00:00
|
|
|
if get_option('gtk_doc')
|
|
|
|
|
|
|
|
subdir('xml')
|
|
|
|
|
2021-12-29 09:59:46 +00:00
|
|
|
glib_prefix = dependency('glib-2.0').get_variable(pkgconfig : 'prefix')
|
2018-05-23 08:52:58 +00:00
|
|
|
glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
|
|
|
|
docpath = join_paths(get_option('datadir'), 'gtk-doc', 'html')
|
|
|
|
|
2020-12-01 17:50:22 +00:00
|
|
|
if get_option('gtk_doc')
|
|
|
|
# only build the shared library for gtk-doc
|
|
|
|
calls_vala_doc_lib = library('calls-vala-doc',
|
|
|
|
calls_vala_sources,
|
|
|
|
dependencies: calls_vala_deps)
|
|
|
|
calls_doc_lib = library('calls-doc',
|
2021-04-06 10:44:46 +00:00
|
|
|
[calls_sources, gdbofono_src],
|
2020-12-01 17:50:22 +00:00
|
|
|
include_directories: calls_includes,
|
|
|
|
link_with: calls_vala_doc_lib,
|
|
|
|
dependencies: calls_deps)
|
2021-04-13 08:53:48 +00:00
|
|
|
calls_doc_deps = declare_dependency(sources: [calls_sources, calls_vala_sources],
|
2020-12-01 17:50:22 +00:00
|
|
|
include_directories: calls_includes,
|
|
|
|
link_with: [calls_doc_lib, calls_vala_doc_lib],
|
|
|
|
dependencies: [calls_deps, calls_vala_deps])
|
|
|
|
endif
|
|
|
|
|
2018-05-23 08:52:58 +00:00
|
|
|
gnome.gtkdoc('calls',
|
|
|
|
main_xml: 'calls-docs.xml',
|
|
|
|
src_dir: [
|
2021-12-29 10:08:54 +00:00
|
|
|
join_paths(meson.project_source_root(), 'src'),
|
2021-12-29 10:07:14 +00:00
|
|
|
join_paths(meson.project_build_root(), 'src'),
|
|
|
|
join_paths(meson.project_build_root(), 'src/dbus'),
|
|
|
|
join_paths(meson.project_build_root(), 'plugins/ofono/libgdbofono'),
|
2018-05-23 08:52:58 +00:00
|
|
|
],
|
2020-12-01 17:50:22 +00:00
|
|
|
dependencies: calls_doc_deps,
|
2018-05-23 08:52:58 +00:00
|
|
|
scan_args: [
|
|
|
|
'--rebuild-types',
|
|
|
|
],
|
|
|
|
fixxref_args: [
|
|
|
|
'--html-dir=@0@'.format(docpath),
|
|
|
|
'--extra-dir=@0@'.format(join_paths(glib_docpath, 'glib')),
|
|
|
|
'--extra-dir=@0@'.format(join_paths(glib_docpath, 'gobject')),
|
|
|
|
'--extra-dir=@0@'.format(join_paths(glib_docpath, 'gio')),
|
|
|
|
'--extra-dir=@0@'.format(join_paths(glib_docpath, 'gi')),
|
|
|
|
'--extra-dir=@0@'.format(join_paths(glib_docpath, 'gtk3')),
|
|
|
|
],
|
2021-02-10 21:18:51 +00:00
|
|
|
install_dir: 'calls',
|
2018-05-23 08:52:58 +00:00
|
|
|
install: true)
|
|
|
|
|
|
|
|
endif
|