doc/reference/protocols/facebook/meson.build

Tue, 19 Oct 2021 00:47:42 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Tue, 19 Oct 2021 00:47:42 -0500
changeset 41122
f29fa0dda4bf
parent 40678
8f1d8122f07e
child 41142
a9f32316d828
permissions
-rw-r--r--

Convert the facebook documentation to gi-docgen

Testing Done:
Built the docs and verified that they looked okay.

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

facebook_doc_content_files = []

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

	facebook_doc = custom_target('facebook-doc',
		input : [ facebook_toml, facebook_gir[0] ],
		output : 'facebook',
		command : [
			gidocgen,
			'generate',
			'--quiet',
			'--fatal-warnings',
			'--config=@INPUT0@',
			'--output-dir=@OUTPUT@',
			'--no-namespace-dir',
			'--content-dir=@0@'.format(meson.current_source_dir()),
			'@INPUT1@'
		],
		depend_files : [ facebook_doc_content_files ],
		build_by_default : true,
		install : true,
		install_dir : docs_dir,
	)
endif

mercurial