pidgin/reference/meson.build

Thu, 08 Aug 2024 21:34:07 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Thu, 08 Aug 2024 21:34:07 -0500
changeset 42847
fbb0d252bc35
parent 42649
doc/reference/pidgin/meson.build@6986f5428d30
child 43159
2bde48da761d
permissions
-rw-r--r--

Move the documentation into more appropriate places

This moves the libpurple documentation into the libpurple directory, the Pidgin
documentation into the pidgin directory, and removes the old protocols
documentation remnants.

Testing Done:
Ran the `doc` target and had the turtles check in on things.

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

pidgin_doc_content_files = [
]

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

	pidgin_doc = custom_target('pidgin-doc',
		input : [ pidgin_toml, pidgin_gir[0] ],
		output : 'pidgin',
		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/birb/birb'),
			'--add-include-path=@0@'.format(meson.global_build_root() / 'subprojects/gplugin/gplugin'),
			'--add-include-path=@0@'.format(meson.global_build_root() / 'subprojects/gplugin/gplugin-gtk4'),
			'--add-include-path=@0@'.format(meson.project_build_root() / 'libpurple'),
			'@INPUT1@'
		],
		depends: [ libpurple_gir[0] ],
		depend_files : [ pidgin_doc_content_files ],
		build_by_default : true,
		install : true,
		install_dir : docs_dir,
	)

	test('doc-check',
		gidocgen,
		args: [
			'check',
			'--config', pidgin_toml,
			'--add-include-path=@0@'.format(meson.global_build_root() / 'subprojects/birb/birb'),
			'--add-include-path=@0@'.format(meson.global_build_root() / 'subprojects/gplugin/gplugin'),
			'--add-include-path=@0@'.format(meson.global_build_root() / 'subprojects/gplugin/gplugin-gtk4'),
			'--add-include-path=@0@'.format(meson.project_build_root() / 'libpurple'),
			pidgin_gir[0],
		],
		depends: [libpurple_gir[0], pidgin_gir[0]],
	)

	doc_targets += pidgin_doc
endif

mercurial