Files
NetworkManager/docs/api/meson.build
Thomas Haller 6d7270e222 build/meson: cleanup configuration_data() for paths
We don't need such data duplicated. The build setup should
have only one configuration_data() for patching such values.

Now we only have one global, immutable data_conf dictionary with
configuration values. Note that none of the users of data_conf uses all
entries, but as the entries are basically only dependent on the
meson/configure option and valid for the entire project, this simplifies
to handling.
2019-11-22 15:59:31 +01:00

55 lines
1.1 KiB
Meson

if enable_introspection
settings = 'settings-spec'
output = settings + '.xml'
inputs = [
settings + '.xsl',
nm_settings_docs,
]
content_files += custom_target(
output,
input: inputs,
output: output,
command: [xsltproc, '--output', '@OUTPUT@', '@INPUT0@', '@INPUT1@'],
build_by_default: true,
)
endif
content_files += configure_file(
input: 'version.xml.in',
output: '@BASENAME@',
configuration: data_conf,
)
filecopier = find_program('cp')
foreach intro: introspection_files
output = intro[1].split('/')[-1]
content_files += custom_target(
output,
input: intro[0],
output: output,
command: [filecopier, intro[1], '@OUTPUT@'],
build_by_default: true,
)
endforeach
output = 'common.ent'
content_files += custom_target(
output,
input: common_ent_file,
output: output,
command: [filecopier, '@INPUT@', '@OUTPUT@'],
build_by_default: true,
)
gnome.gtkdoc(
nm_name,
main_xml: 'network-manager-docs.xml',
src_dir: meson.current_source_dir(),
content_files: content_files,
install: true,
)