build/meson: fix build without introspection

nm_settings_docs is only defined with enable_introspection.
This commit is contained in:
Thomas Haller 2018-01-10 09:12:39 +01:00
parent 32e989b5a7
commit 796df704a7

View file

@ -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',