src/Project/Gtk.vala
[app.Builder.js] / src / Project / Gtk.vala
index cf250fc..a7fb5d8 100644 (file)
@@ -202,7 +202,7 @@ namespace Project {
                                                continue;
                                        }
                                        GLib.debug("SCAN ADD %s : %s", fn, next_file.get_content_type());
-                                       ret.add(in_path + "/" + fn);
+                                       ret.add(dirname + "/" + fn);
                                         
                                        // any other valid types???
                                
@@ -215,9 +215,9 @@ namespace Project {
                        return ret;
                }
                
-               public Gee.ArrayList<string> filesForCompile(string in_path)
+               public Gee.ArrayList<string> filesForCompile(string in_path, bool abspath = true)
                {
-                       var allfiles = this.filesAll(in_path);
+                       var allfiles = this.filesAll(in_path,abspath);
                        var ret =  new Gee.ArrayList<string>();
                        
                        
@@ -292,7 +292,7 @@ namespace Project {
                                                GLib.debug("SKIP %s - .o",fn);
                                                continue;
                                        }
-                                       if ("stamp-h1" == bn)) {
+                                       if ("stamp-h1" == bn) {
                                                GLib.debug("SKIP %s - .o",fn);
                                                continue;
                                        }
@@ -310,7 +310,7 @@ namespace Project {
                                                }
                                        }
                                        
-                                       if (Regex.match_simple("^\\.", GLib.Path.get_basename(fn))) {
+                                       if (Regex.match_simple("^\\.", bn)) {
                                                GLib.debug("SKIP %s - hidden",fn);
                                                continue;
                                        }