mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 21:50:17 +01:00
Functions derived from generators as `configure_file`, `custom_target` and `i18n.merge_file` can use placeholders like `@BASENAME@` that removes the extension from the input filename string. The output string has been replaced by this placeholder that allows in some cases the use of less variables.
47 lines
1.2 KiB
Meson
47 lines
1.2 KiB
Meson
doc_module = nm_name
|
|
|
|
settings = 'settings-spec'
|
|
output = settings + '.xml'
|
|
|
|
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',
|
|
output: '@BASENAME@',
|
|
configuration: version_conf,
|
|
)
|
|
|
|
filecopier = find_program('cp')
|
|
foreach intro : introspection_files
|
|
path = intro[1].split('/')[-1]
|
|
custom_target(path,
|
|
input: intro[0],
|
|
output: path,
|
|
command: [filecopier, intro[1], '@OUTPUT@'],
|
|
build_by_default: true,
|
|
)
|
|
endforeach
|
|
|
|
custom_target('common.ent',
|
|
input: common_ent_file,
|
|
output: 'common.ent',
|
|
command: [filecopier, '@INPUT@', '@OUTPUT@'],
|
|
build_by_default: true,
|
|
)
|
|
|
|
gnome.gtkdoc(
|
|
doc_module,
|
|
main_xml: 'network-manager-docs.xml',
|
|
src_dir: meson.current_source_dir(),
|
|
content_files: content_files,
|
|
install: true,
|
|
)
|