doc/reference/finch/meson.build

Mon, 29 Aug 2022 20:14:30 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Mon, 29 Aug 2022 20:14:30 -0500
changeset 41619
f19b4c13bc90
parent 41142
a9f32316d828
child 42581
73eda937c387
permissions
-rw-r--r--

Make sure we pack the label for generic notifications

Testing Done:
Ran the scanbuild image and verified the issue was resolved.

Reviewed at https://reviews.imfreedom.org/r/1676/

finch_doc_content_files = []

if get_option('doc')
	finch_toml = configure_file(
		input : 'finch.toml.in',
		output : 'finch.toml',
		configuration : version_conf,
		install : true,
		install_dir : docs_dir / 'finch',
	)

	finch_doc = custom_target('finch-doc',
		input : [ finch_toml, libfinch_gir[0] ],
		output : 'finch',
		command : [
			gidocgen,
			'generate',
			'--quiet',
			'--fatal-warnings',
			'--config=@INPUT0@',
			'--output-dir=@OUTPUT@',
			'--no-namespace-dir',
			'--content-dir=@0@'.format(meson.current_source_dir()),
			'--add-include-path=@0@'.format(meson.global_build_root() / 'subprojects/gplugin/gplugin'),
			'--add-include-path=@0@'.format(meson.global_build_root() / 'subprojects/libgnt'),
			'--add-include-path=@0@'.format(meson.project_build_root() / 'libpurple'),
			'@INPUT1@'
		],
		depends: [ libpurple_gir[0] ],
		depend_files : [ finch_doc_content_files ],
		build_by_default : true,
		install : true,
		install_dir : docs_dir,
	)
endif

mercurial