[gnome-builder/gnome-builder-3-18] vala: workaround for hacking on builder



commit d3a367c0739aa429d11e4a7d9e34db5756130e7d
Author: Christian Hergert <christian hergert me>
Date:   Tue Sep 29 19:17:16 2015 -0700

    vala: workaround for hacking on builder
    
    Until we get build system integration, this makes it a bit easier for us.
    Ideally, we would be parsing this from the build system by now, but it is
    a bit more involved than desired.

 plugins/vala-pack/ide-vala-index.vala |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/plugins/vala-pack/ide-vala-index.vala b/plugins/vala-pack/ide-vala-index.vala
index d102efb..88a5a81 100644
--- a/plugins/vala-pack/ide-vala-index.vala
+++ b/plugins/vala-pack/ide-vala-index.vala
@@ -90,11 +90,16 @@ namespace Ide
                        this.code_context.add_external_package ("glib-2.0");
                        this.code_context.add_external_package ("gobject-2.0");
 
-                       /* TODO: find packages from build system */
+                       /* TODO: find packages from build system
+                        *       the following is just to help us while writing vala in builder
+                        *       until the build system works.
+                        */
+                       this.code_context.vapi_directories = new string[] { "libide", "src" };
                        this.code_context.add_external_package ("gio-2.0");
                        this.code_context.add_external_package ("libvala-0.30");
                        this.code_context.add_external_package ("libide-1.0");
                        this.code_context.add_external_package ("gtksourceview-3.0");
+                       this.code_context.add_external_package ("gnome-builder-1.0");
 
                        this.report = new Ide.ValaDiagnostics ();
                        this.code_context.report = this.report;


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