doc: Require hotdoc >= 0.11.0
authorThibault Saunier <tsaunier@igalia.com>
Wed, 3 Jun 2020 22:30:39 +0000 (18:30 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Thu, 4 Jun 2020 02:44:15 +0000 (22:44 -0400)
docs/meson.build

index 84fc6e8635f396e816cd8766a98dd81c975aa47d..b0d90d6d5f6f506c8a5a23cabcfa27a1fdd0867c 100644 (file)
@@ -35,6 +35,17 @@ if not hotdoc_p.found()
     subdir_done()
 endif
 
+hotdoc_req = '>= 0.11.0'
+hotdoc_version = run_command(hotdoc_p, '--version').stdout()
+if not hotdoc_version.version_compare(hotdoc_req)
+    if get_option('doc').enabled()
+        error('Hotdoc version @0@ not found, got @1@'.format(hotdoc_req, hotdoc_version))
+    else
+        message('Hotdoc version @0@ not found, got @1@, not building documentation'.format(hotdoc_req, hotdoc_version))
+        subdir_done()
+    endif
+endif
+
 hotdoc = import('hotdoc')
 foreach extension: required_hotdoc_extensions
     if not hotdoc.has_extensions(extension)