From b64f79fed9c819e6891b9cd226b51d64dc67d1a4 Mon Sep 17 00:00:00 2001 From: Jehan Date: Mon, 8 May 2023 17:36:06 +0200 Subject: [PATCH] devel-docs: don't build reference docs when GIR aren't generated. This can happens in cross-compilation cases for instance. --- devel-docs/meson.build | 2 +- meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/devel-docs/meson.build b/devel-docs/meson.build index 818c54bda4..4d4f05c6b7 100644 --- a/devel-docs/meson.build +++ b/devel-docs/meson.build @@ -8,7 +8,7 @@ mkdb_args_common = [ '--name-space=gimp', ] -if gi_docgen.found() +if gi_docgen.found() and have_gobject_introspection subdir('reference') endif diff --git a/meson.build b/meson.build index 361d915664..61306587af 100644 --- a/meson.build +++ b/meson.build @@ -1986,7 +1986,7 @@ final_message = [ ''' Test appdata @0@'''.format(appstreamcli.found()), '', '''Documentation:''', -''' libgimp API Reference: @0@'''.format(gi_docgen.found()), +''' libgimp API Reference: @0@'''.format(gi_docgen.found() and have_gobject_introspection), ''' GObject Introspection: @0@'''.format(get_option('g-ir-doc')), '', '''Bug report URL: @0@'''.format(bug_report_url),