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: <https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3955>
This commit is contained in:
Bobby Rong 2024-03-05 16:45:21 +00:00
parent 04abb73732
commit dd97c88f90

View File

@ -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')