[gnome-builder] waf: add install launcher to get closer to running



commit fdebc7fb91730e241fb632dbcfbfd56fcbfc124f
Author: Christian Hergert <chergert redhat com>
Date:   Thu Feb 21 12:35:48 2019 -0800

    waf: add install launcher to get closer to running

 src/plugins/waf/waf_plugin.py | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/src/plugins/waf/waf_plugin.py b/src/plugins/waf/waf_plugin.py
index 29e610eb4..2a1cbb9bb 100644
--- a/src/plugins/waf/waf_plugin.py
+++ b/src/plugins/waf/waf_plugin.py
@@ -112,6 +112,17 @@ class WafPipelineAddin(Ide.Object, Ide.PipelineAddin):
         build_stage.connect('query', self._query)
         self.track(pipeline.attach(Ide.PipelinePhase.BUILD, 0, build_stage))
 
+        install_launcher = pipeline.create_launcher()
+        install_launcher.set_cwd(srcdir)
+        install_launcher.push_argv(python)
+        install_launcher.push_argv('waf')
+        install_launcher.push_argv('install')
+
+        install_stage = Ide.PipelineStageLauncher.new(context, install_launcher)
+        install_stage.set_name(_("Installing project…"))
+        install_stage.connect('query', self._query)
+        self.track(pipeline.attach(Ide.PipelinePhase.INSTALL, 0, install_stage))
+
     def do_unload(self, application):
         pass
 


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