[gnome-builder] buildsystem: adjust build system priorities
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] buildsystem: adjust build system priorities
- Date: Fri, 10 Mar 2017 21:10:38 +0000 (UTC)
commit 26cfd375c0c2016ad9390a331f295b6e1b38363c
Author: Christian Hergert <chergert redhat com>
Date: Fri Mar 10 13:10:28 2017 -0800
buildsystem: adjust build system priorities
Lower is better, and we want autotools to always be the preferred build
system until we have either 1) rearchitected multi-build systems or 2)
decided on another "blessed" build system.
plugins/cargo/cargo_plugin.py | 3 +--
plugins/cmake/cmake_plugin/__init__.py | 2 +-
plugins/meson/meson_plugin/__init__.py | 2 +-
3 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/plugins/cargo/cargo_plugin.py b/plugins/cargo/cargo_plugin.py
index c556262..d926044 100644
--- a/plugins/cargo/cargo_plugin.py
+++ b/plugins/cargo/cargo_plugin.py
@@ -62,8 +62,7 @@ class CargoBuildSystem(Ide.Object, Ide.BuildSystem, Gio.AsyncInitable):
return task.propagate_boolean()
def do_get_priority(self):
- # Priority is used to determine the order of discovery
- return 2000
+ return 300
class CargoPipelineAddin(Ide.Object, Ide.BuildPipelineAddin):
"""
diff --git a/plugins/cmake/cmake_plugin/__init__.py b/plugins/cmake/cmake_plugin/__init__.py
index c834fb5..2d9cf49 100644
--- a/plugins/cmake/cmake_plugin/__init__.py
+++ b/plugins/cmake/cmake_plugin/__init__.py
@@ -50,7 +50,7 @@ class CMakeBuildSystem(Ide.Object, Ide.BuildSystem, Gio.AsyncInitable):
return result.propagate_boolean()
def do_get_priority(self):
- return -300 # Lower priority than Autotools for now
+ return 200
class CMakePipelineAddin(Ide.Object, Ide.BuildPipelineAddin):
diff --git a/plugins/meson/meson_plugin/__init__.py b/plugins/meson/meson_plugin/__init__.py
index 5aed956..9a7da2d 100644
--- a/plugins/meson/meson_plugin/__init__.py
+++ b/plugins/meson/meson_plugin/__init__.py
@@ -78,7 +78,7 @@ class MesonBuildSystem(Ide.Object, Ide.BuildSystem, Gio.AsyncInitable):
return result.propagate_boolean()
def do_get_priority(self):
- return -200 # Lower priority than Autotools for now
+ return 100
def do_get_build_flags_async(self, ifile, cancellable, callback, data=None):
task = Gio.Task.new(self, cancellable, callback)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]