Commit b6497e05 authored by Niels De Graef's avatar Niels De Graef

docs: Fix gtkdoc errors

By configuring a `gtkdocentities.in`, gtk-doc stops complaining about a
missing `package_name` and `package_string` entity.
parent b5d5c7c7
Pipeline #257160 passed with stages
in 5 minutes and 6 seconds
configure_file(
input: gtkdocentities_in,
output: '@BASENAME@',
configuration: {
'PACKAGE_NAME': doc_name,
'PACKAGE_STRING': doc_name + ' ' + meson.project_version(),
},
)
configure_file(
input: gtkdocentities_in,
output: '@BASENAME@',
configuration: {
'PACKAGE_NAME': doc_name,
'PACKAGE_STRING': doc_name + ' ' + meson.project_version(),
},
)
configure_file(
input: gtkdocentities_in,
output: '@BASENAME@',
configuration: {
'PACKAGE_NAME': doc_name,
'PACKAGE_STRING': doc_name + ' ' + meson.project_version(),
},
)
configure_file(
input: gtkdocentities_in,
output: '@BASENAME@',
configuration: {
'PACKAGE_NAME': doc_name,
'PACKAGE_STRING': doc_name + ' ' + meson.project_version(),
},
)
<!ENTITY package_name "@PACKAGE_NAME@">
<!ENTITY package_string "@PACKAGE_STRING@">
gtkdocentities_in = files('gtkdocentities.ent.in')
# Build the gtkdoc documentation for libfolks and each backend library
foreach doc_target : valadoc_targets
doc_name = doc_target.get('name')
# Meson doesn't allow subdirectories in configure_file, so we have to
# generate each gtkdocentities.ent in their respective subfolder, at the
# place gtk-doc magically expects it to be
subdir(doc_name / 'xml')
doc_gtkdoc = custom_target(doc_name + '-gtkdoc',
input: doc_target.get('source_files'),
output: doc_name,
......@@ -14,7 +21,7 @@ foreach doc_target : valadoc_targets
doc_target.get('dependencies'),
'-X', meson.build_root() / 'folks' / 'folks' / 'folks.h',
'@INPUT@',
],
],
depends: doc_target.get('library'),
install: true,
install_dir: get_option('datadir') / 'gtk-doc' / 'html',
......
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