2 * Test the writer code...
7 int main (string[] args) {
14 var app = BuilderApplication.singleton( args);
16 if (BuilderApplication.opt_debug || BuilderApplication.opt_compile_project == null) {
17 GLib.Log.set_handler(null,
18 GLib.LogLevelFlags.LEVEL_DEBUG | GLib.LogLevelFlags.LEVEL_WARNING,
20 print("%s: %s\n", dom, msg);
24 if (BuilderApplication.opt_bjs_compile != null) {
26 BuilderApplication.compileBjs();
28 GLib.Process.exit(Posix.EXIT_SUCCESS);
33 if (BuilderApplication.opt_compile_project != null) {
35 Palete.ValaSourceCompiler.buildApplication();
37 GLib.Process.exit(Posix.EXIT_SUCCESS);
42 GLib.debug("project = %s\n", BuilderApplication.opt_compile_project);
47 GtkClutter.init (ref args);
48 new JsRender.Lang_Class();
49 GLib.Log.set_always_fatal(LogLevelFlags.LEVEL_ERROR | LogLevelFlags.LEVEL_CRITICAL);
50 Project.Project.loadAll();
53 // respond to other arguments
55 /*var proj = Project.Project.getProject("Pman.Core");
57 print("could not load test project Pman.Core");
63 var w = Xcls_MainWindow.singleton();
68 // it looks like showall after children causes segfault on ubuntu 14.4
70 w.windowstate.switchState(WindowState.State.FILES);