[gnome-builder/gnome-builder-41] gvls: set autoconfigure as default
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-41] gvls: set autoconfigure as default
- Date: Wed, 22 Dec 2021 01:29:32 +0000 (UTC)
commit db9429314f0811407bf13fb1c536d776019dbbd0
Author: Daniel Espinosa Ortiz <esodan gmail com>
Date: Tue Dec 21 17:12:36 2021 -0800
gvls: set autoconfigure as default
src/plugins/gvls/gvls_plugin.py | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/gvls/gvls_plugin.py b/src/plugins/gvls/gvls_plugin.py
index 7e3ab190c..f66ada9cd 100644
--- a/src/plugins/gvls/gvls_plugin.py
+++ b/src/plugins/gvls/gvls_plugin.py
@@ -36,11 +36,12 @@ class GVlsService(Ide.Object):
_has_started = False
_supervisor = None
_monitor = None
+ autoconfigure = True
meson_build_system = True
initialized = True
default_namespaces = True
default_vapi_dirs = True
- scan_work_space = True
+ scan_work_space = False
add_using_namespaces = True
library_vapidir = ""
system_vapidir = ""
@@ -177,10 +178,16 @@ class GVlsService(Ide.Object):
b.add_value(self.create_dict_entry_string('libraryVapi', self.library_vapidir))
Ide.debug('Library VAPI dir:{0}'.format(self.library_vapidir))
b.add_value(self.create_dict_entry_string('systemVapi', self.system_vapidir))
- Ide.debug('System VAPI dir:{0}'.format(self.system_vapidir))
- b.add_value(self.create_dict_entry_string('valaApiVersion', self.vala_api_version))
b.add_value(self.create_dict_entry_string('mesonCompileCommands', self.meson_compile_commands))
b.add_value(self.create_dict_entry_string('mesonTargetsIntro', self.meson_targets_intro))
+ Ide.debug('System VAPI dir:{0}'.format(self.system_vapidir))
+ if (self.library_vapidir == "" or self.system_vapidir == "" or self.meson_compile_commands ==
""):
+ self.autoconfigure = True
+ else:
+ self.autoconfigure = False
+
+ b.add_value(self.create_dict_entry_boolean('autoConfigure', self.autoconfigure))
+ b.add_value(self.create_dict_entry_string('valaApiVersion', self.vala_api_version))
ad = GLib.Variant.new_string ('valaArgs')
vadi = self.dict_to_array_variant(self.vala_args)
adi = GLib.Variant.new_dict_entry(ad, GLib.Variant.new_variant (vadi))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]