File: meson.build

package info (click to toggle)
libaccounts-glib 1.27-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 944 kB
  • sloc: ansic: 11,312; xml: 1,175; python: 72; sh: 7; makefile: 7
file content (49 lines) | stat: -rw-r--r-- 1,503 bytes parent folder | download | duplicates (4)
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
glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix')
glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
docpath = join_paths(get_option('prefix'), get_option('datadir'), 'gtk-doc', 'html')

doc_configuration = configuration_data()
doc_configuration.set('VERSION', meson.project_version())

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

private_headers = [
    'ag-debug.h',
    'ag-internals.h',
    'ag-util.h'
]

gnome.gtkdoc('libaccounts-glib',
    main_xml: 'libaccounts-glib-docs.xml',
    src_dir: src_dir,
    dependencies : [glib_dep, gobject_dep, accounts_glib_dep],
    content_files: [
        'ag-backup.xml',
        'ag-tool.xml',
        'application-file-format.xml',
        'gettext-xml-files.xml',
        'libaccounts-compiling.xml',
        'libaccounts-glossary.xml',
        'libaccounts-overview.xml',
        'libaccounts-running.xml',
        'provider-file-format.xml',
        'service-file-format.xml',
        'service-type-file-format.xml',
        'validating-xml-files.xml'
    ],
    fixxref_args: [
        '--html-dir=' + docpath,
        '--extra-dir=' + join_paths(glib_docpath, 'glib'),
        '--extra-dir=' + join_paths(glib_docpath, 'gobject'),
        '--extra-dir=' + join_paths(glib_docpath, 'gio')
    ],
    c_args: [
        '-DACCOUNTS_GLIB_COMPILATION=1'
    ],
    ignore_headers: private_headers,
    scan_args: ['--rebuild-types'],
    install: true
)