--- a/.hgignore Mon Oct 18 01:20:33 2021 -0500
+++ b/.hgignore Mon Oct 18 01:36:58 2021 -0500
@@ -5,9 +5,9 @@
win32-install-dir(\.release)?
--- a/doc/meson.build Mon Oct 18 01:20:33 2021 -0500
+++ b/doc/meson.build Mon Oct 18 01:36:58 2021 -0500
@@ -1,6 +1,4 @@
pidgin_man = configure_file(
--- a/doc/reference/meson.build Mon Oct 18 01:20:33 2021 -0500
+++ b/doc/reference/meson.build Mon Oct 18 01:36:58 2021 -0500
@@ -1,3 +1,5 @@
@@ -14,3 +16,6 @@
alias_target('doc', libpurple_doc, protocols_doc, pidgin_doc, finch_doc)
--- a/meson.build Mon Oct 18 01:20:33 2021 -0500
+++ b/meson.build Mon Oct 18 01:36:58 2021 -0500
@@ -656,9 +656,26 @@
#######################################################################
INSTALL_PIXMAPS = get_option('pixmaps-install')
-ENABLE_DOC = get_option('doc')
+####################################################################### +####################################################################### +if get_option('doc') and not get_option('introspection') + error('Documentation requires GObject Introspection.') +gidocgen_dep = dependency( + 'gi-docgen', version: '>= 2021.1', + fallback: ['gi-docgen', 'dummy_dep'], + required: get_option('doc') +gidocgen = find_program('gi-docgen', required : get_option('doc')) +docs_dir = get_option('prefix') / get_option('datadir') / 'doc' +####################################################################### +####################################################################### if ['debug', 'debugoptimize'].contains(get_option('buildtype'))
@@ -719,7 +736,7 @@
'Enable Introspection': enable_introspection,
- 'Generate documentation': ENABLE_DOC,
+ 'Generate documentation': get_option('doc'), 'Install pixmaps': INSTALL_PIXMAPS,
'Install translations': get_option('nls'),
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/subprojects/gi-docgen.wrap Mon Oct 18 01:36:58 2021 -0500
@@ -0,0 +1,6 @@
+url=https://gitlab.gnome.org/GNOME/gi-docgen.git +push-url=ssh://git@gitlab.gnome.org:GNOME/gi-docgen.git