1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
ent_conf = configuration_data()
ent_conf.set('PACKAGE', proj_name)
ent_conf.set('PACKAGE_BUGREPORT', proj_bugurl)
ent_conf.set('PACKAGE_NAME', 'PhoDAV')
ent_conf.set('PACKAGE_STRING', proj_name)
ent_conf.set('PACKAGE_VERSION', meson.project_version())
configure_file(
input: 'gtkdocentities.ent.in',
output: 'gtkdocentities.ent',
configuration: ent_conf
)
glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix')
glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
docpath = join_paths(datadir, 'gtk-doc', 'html')
private_headers = [
'config.h',
'guuid.h',
'phodav-lock.h',
'phodav-multistatus.h',
'phodav-path.h',
'phodav-priv.h',
'phodav-utils.h',
]
gnome.gtkdoc(
'phodav-3.0',
main_sgml : 'phodav-3.0-docs.sgml',
dependencies : declare_dependency(link_with : [libphodav]),
src_dir : join_paths(meson.source_root(), 'libphodav'),
gobject_typesfile: 'libphodav.types',
scan_args: [
'--rebuild-types',
'--ignore-headers=' + ' '.join(private_headers),
],
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')),
],
install : true,
)
|