Commit 5f090e91 authored by Evangelos Ribeiro Tzaras's avatar Evangelos Ribeiro Tzaras
Browse files

doc: meson: Use shared library for gtk-doc

parent a5b0c111
......@@ -6,6 +6,22 @@ glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix')
glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
docpath = join_paths(get_option('datadir'), 'gtk-doc', 'html')
if get_option('gtk_doc')
# only build the shared library for gtk-doc
calls_vala_doc_lib = library('calls-vala-doc',
dependencies: calls_vala_deps)
calls_doc_lib = library('calls-doc',
[calls_sources, calls_enum_sources, wayland_sources, wl_proto_sources, gdbofono_src],
include_directories: calls_includes,
link_with: calls_vala_doc_lib,
dependencies: calls_deps)
calls_doc_deps = declare_dependency(sources: [calls_sources, calls_enum_sources, wayland_sources, wl_proto_sources, calls_vala_sources],
include_directories: calls_includes,
link_with: [calls_doc_lib, calls_vala_doc_lib],
dependencies: [calls_deps, calls_vala_deps])
main_xml: 'calls-docs.xml',
src_dir: [
......@@ -13,7 +29,7 @@ gnome.gtkdoc('calls',
join_paths(meson.build_root(), 'src'),
join_paths(meson.build_root(), 'plugins/ofono/libgdbofono'),
dependencies: calls_deps,
dependencies: calls_doc_deps,
scan_args: [
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment