summaryrefslogtreecommitdiff
path: root/doc/meson.build
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-11-18 15:20:38 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-11-19 12:08:02 +0100
commit36c70ee93295d4b5040c0f8a20a2fdb70a0cd646 (patch)
tree0f1498f5d68a8561d59289ff8e29ce6442bd0ca5 /doc/meson.build
parenteb13df21d0e9f57e91d1c7cea862897bf06e3c20 (diff)
docs: Copy all images to output folder
Summary: Doxygen only copies to the output folder ("html") images included through the \image tag. However, we have several images included using \htmlonly blocks with <img> tags inside, which also need copying. Old makefiles included code to manually copy all pngs, and this patch does the same for meson. I apologize for needing an external script just to run "cp -rf", it looks like meson does not allow wildcards passed to "cp". Files not in the output folder won't be included in the tarball and won't be distributed. Test Plan: Generated documentation now includes images for pages like: `group__Eina__List__Group.html#details` Reviewers: bu5hm4n, lauromoura Reviewed By: bu5hm4n Subscribers: cedric, #reviewers, #committers, myoungwoon Tags: #efl Differential Revision: https://phab.enlightenment.org/D10690
Diffstat (limited to 'doc/meson.build')
-rw-r--r--doc/meson.build10
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/meson.build b/doc/meson.build
index 81c0e34..18b9aee 100644
--- a/doc/meson.build
+++ b/doc/meson.build
@@ -104,6 +104,7 @@ widget_preview_eps = custom_target('widget_preview_prefs_epc',
104 104
105shot_sh = find_program('shot.sh') 105shot_sh = find_program('shot.sh')
106tar = find_program('tar') 106tar = find_program('tar')
107efl_copy = find_program('efl_copy.sh')
107 108
108foreach text_filter_property : text_filter_properties 109foreach text_filter_property : text_filter_properties
109 text = text_filter_property[0] 110 text = text_filter_property[0]
@@ -181,10 +182,17 @@ doc_target += custom_target('doxygen',
181 build_by_default: false 182 build_by_default: false
182) 183)
183 184
185# This is not pretty but meson does not seem to allow wildcards in plain cp commands
186copy_images = custom_target('documentation images',
187 command: [efl_copy, '-rf', join_paths(meson.current_source_dir(), 'img', '*.png'), 'html'],
188 output: ['empty_img_copy'],
189 build_by_default: false
190)
191
184compress_target = custom_target('package_doc_tar', 192compress_target = custom_target('package_doc_tar',
185 command: [tar, '-C', meson.build_root(), '--xz', '-cf', 'efl-'+meson.project_version()+'-doc.tar.xz', 'html', 'man'], 193 command: [tar, '-C', meson.build_root(), '--xz', '-cf', 'efl-'+meson.project_version()+'-doc.tar.xz', 'html', 'man'],
186 output: 'efl-'+meson.project_version()+'-doc.tar.xz', 194 output: 'efl-'+meson.project_version()+'-doc.tar.xz',
187 depends: doc_target, 195 depends: [doc_target, copy_images],
188 build_by_default: false 196 build_by_default: false
189) 197)
190 198