From dd97c88f90c41219148e902a88397e05e7f4725a Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Tue, 5 Mar 2024 16:45:21 +0000 Subject: [PATCH] docs: Fix building with docs enabled and introspection disabled We install gvariant-specification-1.0.html to `docs_dir` but that shouldn't require `enable_gir`. Fixes: docs/reference/glib/meson.build:26:16: ERROR: Unknown variable "docs_dir" Part-of: --- docs/reference/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/meson.build b/docs/reference/meson.build index c990b9775..e0bbc0561 100644 --- a/docs/reference/meson.build +++ b/docs/reference/meson.build @@ -14,10 +14,10 @@ if get_option('documentation') and enable_gir '--fatal-warnings', '--add-include-path=@0@'.format(meson.current_build_dir() / '../../girepository/introspection'), ] - - docs_dir = glib_datadir / 'doc' / 'glib-2.0' endif +docs_dir = glib_datadir / 'doc' / 'glib-2.0' + subdir('glib') subdir('gmodule') subdir('gobject')