Commit 09d81b51 authored by Mathieu Duponchelle's avatar Mathieu Duponchelle 🐸
Browse files

meson: docs is not an option of gst-docs

Simply error out if hotdoc's version isn't recent enough
parent project can then decide whether gst-docs was required.

Part-of: <gstreamer/gst-docs!98>
parent 059f092c
...@@ -11,12 +11,7 @@ endif ...@@ -11,12 +11,7 @@ endif
hotdoc_req = '>= 0.12.2' hotdoc_req = '>= 0.12.2'
hotdoc_version = run_command(hotdoc_p, '--version').stdout() hotdoc_version = run_command(hotdoc_p, '--version').stdout()
if not hotdoc_version.version_compare(hotdoc_req) 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))
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 endif
hotdoc = import('hotdoc') hotdoc = import('hotdoc')
...@@ -137,4 +132,4 @@ run_target('release', ...@@ -137,4 +132,4 @@ run_target('release',
meson.project_version(), meson.project_version(),
meson.current_build_dir()], meson.current_build_dir()],
depends: [gstreamer_doc] depends: [gstreamer_doc]
) )
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment