From: Peter Maydell Date: Fri, 25 Sep 2020 16:23:08 +0000 (+0100) Subject: meson.build: Move SPHINX_ARGS to top level meson.build file X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=eb937365faeeddc94a0144bc1565b223ee87351f;p=qmiga%2Fqemu.git meson.build: Move SPHINX_ARGS to top level meson.build file We're going to want to use SPHINX_ARGS in both docs/meson.build and tests/qapi-schema/meson.build. Move the definition up to the top level file so it is available to both subdirectories. Signed-off-by: Peter Maydell Message-Id: <20200925162316.21205-14-peter.maydell@linaro.org> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- diff --git a/docs/meson.build b/docs/meson.build index 663bdb9073..52e384be17 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -1,11 +1,3 @@ -SPHINX_ARGS = [config_host['SPHINX_BUILD'], - '-Dversion=' + meson.project_version(), - '-Drelease=' + config_host['PKGVERSION']] - -if get_option('werror') - SPHINX_ARGS += [ '-W' ] -endif - if build_docs configure_file(output: 'index.html', input: files('index.html.in'), diff --git a/meson.build b/meson.build index 7eb2c9c01a..866321462e 100644 --- a/meson.build +++ b/meson.build @@ -672,6 +672,14 @@ foreach d : hx_headers endforeach genh += hxdep +SPHINX_ARGS = [config_host['SPHINX_BUILD'], + '-Dversion=' + meson.project_version(), + '-Drelease=' + config_host['PKGVERSION']] + +if get_option('werror') + SPHINX_ARGS += [ '-W' ] +endif + # Collect sourcesets. util_ss = ss.source_set()