libpurple/reference/meson.build

Mon, 31 Mar 2025 01:43:20 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Mon, 31 Mar 2025 01:43:20 -0500
changeset 43213
078c9e626db9
parent 43159
2bde48da761d
permissions
-rw-r--r--

Add Pango to the gobject introspection and gi-docgen for libpurple

Testing Done:
Called in the turtles and verified the warnings were gone.

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

41164
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
1 libpurple_doc_content_files = [
41655
f0fdd404bfc4 Replace the old contributing docs with a link to the online version.
Gary Kramlich <grim@reaperworld.com>
parents: 41164
diff changeset
2 'contributing.md',
43068
a974441beed0 Add an overview on how commands work
Gary Kramlich <grim@reaperworld.com>
parents: 42998
diff changeset
3 'section-commands.md',
41164
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
4 'tut_c_plugins.md',
40678
8f1d8122f07e Add extra-dir options for gtkdoc-fixxref to correctly link to other gtkdoc books
Gary Kramlich <grim@reaperworld.com>
parents: 40613
diff changeset
5 ]
8f1d8122f07e Add extra-dir options for gtkdoc-fixxref to correctly link to other gtkdoc books
Gary Kramlich <grim@reaperworld.com>
parents: 40613
diff changeset
6
41164
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
7 if get_option('doc')
43159
2bde48da761d Make all of the subprojects use tarballs
Gary Kramlich <grim@reaperworld.com>
parents: 43068
diff changeset
8 libpurple_doc_girs = [
2bde48da761d Make all of the subprojects use tarballs
Gary Kramlich <grim@reaperworld.com>
parents: 43068
diff changeset
9 '--add-include-path=@0@'.format(meson.global_build_root() / 'subprojects/birb-@0@/birb'.format(birb_dep.version())),
2bde48da761d Make all of the subprojects use tarballs
Gary Kramlich <grim@reaperworld.com>
parents: 43068
diff changeset
10 '--add-include-path=@0@'.format(meson.global_build_root() / 'subprojects/gplugin-@0@/gplugin'.format(gplugin_dep.version())),
2bde48da761d Make all of the subprojects use tarballs
Gary Kramlich <grim@reaperworld.com>
parents: 43068
diff changeset
11 ]
2bde48da761d Make all of the subprojects use tarballs
Gary Kramlich <grim@reaperworld.com>
parents: 43068
diff changeset
12
41164
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
13 libpurple_toml = configure_file(
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
14 input : 'libpurple.toml.in',
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
15 output : 'libpurple.toml',
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
16 configuration : version_conf,
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
17 install : true,
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
18 install_dir : docs_dir / 'libpurple',
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
19 )
38515
2d4d3a8fd23c Add documentation to Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
20
41164
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
21 libpurple_doc = custom_target('libpurple-doc',
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
22 input : [ libpurple_toml, libpurple_gir[0] ],
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
23 output : 'libpurple',
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
24 command : [
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
25 gidocgen,
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
26 'generate',
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
27 '--quiet',
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
28 '--fatal-warnings',
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
29 '--config=@INPUT0@',
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
30 '--output-dir=@OUTPUT@',
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
31 '--no-namespace-dir',
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
32 '--content-dir=@0@'.format(meson.current_source_dir()),
43159
2bde48da761d Make all of the subprojects use tarballs
Gary Kramlich <grim@reaperworld.com>
parents: 43068
diff changeset
33 libpurple_doc_girs,
41164
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
34 '@INPUT1@'
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
35 ],
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
36 depend_files : [ libpurple_doc_content_files ],
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
37 build_by_default : true,
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
38 install : true,
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
39 install_dir : docs_dir,
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
40 )
42656
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42581
diff changeset
41
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42581
diff changeset
42 test('doc-check',
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42581
diff changeset
43 gidocgen,
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42581
diff changeset
44 args: [
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42581
diff changeset
45 'check',
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42581
diff changeset
46 '--config', libpurple_toml,
43159
2bde48da761d Make all of the subprojects use tarballs
Gary Kramlich <grim@reaperworld.com>
parents: 43068
diff changeset
47 libpurple_doc_girs,
42656
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42581
diff changeset
48 libpurple_gir[0],
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42581
diff changeset
49 ],
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42581
diff changeset
50 depends: libpurple_gir[0],
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42581
diff changeset
51 verbose: true,
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42581
diff changeset
52 )
42847
fbb0d252bc35 Move the documentation into more appropriate places
Gary Kramlich <grim@reaperworld.com>
parents: 42755
diff changeset
53
fbb0d252bc35 Move the documentation into more appropriate places
Gary Kramlich <grim@reaperworld.com>
parents: 42755
diff changeset
54 doc_targets += libpurple_doc
41164
d861b10105fb Convert the libpurple docs to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents: 41056
diff changeset
55 endif
38515
2d4d3a8fd23c Add documentation to Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
56

mercurial