Commit 71d50c92 authored by Christian Hergert's avatar Christian Hergert
Browse files

buildsystem: fix get_id for various build systems

parent 921cf56d
......@@ -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;
}
......@@ -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):
......
......@@ -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):
......
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment