[gobject-introspection] meson: Provide our Python tools for builds. See !51



commit e0d0bbec5bfc1ac91a51bf3ed386fa9aabacdae0
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Fri Jul 20 12:46:58 2018 +0200

    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(-)
---
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]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]