[gnome-builder] waf: parse config-opts as an argv and append to launcher



commit 5b1dbbe83d78edc2125fc8636b9c93f05e066e13
Author: Christian Hergert <chergert redhat com>
Date:   Fri Feb 22 22:24:39 2019 -0800

    waf: parse config-opts as an argv and append to launcher

 src/plugins/waf/waf_plugin.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/waf/waf_plugin.py b/src/plugins/waf/waf_plugin.py
index 0819221d3..9c0bea701 100644
--- a/src/plugins/waf/waf_plugin.py
+++ b/src/plugins/waf/waf_plugin.py
@@ -94,7 +94,11 @@ class WafPipelineAddin(Ide.Object, Ide.PipelineAddin):
         config_launcher.push_argv('configure')
         config_launcher.push_argv('--prefix=%s' % config.get_prefix())
         if config_opts:
-            config_launcher.push_args(config_opts)
+            try:
+                ret, argv = GLib.shell_parse_argv(config_opts)
+                config_launcher.push_args(argv)
+            except Exception as ex:
+                print(repr(ex))
         self.track(pipeline.attach_launcher(Ide.PipelinePhase.CONFIGURE, 0, config_launcher))
 
         # Now create our launcher to build the project


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