Require hotdoc >= 0.12.2
authorThibault Saunier <tsaunier@igalia.com>
Tue, 23 Jun 2020 22:01:53 +0000 (18:01 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Tue, 23 Jun 2020 23:32:30 +0000 (19:32 -0400)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-docs/-/merge_requests/97>

meson.build
symbols/symbol_index.json

index d25d0cc..281adf3 100644 (file)
@@ -2,6 +2,23 @@ project('GStreamer manuals and tutorials', 'c',
   version: '1.17.1.1',
   meson_version: '>=0.48.0')
 
+hotdoc_p = find_program('hotdoc')
+if not hotdoc_p.found()
+    message('Hotdoc not found, not building the documentation')
+    subdir_done()
+endif
+
+hotdoc_req = '>= 0.12.2'
+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@'.format(hotdoc_req, hotdoc_version))
+        subdir_done()
+    endif
+endif
+
 hotdoc = import('hotdoc')
 hotdoc_subprojects = []
 
index 75b9332..867f66d 100644 (file)
   "zbar:message",
   "GstZBar!sink",
   "GstZBar!src",
+  "plugin-gstomx",
   "plugin-gstzbar"
 ]
\ No newline at end of file