Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Adapt GLib documentation path to GLib 2.80.1 #619

Merged
merged 1 commit into from
May 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,19 @@ if with_docs

if glib.version().version_compare('<2.79.0')
glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
glib_modules = ['glib', 'gobject' ]
else
glib_docpath = join_paths(glib_prefix, 'share', 'doc', 'glib-2.0')
warning('glib >= 2.79.0 documention might not be properly referred from libmodulemd documentation.')
if glib.version().version_compare('<2.80.1')
glib_docpath = join_paths(glib_prefix, 'share', 'doc', 'glib-2.0')
glib_modules = ['glib', 'gobject' ]
else
glib_docpath = join_paths(glib_prefix, 'share', 'doc')
glib_modules = ['glib-2.0', 'gobject-2.0' ]
endif
endif

foreach referred_module : [ 'glib', 'gobject' ]
foreach referred_module : glib_modules
doc_module_path = join_paths(glib_docpath, referred_module)
doc_index_file = join_paths(doc_module_path, 'index.html')
ret = run_command ([test, '-e', doc_index_file],
Expand Down