File: meson.build

package info (click to toggle)
gimp 3.0.4-3%2Bdeb13u2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 210,304 kB
  • sloc: ansic: 842,353; lisp: 10,761; python: 10,318; cpp: 7,238; perl: 4,355; sh: 1,043; xml: 963; yacc: 609; lex: 348; javascript: 150; makefile: 43
file content (39 lines) | stat: -rw-r--r-- 1,047 bytes parent folder | download | duplicates (4)
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
# Extra markdown files
gimp_ui_doc_content_files = [
  'widget-gallery.md',
]

gimp_ui_doc_toml = configure_file(
  input: 'gimp-ui-3.0.toml.in',
  output: '@BASENAME@',
  configuration: {
    'GIMP_VERSION': gimp_version,
    'GIMP_LOGO': '../images/gimp-devel-logo.png',
  },
)

gimp_ui_docs = custom_target('gimp-ui-docs',
  input: libgimpui_gir[0],
  output: 'libgimpui-@0@'.format(gimp_api_version),
  command: [
    gi_docgen,
    'generate',
    '--quiet',
    '--fatal-warnings',
    '--config', gimp_ui_doc_toml,
    '--output-dir=@OUTPUT@',
    '--no-namespace-dir',
    '--content-dir=@0@'.format(meson.current_source_dir()),
    '--add-include-path=@0@'.format(meson.project_build_root() / 'libgimp'),
    '--add-include-path=@0@'.format(get_option('prefix') / 'share' / 'gir-1.0'),
    '@INPUT@',
  ],
  depends: libgimp_gir[0],
  depend_files: [
    gimp_ui_doc_toml,
    gimp_ui_doc_content_files,
  ],
  build_by_default: true,
  install: true,
  install_dir: get_option('datadir') / 'doc' / 'gimp-@0@'.format(gimp_app_version),
)