src/Builder4/MainWindow.vala
[app.Builder.js] / src / Application.vala
index c17b092..c620466 100644 (file)
@@ -56,6 +56,7 @@
                        { "target", 0, 0, OptionArg.STRING, ref opt_compile_target, "Target to build", null },
                        { "skip-file", 0, 0, OptionArg.STRING, ref opt_compile_skip ,"For test compiles do not add this (usually used in conjunction with add-file ", null },
                        { "add-file", 0, 0, OptionArg.STRING, ref opt_compile_add, "Add this file to compile list", null },
+                       { "output", 0, 0, OptionArg.STRING, ref opt_compile_output, "output binary file path", null },
                        { "debug", 0, 0, OptionArg.NONE, ref opt_debug, "Show debug messages", null },
                        { null }
                };
                public static string opt_compile_target;
                public static string opt_compile_skip;
                public static string opt_compile_add;
+               public static string opt_compile_output;                
                public static bool opt_debug = false;
                
+               public static string _self;
                
                enum Target {
                    INT32,
        
                public BuilderApplication (  string[] args)
                {
+                       
+                       _self = FileUtils.read_link("/proc/self/exe");
+                       GLib.debug("SELF = %s", _self);
+                       
                        Object(
                               application_id: "org.roojs.app-builder",
                                flags: ApplicationFlags.FLAGS_NONE
                
                        return dirname;
                }
-         
+               
        } 
 
-
-       
-