mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-03 20:40:34 +01:00
build/meson: fix build without introspection
nm_settings_docs is only defined with enable_introspection.
This commit is contained in:
parent
32e989b5a7
commit
796df704a7
1 changed files with 10 additions and 8 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue