1
0
forked from 0ad/0ad

Made CxxTest work a bit more on Linux

This was SVN commit r4438.
This commit is contained in:
Ykkrosh 2006-09-30 18:47:24 +00:00
parent a2432adad3
commit 2763d3a311
3 changed files with 3 additions and 2 deletions

0
build/bin/cxxtestgen.pl Normal file → Executable file
View File

View File

@ -20,7 +20,7 @@ if OS == "windows" then
project.nasmpath = "../../build/bin/nasm.exe"
project.cxxtestpath = "../../build/bin/cxxtestgen.exe"
else
project.cxxtestpath = "../../build/bin/cxxtestgen"
project.cxxtestpath = "../../build/bin/cxxtestgen.pl"
end
source_root = "../../../source/" -- default for most projects - overridden by local in others

View File

@ -432,6 +432,7 @@ static const char* listCppTargets(const char* name)
}
else if (prj_is_kind("cxxtestgen"))
{
const char *cxxtestpath = prj_get_cxxtestpath(); // must be called before path_swapex because of shared buffer
const char *target_name=path_swapextension(name, ".h", ".cpp");
sprintf(g_buffer,
"%s: %s\n"
@ -439,7 +440,7 @@ static const char* listCppTargets(const char* name)
"\t%s%s --part -o %s %s\n", target_name, name,
g_verbose?"":"\t@echo $(notdir $<)\n",
g_verbose?"":"@",
"cxxtestgen", target_name, name);
cxxtestpath, target_name, name);
return g_buffer;
}