From 796df704a70c0a276bc89704293fe61dde9d6cc6 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 10 Jan 2018 09:12:39 +0100 Subject: [PATCH] build/meson: fix build without introspection nm_settings_docs is only defined with enable_introspection. --- docs/api/meson.build | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/docs/api/meson.build b/docs/api/meson.build index 71c0286eb4..d0cc3ac8cf 100644 --- a/docs/api/meson.build +++ b/docs/api/meson.build @@ -3,14 +3,16 @@ doc_module = nm_name settings = 'settings-spec' output = settings + '.xml' -settings_xml = custom_target( - output, - input: nm_settings_docs, - output: output, - command: [xsltproc, '--output', '@OUTPUT@', join_paths(meson.current_source_dir(), settings + '.xsl'), '@INPUT@'], - # FIXME: there is no target depending on this, so it will not be built - build_by_default: true -) +if enable_introspection + settings_xml = custom_target( + output, + input: nm_settings_docs, + output: output, + command: [xsltproc, '--output', '@OUTPUT@', join_paths(meson.current_source_dir(), settings + '.xsl'), '@INPUT@'], + # FIXME: there is no target depending on this, so it will not be built + build_by_default: true + ) +endif configure_file( input: version_xml + '.in',