Thu, 21 Mar 2024 00:19:08 -0500
Add a doc check unit test to Pidgin and fix the issues it found
Testing Done:
Ran the unit tests.
Reviewed at https://reviews.imfreedom.org/r/3043/
|
41124
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
1 | pidgin_doc_content_files = [ |
|
38551
0090f66eafdc
doc: Add IGNORE_HFILES to MKDB_OPTIONS
Mike Ruprecht <cmaiku@gmail.com>
parents:
38546
diff
changeset
|
2 | ] |
|
0090f66eafdc
doc: Add IGNORE_HFILES to MKDB_OPTIONS
Mike Ruprecht <cmaiku@gmail.com>
parents:
38546
diff
changeset
|
3 | |
|
41124
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
4 | if get_option('doc') |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
5 | pidgin_toml = configure_file( |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
6 | input : 'pidgin.toml.in', |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
7 | output : 'pidgin.toml', |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
8 | configuration : version_conf, |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
9 | install : true, |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
10 | install_dir : docs_dir / 'pidgin', |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
11 | ) |
|
38515
2d4d3a8fd23c
Add documentation to Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
12 | |
|
41124
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
13 | pidgin_doc = custom_target('pidgin-doc', |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
14 | input : [ pidgin_toml, pidgin_gir[0] ], |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
15 | output : 'pidgin', |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
16 | command : [ |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
17 | gidocgen, |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
18 | 'generate', |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
19 | '--quiet', |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
20 | '--fatal-warnings', |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
21 | '--config=@INPUT0@', |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
22 | '--output-dir=@OUTPUT@', |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
23 | '--no-namespace-dir', |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
24 | '--content-dir=@0@'.format(meson.current_source_dir()), |
|
42581
73eda937c387
Add purple_contact_info_get_menu and PurpleContactInfo::populate-menu
Gary Kramlich <grim@reaperworld.com>
parents:
42553
diff
changeset
|
25 | '--add-include-path=@0@'.format(meson.global_build_root() / 'subprojects/birb/birb'), |
|
41142
a9f32316d828
Fix includes for the introspection targets that I thought weren't needed during the gi-docgen conversation
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
26 | '--add-include-path=@0@'.format(meson.global_build_root() / 'subprojects/gplugin/gplugin'), |
|
41518
31072565a926
And so begins the start of the GTK4 port
Gary Kramlich <grim@reaperworld.com>
parents:
41142
diff
changeset
|
27 | '--add-include-path=@0@'.format(meson.global_build_root() / 'subprojects/gplugin/gplugin-gtk4'), |
|
41142
a9f32316d828
Fix includes for the introspection targets that I thought weren't needed during the gi-docgen conversation
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
28 | '--add-include-path=@0@'.format(meson.project_build_root() / 'libpurple'), |
|
41124
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
29 | '@INPUT1@' |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
30 | ], |
|
41142
a9f32316d828
Fix includes for the introspection targets that I thought weren't needed during the gi-docgen conversation
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
31 | depends: [ libpurple_gir[0] ], |
|
41124
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
32 | depend_files : [ pidgin_doc_content_files ], |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
33 | build_by_default : true, |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
34 | install : true, |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
35 | install_dir : docs_dir, |
|
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
36 | ) |
|
42649
6986f5428d30
Add a doc check unit test to Pidgin and fix the issues it found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
37 | |
|
6986f5428d30
Add a doc check unit test to Pidgin and fix the issues it found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
38 | test('doc-check', |
|
6986f5428d30
Add a doc check unit test to Pidgin and fix the issues it found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
39 | gidocgen, |
|
6986f5428d30
Add a doc check unit test to Pidgin and fix the issues it found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
40 | args: [ |
|
6986f5428d30
Add a doc check unit test to Pidgin and fix the issues it found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
41 | 'check', |
|
6986f5428d30
Add a doc check unit test to Pidgin and fix the issues it found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
42 | '--config', pidgin_toml, |
|
6986f5428d30
Add a doc check unit test to Pidgin and fix the issues it found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
43 | '--add-include-path=@0@'.format(meson.global_build_root() / 'subprojects/birb/birb'), |
|
6986f5428d30
Add a doc check unit test to Pidgin and fix the issues it found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
44 | '--add-include-path=@0@'.format(meson.global_build_root() / 'subprojects/gplugin/gplugin'), |
|
6986f5428d30
Add a doc check unit test to Pidgin and fix the issues it found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
45 | '--add-include-path=@0@'.format(meson.global_build_root() / 'subprojects/gplugin/gplugin-gtk4'), |
|
6986f5428d30
Add a doc check unit test to Pidgin and fix the issues it found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
46 | '--add-include-path=@0@'.format(meson.project_build_root() / 'libpurple'), |
|
6986f5428d30
Add a doc check unit test to Pidgin and fix the issues it found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
47 | pidgin_gir[0], |
|
6986f5428d30
Add a doc check unit test to Pidgin and fix the issues it found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
48 | ], |
|
6986f5428d30
Add a doc check unit test to Pidgin and fix the issues it found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
49 | depends: [libpurple_gir[0], pidgin_gir[0]], |
|
6986f5428d30
Add a doc check unit test to Pidgin and fix the issues it found
Gary Kramlich <grim@reaperworld.com>
parents:
42581
diff
changeset
|
50 | ) |
|
41124
95555046173e
Convert pidgin from gtk-doc to gi-docgen
Gary Kramlich <grim@reaperworld.com>
parents:
41060
diff
changeset
|
51 | endif |
|
38515
2d4d3a8fd23c
Add documentation to Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
52 |