stderr.printf ("My error: %s\n", message);
} else {
stderr.printf ("%s: My error: %s\n", source.to_string (), message);
- if (verbose_errors) {
- this.report_source (source);
- }
+
+ //Vala.Report.report_source (source);
+
}
}
context.report.enable_warnings = true;
context.metadata_directories = { };
context.gir_directories = {};
- context.erport = new MyReport();
+ context.report = new MyReport();
context.basedir = Posix.realpath (".");
//register_source_file (source_package, source_file);
+ context.add_package ("glib-2.0");
+ context.add_package ("gobject-2.0");
+
//if (context.profile == Vala.Profile.GOBJECT) {
// import the GLib namespace by default (namespace of backend-specific standard library)
var ns_ref = new Vala.UsingDirective (new Vala.UnresolvedSymbol (null, "GLib", null));