summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a494b02)
raw | patch | inline | side by side (parent: a494b02)
author | ishmal <ishmal@users.sourceforge.net> | |
Fri, 25 Apr 2008 20:45:37 +0000 (20:45 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Fri, 25 Apr 2008 20:45:37 +0000 (20:45 +0000) |
buildtool.cpp | patch | blob | history |
diff --git a/buildtool.cpp b/buildtool.cpp
index f0237afaafafca7c9f88b4b376cf106a5f9f6afe..ead2e8da0fb414ba30211202c245d127531b603e 100644 (file)
--- a/buildtool.cpp
+++ b/buildtool.cpp
{
error("tag <%s> not allowed in <fileset>", tagName.c_str());
return false;
- }
+ }
}
String dir;
TaskCC(MakeBase &par) : Task(par)
{
type = TASK_CC;
- name = "cc";
+ name = "cc";
ccCommand = "gcc";
cxxCommand = "g++";
source = ".";
String fname = excludeInc[i];
if (fname == dirname)
return true;
- }
+ }
return false;
- }
+ }
virtual bool execute()
{
/**
* Compile each of the C files that need it
*/
- bool errorOccurred = false;
+ bool errorOccurred = false;
std::vector<String> cfiles;
for (viter=deps.begin() ; viter!=deps.end() ; viter++)
{
fprintf(f, "\n");
fprintf(f, "#### STDOUT ###\n%s\n", outString.c_str());
fprintf(f, "#### STDERR ###\n%s\n\n", errString.c_str());
+ fflush(f);
}
if (!ret)
{
return !errorOccurred;
}
+
virtual bool parse(Element *elem)
{
String s;
cmd.append(" -target ");
cmd.append(target);
cmd.append(" ");
- }
- String fname = "javalist.btool";
- FILE *f = fopen(fname.c_str(), "w");
- int count = 0;
+ }
+ String fname = "javalist.btool";
+ FILE *f = fopen(fname.c_str(), "w");
+ int count = 0;
for (unsigned int i=0 ; i<fileList.size() ; i++)
{
String fname = fileList[i];
{
taskstatus("nothing to do");
return true;
- }
+ }
taskstatus("compiling %d files", count);