diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2018-09-23 16:30:18 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2018-09-28 17:25:46 +0200 |
commit | b4ba9f56fffe972631b1e45e20bff9404f941c5a (patch) | |
tree | c44ae0ffec22d6b62986c3fe5aec39f5d4e0bf2b /docs | |
parent | 12979b79f92738c6b6d885d894acc9045e738907 (diff) |
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.build | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/api/meson.build b/docs/api/meson.build index d0cc3ac8c..31b9776c8 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, |