projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0cfa335
)
src/Palete/ValaSource.vala
author
Alan Knowles
<alan@roojs.com>
Thu, 28 May 2015 05:14:50 +0000
(13:14 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 28 May 2015 05:14:50 +0000
(13:14 +0800)
src/Palete/ValaSource.vala
patch
|
blob
|
history
diff --git
a/src/Palete/ValaSource.vala
b/src/Palete/ValaSource.vala
index
1741d34
..
a74e22b
100644
(file)
--- a/
src/Palete/ValaSource.vala
+++ b/
src/Palete/ValaSource.vala
@@
-204,13
+204,23
@@
namespace Palete {
if (this.compiler != null) {
return;
}
if (this.compiler != null) {
return;
}
- var
gproj
= (Project.Gtk)(file.project);
+ var
pr
= (Project.Gtk)(file.project);
- var m = gproj.firstBuildModule();
- var cg = gproj.compilegroups.get(m);
+ var m = pr.firstBuildModule();
+ var cg = pr.compilegroups.get(m);
+ var foundit = false;
for (var i = 0; i < cg.sources.size; i++) {
for (var i = 0; i < cg.sources.size; i++) {
-
+ var path = pr.resolve_path(
+ pr.resolve_path_combine_path(pr.firstPath(),cg.sources.get(i)));
+ if (path == file.path) {
+ foundit = true;
+ break;
+ }
+ }
+ if (!foundit) {
+ return; // do not run the compile..
+ }
// is the file in the module?
// is the file in the module?
@@
-231,7
+241,7
@@
namespace Palete {
args += "--project";
args += file.project.fn;
args += "--target";
args += "--project";
args += file.project.fn;
args += "--target";
- args +=
gproj
.firstBuildModule();
+ args +=
pr
.firstBuildModule();
args += "--add-file";
args += tmpfile.get_path();
args += "--skip-file";
args += "--add-file";
args += tmpfile.get_path();
args += "--skip-file";