
We need to copy all introspection files to the same directory when building the documentation. Note that we only require Meson 0.44, but for the documentation at least 0.46 is needed because of a new functionality of gnome.gdbus_codegen(). In this way we can still build on Travis CI (without documentation).
49 lines
1.2 KiB
Meson
49 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: version_xml,
|
|
configuration: version_conf
|
|
)
|
|
|
|
content_files += join_paths(meson.source_root(), 'COPYING')
|
|
filecopier = find_program('cp')
|
|
foreach intro : introspection_files
|
|
path = intro.full_path().split('/')[-1]
|
|
custom_target(path,
|
|
input: intro,
|
|
output: path,
|
|
command : [filecopier, '@INPUT@', '@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
|
|
)
|