2023-11-29 10:26:37 +00:00
|
|
|
if get_option('documentation') and enable_gir
|
2024-06-14 13:59:01 +01:00
|
|
|
gidocgen_dep = dependency('gi-docgen', version: '>= 2024.1',
|
2023-10-09 23:04:21 +01:00
|
|
|
fallback: ['gi-docgen', 'dummy_dep'],
|
2024-03-05 13:39:21 +00:00
|
|
|
native: true,
|
2023-10-09 23:04:21 +01:00
|
|
|
required: true)
|
|
|
|
|
|
|
|
toml_conf = configuration_data()
|
|
|
|
toml_conf.set('VERSION', meson.project_version())
|
|
|
|
|
2024-03-05 13:39:21 +00:00
|
|
|
gidocgen = find_program('gi-docgen', native: true, required: true)
|
2023-10-09 23:04:21 +01:00
|
|
|
|
|
|
|
gidocgen_common_args = [
|
|
|
|
'--quiet',
|
|
|
|
'--no-namespace-dir',
|
|
|
|
'--fatal-warnings',
|
2024-02-02 12:54:07 +02:00
|
|
|
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../girepository/introspection'),
|
2023-10-09 23:04:21 +01:00
|
|
|
]
|
2024-12-11 15:36:50 +00:00
|
|
|
elif get_option('documentation')
|
|
|
|
warning('Full documentation cannot be built without -Dintrospection=enabled')
|
2023-10-09 23:04:21 +01:00
|
|
|
endif
|
2024-01-11 15:39:51 +00:00
|
|
|
|
2024-03-13 16:46:06 +00:00
|
|
|
docs_dir = glib_datadir / 'doc'
|
2024-03-05 16:45:21 +00:00
|
|
|
|
2024-01-11 15:39:51 +00:00
|
|
|
subdir('glib')
|
|
|
|
subdir('gmodule')
|
|
|
|
subdir('gobject')
|
|
|
|
subdir('gio')
|
|
|
|
subdir('girepository')
|