File: meson.build

package info (click to toggle)
rhythmbox 3.4.9-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 27,376 kB
  • sloc: ansic: 114,861; python: 4,941; xml: 730; javascript: 350; perl: 307; sh: 84; makefile: 43
file content (41 lines) | stat: -rw-r--r-- 981 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
expand_content_md_files = [
  'internals.md',
  'plugin-examples.md',
  'plugin-guide.md'
]

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

rb_toml = configure_file(
  input: 'rhythmbox.toml.in',
  output: 'rhythmbox.toml',
  configuration: toml_data
)

gidocgen = find_program('gi-docgen')

docs_dir = datadir / 'doc'

fs = import('fs')
fs.copyfile(meson.project_source_root() / 'data/icons/hicolor/scalable/apps/org.gnome.Rhythmbox3.svg')

custom_target('apidoc',
  input: [ rb_toml, rb_gir ],
  output: 'rhythmbox',
  command: [
    gidocgen,
    'generate',
    '--quiet',
    '--add-include-path=@0@'.format(meson.current_build_dir() / '../lib/libmediaplayerid'),
    '--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
)