| 1 |
# SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 |
|
| 3 |
if enable_introspection |
| 4 |
xsltproc = find_program('xsltproc') |
| 5 |
|
| 6 |
settings = 'settings-spec' |
| 7 |
output = settings + '.xml' |
| 8 |
|
| 9 |
inputs = [ |
| 10 |
settings + '.xsl', |
| 11 |
nm_settings_docs_xml['dbus'], |
| 12 |
] |
| 13 |
|
| 14 |
content_files += custom_target( |
| 15 |
output, |
| 16 |
input: inputs, |
| 17 |
output: output, |
| 18 |
command: [xsltproc, '--output', '@OUTPUT@', '@INPUT0@', '@INPUT1@'], |
| 19 |
build_by_default: true, |
| 20 |
) |
| 21 |
endif |
| 22 |
|
| 23 |
content_files += configure_file( |
| 24 |
input: 'version.xml.in', |
| 25 |
output: '@BASENAME@', |
| 26 |
configuration: data_conf, |
| 27 |
) |
| 28 |
|
| 29 |
filecopier = find_program('cp') |
| 30 |
foreach intro: introspection_files |
| 31 |
output = intro[1].split('/')[-1] |
| 32 |
|
| 33 |
content_files += custom_target( |
| 34 |
output, |
| 35 |
input: intro[0], |
| 36 |
output: output, |
| 37 |
command: [filecopier, intro[1], '@OUTPUT@'], |
| 38 |
build_by_default: true, |
| 39 |
) |
| 40 |
endforeach |
| 41 |
|
| 42 |
output = 'common.ent' |
| 43 |
|
| 44 |
content_files += custom_target( |
| 45 |
output, |
| 46 |
input: common_ent_file, |
| 47 |
output: output, |
| 48 |
command: [filecopier, '@INPUT@', '@OUTPUT@'], |
| 49 |
build_by_default: true, |
| 50 |
) |
| 51 |
|
| 52 |
gnome.gtkdoc( |
| 53 |
nm_name, |
| 54 |
main_xml: 'network-manager-docs.xml', |
| 55 |
src_dir: meson.current_source_dir(), |
| 56 |
content_files: content_files, |
| 57 |
install: true, |
| 58 |
) |