1subdir('xml') 2 3private_headers = [ 4 'config.h', 5 6 'tmpl-enums.h', 7 'tmpl-branch-node.h', 8 'tmpl-condition-node.h', 9 'tmpl-debug.h', 10 'tmpl-expr-node.h', 11 'tmpl-expr-parser-private.h', 12 'tmpl-expr-parser.h', 13 'tmpl-expr-private.h', 14 'tmpl-expr-scanner.h', 15 'tmpl-gi-private.h', 16 'tmpl-glib.h', 17 'tmpl-iter-node.h', 18 'tmpl-iterator.h', 19 'tmpl-lexer.h', 20 'tmpl-node.h', 21 'tmpl-parser.h', 22 'tmpl-text-node.h', 23 'tmpl-token-input-stream.h', 24 'tmpl-token.h', 25 'tmpl-util-private.h', 26] 27 28glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix') 29glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html') 30docpath = join_paths(get_option('datadir'), 'gtk-doc', 'html') 31 32gnome.gtkdoc('template-glib', 33 main_xml: 'template-glib-docs.sgml', 34 src_dir: [ 35 join_paths(meson.source_root(), 'src'), 36 join_paths(meson.build_root(), 'src'), 37 ], 38 39 dependencies: libtemplate_glib_dep, 40 gobject_typesfile: 'template-glib.types', 41 scan_args: [ 42 '--rebuild-types', 43 '--ignore-decorators=_TMPL_EXTERN', 44 '--ignore-headers=' + ' '.join(private_headers), 45 ], 46 47 fixxref_args: [ 48 '--html-dir=@0@'.format(docpath), 49 '--extra-dir=@0@'.format(join_paths(glib_docpath, 'glib')), 50 '--extra-dir=@0@'.format(join_paths(glib_docpath, 'gobject')), 51 '--extra-dir=@0@'.format(join_paths(glib_docpath, 'gio')), 52 ], 53 install: true) 54 55