File: meson.build

package info (click to toggle)
appstream 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,408 kB
  • sloc: ansic: 51,906; xml: 10,459; cpp: 4,721; python: 538; sh: 260; makefile: 24
file content (44 lines) | stat: -rw-r--r-- 1,191 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
# Meson definition for AppStream Compose API Documentation

#
# Build API documentation for libappstream-compose
#

ascdoc_toml = configure_file(
    input: 'appstream-compose.toml.in',
    output: 'appstream-compose.toml',
    configuration: gid_toml_conf
)

custom_target('doc-api-appstream-compose',
    input: [
      ascdoc_toml,
      asc_gir,
    ],
    output: 'compose-api',
    command: [
      python_exe,
      meson.current_source_dir() / '..' / 'gi-docgen-helper.py',
      '--gidocgen=' + gidocgen_exe.full_path(),
      '--namespace=appstream-compose',
      '--add-include-path=@0@'.format(meson.project_build_root() / 'compose'),
      '--add-include-path=@0@'.format(meson.project_build_root() / 'src'),
      '--config=@INPUT0@',
      '--output-dir=@OUTPUT@',
      '--content-dir=@0@'.format(meson.current_source_dir()),
      '@INPUT1@',
    ],
    depends: [
      asc_gir,
    ],
    build_by_default: true,
    install: true,
    install_dir: get_option('prefix') / as_doc_html_target_dir,
)

# make Devhelp work
install_symlink(
    'appstream-compose',
    pointing_to: '..' / '..' / '..' / as_doc_html_target_dir / 'compose-api',
    install_dir: gtk_doc_root
)