doc/reference/finch/meson.build

Fri, 31 Dec 2021 03:34:12 -0600

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Fri, 31 Dec 2021 03:34:12 -0600
changeset 41232
3e534f0345b0
parent 41142
a9f32316d828
child 42581
73eda937c387
permissions
-rw-r--r--

Replace g_time_zone_new by g_time_zone_new_identifier

The former calls the latter with a fallback to UTC, but is deprecated, so we're going to do the same for now (though maybe we should fall back to our normal `tz == NULL` handling?)

Testing Done:
Compiled.

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

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