{
string[] ret = {};
var sources = this.compilegroups.get("_default_").sources;
- //ret += this.firstPath(); << might not be needed?
+ ret += this.firstPath();
for(var i =0; i< sources.size; i++) {
var path = this.resolve_path( this.firstPath(), sources.get(i));
-
+ if (path == this.firstPath()) {
+ continue;
+ }
if (Path.get_basename (path) == "vapi") {
continue;
public Gee.ArrayList<string> sources; // list of files+dirs (relative to project)
public string target_bin;
-
+ public string execute_args;
+
+
public GtkValaSettings(string name)
{
this.name = name;
this.target_bin = "";
this.packages = new Gee.ArrayList<string>();
this.sources = new Gee.ArrayList<string>();
+ this.execute_args = "";
}
this.name = el.get_string_member("name");
this.compile_flags = el.get_string_member("compile_flags");
+ if ( el.has_member("execute_args")) {
+ this.execute_args = el.get_string_member("execute_args");
+ } else {
+ this.execute_args = "";
+ }
this.target_bin = el.get_string_member("target_bin");
// sources and packages.
this.sources = this.readArray(el.get_array_member("sources"));
this.packages = this.readArray(el.get_array_member("packages"));
-
+
}
// why not array of strings?
var ret = new Json.Object();
ret.set_string_member("name", this.name);
ret.set_string_member("compile_flags", this.compile_flags);
+ ret.set_string_member("execute_args", this.execute_args);
ret.set_string_member("target_bin", this.target_bin);
ret.set_array_member("sources", this.writeArray(this.sources));
ret.set_array_member("packages", this.writeArray(this.packages));