diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2017-11-25 11:39:06 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-12-13 15:48:50 +0100 |
commit | 03637ad8b5d21fcc12a536a25caf46445aabde73 (patch) | |
tree | 3330fed2a9ad0f45c0c993a8aac6d3dee42ed101 /docs/api | |
parent | e96fabfc186510808cee1bf6aaaa28f460f1cea5 (diff) | |
download | NetworkManager-03637ad8b5d21fcc12a536a25caf46445aabde73.tar.gz |
build: add initial support for meson build system
meson is a build system focused on speed an ease of use, which
helps speeding up the software development. This patch adds meson
support along autotools.
[thaller@redhat.com: rebased patch and adjusted for iwd support]
https://mail.gnome.org/archives/networkmanager-list/2017-December/msg00022.html
Diffstat (limited to 'docs/api')
-rw-r--r-- | docs/api/meson.build | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/docs/api/meson.build b/docs/api/meson.build new file mode 100644 index 0000000000..904adc0ab7 --- /dev/null +++ b/docs/api/meson.build @@ -0,0 +1,32 @@ +doc_module = 'NetworkManager' + +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: used to built properly api documentation + build_by_default: true +) + +configure_file( + input: version_xml + '.in', + output: version_xml, + configuration: version_conf +) + +content_files += join_paths(meson.source_root(), 'COPYING') + +doc_path = join_paths(nm_datadir, 'gtk-doc', 'html', doc_module) + +gnome.gtkdoc( + doc_module, + main_xml: 'network-manager-docs.xml', + src_dir: meson.current_source_dir(), + content_files: content_files, + install: true, + install_dir: doc_path +) |