forked from AuroraMiddleware/gtk
142571d0b8
And only enable `--fatal-warnings` if `-Dwerror` has been set, just like we do for the introspection data generation.
24 lines
471 B
Meson
24 lines
471 B
Meson
toml_conf = configuration_data()
|
|
toml_conf.set('version', meson.project_version())
|
|
|
|
gidocgen = find_program('gi-docgen', required: get_option('gtk_doc'))
|
|
|
|
gidocgen_common_args = [
|
|
'--quiet',
|
|
'--no-namespace-dir',
|
|
]
|
|
|
|
if get_option('werror')
|
|
gidocgen_common_args += ['--fatal-warnings']
|
|
endif
|
|
|
|
docs_dir = gtk_datadir / 'doc'
|
|
|
|
if get_option('gtk_doc') and not build_gir
|
|
error('API reference requires introspection.')
|
|
endif
|
|
|
|
subdir('gdk')
|
|
subdir('gsk')
|
|
subdir('gtk')
|