diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/meson.build | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/docs/reference/meson.build b/docs/reference/meson.build index a308cc4c87..511f599aea 100644 --- a/docs/reference/meson.build +++ b/docs/reference/meson.build @@ -1,4 +1,14 @@ -if get_option('gtk_doc') +build_docs = get_option('gtk_doc') +if build_docs + gtkdoc_scangobj = find_program('gtkdoc-scangobj') + gtkdoc_ver = run_command(gtkdoc_scangobj, '--version').stdout().strip() + if gtkdoc_ver.version_compare('<1.30') + warning('GTK-Doc version is too old for GTK4') + build_docs = false + endif +endif + +if build_docs glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix') glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html') @@ -15,8 +25,8 @@ if get_option('gtk_doc') src_dir_conf = configuration_data() src_dir_conf.set('SRC_DIR', meson.source_root()) -endif -subdir('gdk') -subdir('gsk') -subdir('gtk') + subdir('gdk') + subdir('gsk') + subdir('gtk') +endif |