mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-04 15:41:19 +00:00
8f85c42ba3
This function is deprecated since 0.56.0: WARNING: Project targeting '>= 0.56.0' but tried to use feature deprecated since '0.56.0': meson.source_root. use meson.project_source_root() or meson.global_source_root() instead.
48 lines
2.2 KiB
Meson
48 lines
2.2 KiB
Meson
if get_option('gtk_doc')
|
|
|
|
subdir('xml')
|
|
|
|
glib_prefix = dependency('glib-2.0').get_variable(pkgconfig : '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',
|
|
calls_vala_sources,
|
|
dependencies: calls_vala_deps)
|
|
calls_doc_lib = library('calls-doc',
|
|
[calls_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_vala_sources],
|
|
include_directories: calls_includes,
|
|
link_with: [calls_doc_lib, calls_vala_doc_lib],
|
|
dependencies: [calls_deps, calls_vala_deps])
|
|
endif
|
|
|
|
gnome.gtkdoc('calls',
|
|
main_xml: 'calls-docs.xml',
|
|
src_dir: [
|
|
join_paths(meson.project_source_root(), 'src'),
|
|
join_paths(meson.project_build_root(), 'src'),
|
|
join_paths(meson.project_build_root(), 'src/dbus'),
|
|
join_paths(meson.project_build_root(), 'plugins/ofono/libgdbofono'),
|
|
],
|
|
dependencies: calls_doc_deps,
|
|
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')),
|
|
],
|
|
install_dir: 'calls',
|
|
install: true)
|
|
|
|
endif
|