1glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix') 2glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html') 3 4configure_file( 5 input : 'version.xml.in', 6 output : 'version.xml', 7 configuration : version_conf, 8) 9 10gnome.gtkdoc( 11 meson.project_name(), 12 src_dir: join_paths(meson.source_root(), 'playerctl'), 13 dependencies: [ 14 glib_dep, 15 playerctl_shared_link, 16 ], 17 mkdb_args: [ 18 '--output-format=xml', 19 '--name-space=' + meson.project_name(), 20 ], 21 scan_args: '--deprecated-guards="PLAYERCTL_DISABLE_DEPRECATED"', 22 gobject_typesfile: join_paths(meson.current_build_dir(), meson.project_name() + '.types'), 23 fixxref_args: [ 24 '--extra-dir=@0@'.format(join_paths(glib_docpath, 'gobject')), 25 '--extra-dir=@0@'.format(join_paths(glib_docpath, 'gio')), 26 '--extra-dir=@0@'.format(glib_docpath), 27 ], 28 main_sgml: 'playerctl-docs.xml', 29 ignore_headers: [ 30 'playerctl.h', 31 'playerctl-generated.h', 32 'playerctl-common.h', 33 'playerctl-formatter.h', 34 ], 35 install: true, 36) 37