File: meson.build

package info (click to toggle)
blueprint-compiler 0.18.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,140 kB
  • sloc: python: 8,504; sh: 31; makefile: 6
file content (19 lines) | stat: -rw-r--r-- 535 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
if get_option('docs')

sphinx = find_program(['sphinx-build-3', 'sphinx-build'], required: true)

custom_target('docs',
  command: [sphinx, '-b', 'html', '-c', meson.current_source_dir(), meson.current_source_dir(), '@OUTPUT@'],
  output: 'en',
  build_always_stale: true,
)

endif

custom_target('reference_docs.json',
  output: 'reference_docs.json',
  command: [meson.current_source_dir() / 'collect-sections.py', '@OUTPUT@'],
  build_always_stale: true,
  install: true,
  install_dir: py.get_install_dir() / 'blueprintcompiler',
)