File: meson.build

package info (click to toggle)
phodav 3.0-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 652 kB
  • sloc: ansic: 4,956; sh: 117; makefile: 9
file content (44 lines) | stat: -rw-r--r-- 1,301 bytes parent folder | download | duplicates (3)
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,
)