[gnome-builder] buildsystem: fix get_id for various build systems
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] buildsystem: fix get_id for various build systems
- Date: Tue, 14 Mar 2017 01:25:47 +0000 (UTC)
commit 71d50c924904b7996a867792204fb6c71b4886ef
Author: Christian Hergert <chergert redhat com>
Date: Mon Mar 13 18:23:01 2017 -0700
buildsystem: fix get_id for various build systems
libide/directory/ide-directory-build-system.c | 7 +++++++
plugins/cargo/cargo_plugin.py | 2 +-
plugins/cmake/cmake_plugin/__init__.py | 2 +-
plugins/meson/meson_plugin/__init__.py | 2 +-
4 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/libide/directory/ide-directory-build-system.c b/libide/directory/ide-directory-build-system.c
index 54bedaa..42aeff3 100644
--- a/libide/directory/ide-directory-build-system.c
+++ b/libide/directory/ide-directory-build-system.c
@@ -173,8 +173,15 @@ ide_directory_build_system_get_priority (IdeBuildSystem *build_system)
return 1000000;
}
+static gchar *
+ide_directory_build_system_get_id (IdeBuildSystem *build_system)
+{
+ return g_strdup ("directory");
+}
+
static void
build_system_init (IdeBuildSystemInterface *iface)
{
iface->get_priority = ide_directory_build_system_get_priority;
+ iface->get_id = ide_directory_build_system_get_id;
}
diff --git a/plugins/cargo/cargo_plugin.py b/plugins/cargo/cargo_plugin.py
index 6eed797..afe83ed 100644
--- a/plugins/cargo/cargo_plugin.py
+++ b/plugins/cargo/cargo_plugin.py
@@ -34,7 +34,7 @@ _CARGO = 'cargo'
class CargoBuildSystem(Ide.Object, Ide.BuildSystem, Gio.AsyncInitable):
project_file = GObject.Property(type=Gio.File)
- def get_id(self):
+ def do_get_id(self):
return 'cargo'
def do_init_async(self, io_priority, cancellable, callback, data):
diff --git a/plugins/cmake/cmake_plugin/__init__.py b/plugins/cmake/cmake_plugin/__init__.py
index 9605c10..c1e6384 100644
--- a/plugins/cmake/cmake_plugin/__init__.py
+++ b/plugins/cmake/cmake_plugin/__init__.py
@@ -31,7 +31,7 @@ _NINJA_NAMES = [ 'ninja-build', 'ninja' ]
class CMakeBuildSystem(Ide.Object, Ide.BuildSystem, Gio.AsyncInitable):
project_file = GObject.Property(type=Gio.File)
- def get_id(self):
+ def do_get_id(self):
return 'cmake'
def do_init_async(self, priority, cancel, callback, data=None):
diff --git a/plugins/meson/meson_plugin/__init__.py b/plugins/meson/meson_plugin/__init__.py
index 307c036..170aba6 100644
--- a/plugins/meson/meson_plugin/__init__.py
+++ b/plugins/meson/meson_plugin/__init__.py
@@ -59,7 +59,7 @@ def extract_flags(command: str, builddir: str):
class MesonBuildSystem(Ide.Object, Ide.BuildSystem, Gio.AsyncInitable):
project_file = GObject.Property(type=Gio.File)
- def get_id(self):
+ def do_get_id(self):
return 'meson'
def do_init_async(self, priority, cancel, callback, data=None):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]