File: meson.build

package info (click to toggle)
libhinawa 4.0.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 540 kB
  • sloc: ansic: 1,901; python: 690; javascript: 5; makefile: 5
file content (39 lines) | stat: -rw-r--r-- 815 bytes parent folder | download | duplicates (2)
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
ext_contents = [
  'overview.md',
  'overview.png',
]

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

doc_toml = configure_file(
  input: 'hinawa.toml.in',
  output: 'hinawa.toml',
  configuration: conf,
)

dependency('gi-docgen',
  version: '>= 2023.1',
  fallback: ['gi-docgen', 'dummy_dep'],
)
gidocgen = find_program('gi-docgen')

doc_dir = meson.project_name()

custom_target('hinawa-doc',
  input: [ doc_toml, hinawa_gir[0] ],
  output: doc_dir,
  command: [
    gidocgen,
    'generate',
    '--no-namespace-dir',
    '--config=@INPUT0@',
    '--output-dir=@OUTPUT@',
    '--content-dir=@0@'.format(meson.current_source_dir()),
    '@INPUT1@',
  ],
  depend_files: ext_contents,
  build_by_default: true,
  install: true,
  install_dir: join_paths(get_option('datadir'), 'doc'),
)