mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
c7476cd615
gi-docgen is supposed to be ran natively on the build machine. Part-of: <https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3953>
27 lines
754 B
Meson
27 lines
754 B
Meson
if get_option('documentation') and enable_gir
|
|
gidocgen_dep = dependency('gi-docgen', version: '>= 2023.1',
|
|
fallback: ['gi-docgen', 'dummy_dep'],
|
|
native: true,
|
|
required: true)
|
|
|
|
toml_conf = configuration_data()
|
|
toml_conf.set('VERSION', meson.project_version())
|
|
|
|
gidocgen = find_program('gi-docgen', native: true, required: true)
|
|
|
|
gidocgen_common_args = [
|
|
'--quiet',
|
|
'--no-namespace-dir',
|
|
'--fatal-warnings',
|
|
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../girepository/introspection'),
|
|
]
|
|
|
|
docs_dir = glib_datadir / 'doc' / 'glib-2.0'
|
|
endif
|
|
|
|
subdir('glib')
|
|
subdir('gmodule')
|
|
subdir('gobject')
|
|
subdir('gio')
|
|
subdir('girepository')
|