summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2018-09-23 16:30:18 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2018-09-28 17:25:46 +0200
commitdcfddeef7a7af537f3d271e94d2170ad0d28e39f (patch)
treec44ae0ffec22d6b62986c3fe5aec39f5d4e0bf2b /docs
parent929298333e1f34fcd519593897f16823d45be65a (diff)
downloadNetworkManager-dcfddeef7a7af537f3d271e94d2170ad0d28e39f.tar.gz
build: meson: fix generation of api docs
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).
Diffstat (limited to 'docs')
-rw-r--r--docs/api/meson.build17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/api/meson.build b/docs/api/meson.build
index d0cc3ac8cf..31b9776c88 100644
--- a/docs/api/meson.build
+++ b/docs/api/meson.build
@@ -21,6 +21,23 @@ configure_file(
)
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,