summaryrefslogtreecommitdiff
path: root/doc/reference/pidgin/meson.build
blob: c6f1541673793dd31f27f3e80b6a452d4c51ac20 (plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
DOC_MODULE = 'pidgin'

# Header files or dirs to ignore when scanning. Use base file/dir names
ignore_hfiles = [
    'pixmaps',
    'plugins',
    'themes',
    'win32',
    'gtkinternal.h',
    'pidgin.gresource.h',
    'pidginprivate.h',
]

# Extra options to supply to gtkdoc-scan.
scan_args = [
    '--deprecated-guards=PURPLE_DISABLE_DEPRECATED|PIDGIN_DISABLE_DEPRECATED',
    '--rebuild-types',
    '--rebuild-sections',
    '--ignore-headers=' + ' '.join(ignore_hfiles),
]

# Extra options to supply to gtkdoc-mkdb.
mkdb_args = [
    '--ignore-files=' + ' '.join(ignore_hfiles),
]

# Extra options to supply to fixxref
fixxref_args = [
    '--extra-dir=@0@'.format(gplugin_gtk_docpath),
    '--extra-dir=@0@'.format(talkatu_docpath),
    '--extra-dir=../libpurple',
]

configure_file(
    input : 'version.xml.in',
    output : 'version.xml',
    configuration : version_conf)

# Extra SGML files that are included by $(DOC_MAIN_XML_FILE).
content_files = [
    'signals_gtkaccount.xml',
    'signals_gtkblist.xml',
    'signals_gtkconv.xml',
    'signals_gtklog.xml',
]

pidgin_doc = gnome.gtkdoc(DOC_MODULE,
    main_xml : DOC_MODULE + '-docs.xml',
    src_dir : libpidgin_inc,
    dependencies : libpidgin_dep,
    install : true,
    scan_args : scan_args,
    mkdb_args : mkdb_args,
    fixxref_args : fixxref_args,
    gobject_typesfile : DOC_MODULE + '.types',
    content_files : content_files)