Commit 3c628b30 authored by Carlos Garnacho's avatar Carlos Garnacho

build: Fixes to docs generation

The docs were not going through gtkdoc-scangobj, and the libtracker-sparql
docs were just looking in source dir while it should also look for gtk-doc
comments in generated files from vala.

Now that we're there, use include_directories() to get rid of relative
paths.
parent 06425999
......@@ -3,7 +3,9 @@ version_xml = configure_file(input: 'version.xml.in',
configuration: conf)
gnome.gtkdoc('libtracker-control',
src_dir: join_paths(meson.current_source_dir(), '..', '..', '..', 'src', 'libtracker-control'),
src_dir: controlinc,
main_sgml: 'libtracker-control-docs.sgml',
content_files: ['migrating-1to2.xml'],
dependencies: tracker_control_dep,
gobject_typesfile: 'libtracker-control.types',
install: true)
......@@ -3,7 +3,9 @@ version_xml = configure_file(input: 'version.xml.in',
configuration: conf)
gnome.gtkdoc('libtracker-miner',
src_dir: join_paths(meson.current_source_dir(), '..', '..', '..', 'src', 'libtracker-miner'),
src_dir: minerinc,
main_sgml: 'libtracker-miner-docs.sgml',
content_files: ['overview.sgml', 'migrating-1to2.xml'],
dependencies: tracker_miner_dep,
gobject_typesfile: 'libtracker-miner.types',
install: true)
......@@ -28,8 +28,9 @@ example_files = [
]
gnome.gtkdoc('libtracker-sparql',
src_dir: join_paths(meson.current_source_dir(), '..', '..', '..', 'src', 'libtracker-sparql'),
src_dir: sparqlinc,
main_sgml: 'libtracker-sparql-docs.sgml',
content_files: ['overview.sgml', 'examples.sgml', 'ontologies.sgml', 'private-store.xml', 'migrating-1to2.xml', example_files],
dependencies: generated,
dependencies: tracker_sparql_dep,
gobject_typesfile: 'libtracker-sparql.types',
install: true)
......@@ -20,6 +20,8 @@ libtracker_control = library('tracker-control-' + tracker_api_version,
link_with: libtracker_common,
)
controlinc = include_directories('.')
tracker_control_dep = declare_dependency(
link_with: libtracker_control,
dependencies: tracker_miner_dep
......
......@@ -70,6 +70,8 @@ libtracker_miner = library(
link_with: [libtracker_miner_private],
)
minerinc = include_directories('.')
tracker_miner_dep = declare_dependency(
sources: miner_enums[1],
link_with: libtracker_miner,
......
......@@ -77,6 +77,8 @@ libtracker_sparql_intermediate_c = static_library('tracker-sparql-intermediate-c
dependencies: [tracker_common_dep, json_glib],
)
sparqlinc = [include_directories('.'), meson.current_build_dir()]
tracker_sparql_intermediate_dep = declare_dependency(
link_with: [libtracker_sparql_intermediate_c, libtracker_sparql_intermediate_vala],
sources: tracker_sparql_generated_header,
......
Markdown is supported
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