Project/Gtk.vala
authorAlan Knowles <alan@roojs.com>
Mon, 27 Oct 2014 10:29:36 +0000 (18:29 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 27 Oct 2014 10:29:36 +0000 (18:29 +0800)
Project/Gtk.vala

index 3103ce0..e82e130 100644 (file)
  * If we model this like adjuta - then we would need a 'project' file that is actually in 
  * the directory somewhere... - and is revision controlled etc..
  * 
+ * builder.config ??
+ * 
  * 
- *  
  * 
  * 
  */
  
 
 namespace Project {
-  static int gtk_id = 1;
+       static int gtk_id = 1;
 
+       
+       
 
-  public class Gtk : Project
-  {
+       public class Gtk : Project
+       {
          
-     public Gtk(string path) {
+               public Gtk(string path) {
+                 
                  
+                       base(path);
+                       this.xtype = "Gtk";
+                       var gid = "project-gtk-%d".printf(gtk_id++);
+                       this.id = gid;
                  
-          base(path);
-                 this.xtype = "Gtk";
-          var gid = "project-gtk-%d".printf(gtk_id++);
-          this.id = gid;
-          // various loader methods..
-        
-     }
-        
+               
+               }
+               public Gee.HashMap<string,GtkValaSettings> compilegroups;
+               
+               public void loadConfig()
+               {
+                       // load a builder.config JSON file.
+                       // 
+               }
+
+       }
+       // an object describing a build config (or generic ...)
+       public class GtkValaSettings : Object {
+               public string compile_flags; // generic to all.
+               public Gee.ArrayList<string> packages; // list of packages?? some might be genericly named?
+               public Gee.ArrayList<string> sources; // list of files+dirs (relative to project)
+               public string target_bin;
+               
+       }
   }
 }