summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-01-10 09:12:39 +0100
committerThomas Haller <thaller@redhat.com>2018-01-10 12:30:48 +0100
commit796df704a70c0a276bc89704293fe61dde9d6cc6 (patch)
treeaaebb9400a73716a3b4af09d730f19b98c577a65
parent32e989b5a77ebb7c4529bca1a71dd6e322a6ccf3 (diff)
downloadNetworkManager-796df704a70c0a276bc89704293fe61dde9d6cc6.tar.gz
build/meson: fix build without introspection
nm_settings_docs is only defined with enable_introspection.
-rw-r--r--docs/api/meson.build18
1 files 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',