File: meson.build

package info (click to toggle)
chatty 0.8.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,448 kB
  • sloc: ansic: 57,146; sql: 5,122; xml: 158; cpp: 39; makefile: 22; sh: 11; lisp: 8; javascript: 6
file content (42 lines) | stat: -rw-r--r-- 1,034 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
40
41
42
if get_option('gtk_doc')

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

chatty_toml = configure_file(
  input: 'chatty.toml.in',
  output: 'chatty.toml',
  configuration: toml_data
)

dependency('gi-docgen', version: '>= 2024.1',
           fallback: ['gi-docgen', 'dummy_dep'],
           native: true,
           required: get_option('gtk_doc'))

gidocgen = find_program('gi-docgen')

prefix = get_option ('prefix')
docs_dir = join_paths(prefix, get_option('datadir'), 'doc')

custom_target('chatty-doc',
  input: [ chatty_toml, chatty_gir[0] ],
  output: 'chatty-0',
  command: [
    gidocgen,
    'generate',
    '--fatal-warnings',
    '--add-include-path=@0@'.format(meson.current_build_dir() / '../src'),
    '--config=@INPUT0@',
    '--output-dir=@OUTPUT@',
    '--no-namespace-dir',
    '--content-dir=@0@'.format(meson.current_source_dir()),
    '@INPUT1@',
  ],
#  depend_files: [ expand_content_md_files ],
  build_by_default: true,
  install: true,
  install_dir: docs_dir,
)

endif