build: Tell gi-docgen where to find the GIR files

Now that all files are located under top_srcdir/introspection, we need
to ensure that gi-docgen can find them.
This commit is contained in:
Emmanuele Bassi 2023-12-27 16:00:06 +00:00
parent 686ab492cf
commit 0db7395ef9
5 changed files with 1 additions and 7 deletions

View File

@ -52,9 +52,6 @@ custom_target('gio-docs',
'--config=@INPUT0@',
'--output-dir=@OUTPUT@',
'--content-dir=@0@'.format(meson.current_source_dir()),
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../../gobject'),
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../../gmodule'),
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../../gio'),
'@INPUT1@',
],
build_by_default: true,

View File

@ -109,7 +109,6 @@ custom_target('glib-docs',
'--config=@INPUT0@',
'--output-dir=@OUTPUT@',
'--content-dir=@0@'.format(meson.current_source_dir()),
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../../gobject'),
'@INPUT1@',
],
build_by_default: true,

View File

@ -14,8 +14,6 @@ custom_target('gmodule-docs',
'--config=@INPUT0@',
'--output-dir=@OUTPUT@',
'--content-dir=@0@'.format(meson.current_source_dir()),
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../../gobject'),
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../../gmodule'),
'@INPUT1@',
],
build_by_default: true,

View File

@ -41,7 +41,6 @@ custom_target('gobject-docs',
'--config=@INPUT0@',
'--output-dir=@OUTPUT@',
'--content-dir=@0@'.format(meson.current_source_dir()),
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../../gobject'),
'@INPUT1@',
],
build_by_default: true,

View File

@ -12,6 +12,7 @@ if get_option('documentation') and enable_gir
'--quiet',
'--no-namespace-dir',
'--fatal-warnings',
'--add-include-path=@0@'.format(meson.current_build_dir() / '../../introspection'),
]
docs_dir = glib_datadir / 'doc' / 'glib-2.0'