docs: Warn if building documentation without enable_gir

If `-Ddocumentation=true` is specified without
`-Dintrospection=enabled`, warn the user. They might expect the
documentation to be built, but it won’t.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall 2024-12-11 15:36:50 +00:00
parent 67fb5a94b6
commit e9670d3c3c
No known key found for this signature in database
GPG Key ID: C5C42CFB268637CA

View File

@ -15,6 +15,8 @@ if get_option('documentation') and enable_gir
'--fatal-warnings',
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../girepository/introspection'),
]
elif get_option('documentation')
warning('Full documentation cannot be built without -Dintrospection=enabled')
endif
docs_dir = glib_datadir / 'doc'