projects
/
roobuilder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6c9534
)
src/Palete/ValaCompileRequest.vala
author
Alan Knowles
<alan@roojs.com>
Sat, 20 Jan 2024 14:42:34 +0000
(22:42 +0800)
committer
Alan Knowles
<alan@roojs.com>
Sat, 20 Jan 2024 14:42:34 +0000
(22:42 +0800)
src/Palete/ValaCompileRequest.vala
patch
|
blob
|
history
diff --git
a/src/Palete/ValaCompileRequest.vala
b/src/Palete/ValaCompileRequest.vala
index
6a6b1fa
..
021b4b8
100644
(file)
--- a/
src/Palete/ValaCompileRequest.vala
+++ b/
src/Palete/ValaCompileRequest.vala
@@
-51,11
+51,23
@@
namespace Palete {
GLib.debug("Failed to run ninja");
return;
}
+ return this.runApp();
+
+
return true;
}
async int runMeson() {
-
+ if (GLib.FileUtils.test(this.project.path + "/build", GLib.FileTest.EXISTS)) {
+ return 0; //assume it's been set up.
+ }
+ string[] args = { "/usr/bin/meson" ,"setup","build", "--prefix=/" };
+
+ var meson = new Spawn(pr.path , args);
+ meson.output_line.connect(this.onOutput);
+ yield var res = meson.run_async();
+ return res;
+
}