summaryrefslogtreecommitdiff
path: root/doc/reference/meson.build
blob: 40077b4f19a578e5243e9054829389ec3324abc9 (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
toml_conf = {
  'license': ','.join(meson.project_license()),
  'version': eog_version,
}

toml = configure_file(
  input: f'@eog_name@.toml.in',
  output: '@BASENAME@',
  configuration: toml_conf,
)

custom_target(
  f'@eog_name@-doc',
  input: [
    toml,
    eog_gir,
  ],
  output: eog_name,
  command: [
    find_program('gi-docgen'),
    'generate',
    '--quiet',
    '--no-namespace-dir',
    '--config=@INPUT0@',
    '--output-dir=@OUTPUT@',
    '--content-dir=@0@'.format(meson.current_source_dir()),
    '@INPUT1@',
  ],
  build_by_default: true,
  install: true,
  install_dir: gnome.gtkdoc_html_dir(''),
)