summaryrefslogtreecommitdiff
path: root/giscanner
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2019-01-03 09:42:28 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2019-01-03 18:14:17 +0100
commit50e304b2393411f3402173feeb36731c548c6c03 (patch)
treea33867157637887e8583793fb07e97dfe5fc3673 /giscanner
parent95aa2eaf344775cd73102fad0c4544d3b282dfe6 (diff)
downloadgobject-introspection-50e304b2393411f3402173feeb36731c548c6c03.tar.gz
meson: port doctool tests
Diffstat (limited to 'giscanner')
-rw-r--r--giscanner/meson.build12
1 files changed, 12 insertions, 0 deletions
diff --git a/giscanner/meson.build b/giscanner/meson.build
index 4998865a..6ae34067 100644
--- a/giscanner/meson.build
+++ b/giscanner/meson.build
@@ -49,6 +49,18 @@ endforeach
install_subdir('doctemplates', install_dir: giscannerdir)
+# XXX: this doesn't track the input, but there is nothing to copy many files
+# in meson.
+doc_templates = custom_target('copy-templates',
+ input : 'doctemplates',
+ output : 'doctemplates',
+ command : [
+ python, '-c',
+ 'import sys, shutil;' +
+ 'shutil.rmtree(sys.argv[2], ignore_errors=True);' +
+ 'shutil.copytree(sys.argv[1], sys.argv[2])',
+ '@INPUT@', '@OUTPUT@'])
+
flex = find_program('flex', 'win_flex')
bison = find_program('bison', 'win_bison')