diff options
author | Thomas Haller <thaller@redhat.com> | 2018-01-10 09:12:39 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-01-10 12:30:48 +0100 |
commit | 796df704a70c0a276bc89704293fe61dde9d6cc6 (patch) | |
tree | aaebb9400a73716a3b4af09d730f19b98c577a65 /docs | |
parent | 32e989b5a77ebb7c4529bca1a71dd6e322a6ccf3 (diff) | |
download | NetworkManager-796df704a70c0a276bc89704293fe61dde9d6cc6.tar.gz |
build/meson: fix build without introspection
nm_settings_docs is only defined with enable_introspection.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/api/meson.build | 18 |
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', |