src/Builder4/config1.builder
[app.Builder.js] / src / Palete / ValaSourceCompiler.vala
index b4c8be4..b245230 100644 (file)
@@ -227,7 +227,9 @@ namespace Palete {
                
                        context.experimental = false;
                        context.experimental_non_null = false;
-#if VALA_0_30
+#if VALA_0_32
+                       var ver=32;
+#elif VALA_0_30
                        var ver=30;
 #elif VALA_0_28
                        var ver=28;
@@ -270,10 +272,10 @@ namespace Palete {
                        this.report = new ValaSourceReport(this.original_filepath, this.filepath);
                        context.report = this.report;
                        
-                       //valac += " -b  /tmp ";
-                       context.basedir = Posix.realpath (".");
+                       valac += " -b  " + GLib.Environment.get_home_dir() + " ";
+                       context.basedir = GLib.Environment.get_home_dir(); //Posix.realpath (".");
                
-                       context.directory = context.basedir;
+                       context.directory = null; //??? causes target to end up in the right place at present..
                
 
                        // add default packages:
@@ -337,6 +339,8 @@ namespace Palete {
                                        
                                }
                        }
+                       
+                       // print("%s\n", valac); -
                        // default.. packages..
                        context.add_external_package ("glib-2.0"); 
                        context.add_external_package ("gobject-2.0");
@@ -417,11 +421,10 @@ namespace Palete {
                        var cc_command = Environment.get_variable ("CC");
                        
                        
-                       string [] q = { "-lm" };
-                       valac += " -X -lm";
-                       
+                       string [] cc_options = { "-lm", "-pg" };
+                       valac += " -X -lm -X -pg";
                        
-#if VALA_0_28 || VALA_0_30
+#if VALA_0_28 || VALA_0_30 || VALA_0_32
                        var pkg_config_command = Environment.get_variable ("PKG_CONFIG");
                        ccompiler.compile (context, cc_command, cc_options, pkg_config_command);
 #else