mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-23 10:27:51 +02:00
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:
@@ -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'
|
||||
|
Reference in New Issue
Block a user