From e0d0bbec5bfc1ac91a51bf3ed386fa9aabacdae0 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Fri, 20 Jul 2018 12:46:58 +0200 Subject: meson: Provide our Python tools for builds. See !51 So that meson projects using gi as a subproject can find them. --- tools/meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools') 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] -- cgit v1.2.1