mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 14:36:16 +01: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:
parent
67fb5a94b6
commit
e9670d3c3c
@ -15,6 +15,8 @@ if get_option('documentation') and enable_gir
|
|||||||
'--fatal-warnings',
|
'--fatal-warnings',
|
||||||
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../girepository/introspection'),
|
'--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
|
endif
|
||||||
|
|
||||||
docs_dir = glib_datadir / 'doc'
|
docs_dir = glib_datadir / 'doc'
|
||||||
|
Loading…
Reference in New Issue
Block a user