File: meson.build

package info (click to toggle)
libei 1.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,916 kB
  • sloc: ansic: 23,868; python: 2,712; xml: 1,243; sh: 142; makefile: 63; cpp: 12; lisp: 2
file content (25 lines) | stat: -rw-r--r-- 680 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
if 'protocol' not in get_option('documentation')
    subdir_done()
endif

hugo = find_program('hugo', required : false)
if not hugo.found()
	error('Program "hugo" not found or not executable. Try building with -Ddocumentation=false')
endif

src_script = files('generate-protocol-docs.sh')

hugo_script = find_program(src_script)

src_hugo = files(
    'config.toml',
    'interface.md.tmpl',
) + src_script

custom_target('hugo',
	      input : src_hugo + [protocol_xml],
	      output : [ 'doc' ],
          command : [ hugo_script, '--git-repo', meson.project_source_root(), '--output-dir', meson.current_build_dir() ],
	      install : false,
	      build_by_default : true,
)