Made CxxTest work a bit more on Linux
This was SVN commit r4438.
This commit is contained in:
parent
a2432adad3
commit
2763d3a311
0
build/bin/cxxtestgen.pl
Normal file → Executable file
0
build/bin/cxxtestgen.pl
Normal file → Executable 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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user