summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-07-20 12:46:58 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2018-07-22 15:55:11 +0200
commite0d0bbec5bfc1ac91a51bf3ed386fa9aabacdae0 (patch)
treed4e1809e06c1c9f054162b16dd7283c216b56d37 /tools
parentba70ffe57a7cb833871146eb09d1fefcbe560512 (diff)
downloadgobject-introspection-e0d0bbec5bfc1ac91a51bf3ed386fa9aabacdae0.tar.gz
meson: Provide our Python tools for builds. See !51
So that meson projects using gi as a subproject can find them.
Diffstat (limited to 'tools')
-rw-r--r--tools/meson.build5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/meson.build b/tools/meson.build
index ea8ccc3a..73472664 100644
--- a/tools/meson.build
+++ b/tools/meson.build
@@ -19,13 +19,16 @@ foreach tool : tools
tools_conf.set('TOOL_MODULE', tool[1])
tools_conf.set('TOOL_FUNCTION', tool[2])
- tool_output += configure_file(
+ tool_bin = configure_file(
input: 'g-ir-tool-template.in',
output: tool[0],
configuration: tools_conf,
install: true,
install_dir: get_option('bindir'),
)
+ tool_output += tool_bin
+ # Provide tools for others when we're a subproject and they use the Meson GNOME module
+ meson.override_find_program(tool[0], tool_bin)
endforeach
girscanner = tool_output[0]