X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=src%2FProject%2FGtk.vala;h=bccbfb9be4b05f55cf7a77ca1eb763b20a39e3ba;hb=7bacc8bb5d29aa9fa7de206fb7432968267dd880;hp=983bc3c9087f4ad1c61500c59cca9ad6414db9c6;hpb=f283dd2c5d7f514fadc53ab6beaef0a35cca8fa4;p=roobuilder diff --git a/src/Project/Gtk.vala b/src/Project/Gtk.vala index 983bc3c90..bccbfb9be 100644 --- a/src/Project/Gtk.vala +++ b/src/Project/Gtk.vala @@ -39,7 +39,9 @@ namespace Project public Gee.HashMap> child_list_cache; // what child can on on what node public Gee.HashMap> child_list_cache_props; // what child can go on what node (with properties included) - public string compile_flags = ""; // generic to all. + public string compile_flags = ""; // generic to all. + public bool generate_meson = false; + public Gee.ArrayList packages; // list of vapi's that are used by this project. //pblic Gee.ArrayList hidden; // list of dirs to be hidden from display... @@ -157,7 +159,9 @@ namespace Project public override void onSave() { - this.meson.save(); + if (this.generate_meson) { + this.meson.save(); + } var vl = this.language_servers.get("vala"); if (vl != null) { vl.initialize_server(); // hopefully better than exit? @@ -252,6 +256,8 @@ namespace Project // ------------------ new project stufff public override void initialize() { + this.generate_meson = true; // default to true on new projects. + string[] dirs = { "src", "src/ui"