X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftool.cpp;h=377dc7f4bc0813ae095ede177bbaf004512244de;hb=bc6d4c540e7132c829dd558ca9d8acfbde7d71e1;hp=44255a1eb5ca692fe1fc03461cd63e4d422eca61;hpb=5ccb12706ac217a7f0b07e4c73ca870bb70fabdf;p=builder.git diff --git a/source/tool.cpp b/source/tool.cpp index 44255a1..377dc7f 100644 --- a/source/tool.cpp +++ b/source/tool.cpp @@ -1,7 +1,9 @@ #include +#include #include #include "architecture.h" #include "builder.h" +#include "filetarget.h" #include "tool.h" using namespace std; @@ -66,6 +68,14 @@ void Tool::prepare() } } +string Tool::create_build_signature(const BuildInfo &) const +{ + if(executable) + return format("%s=%s", tag, FS::basename(executable->get_path())); + else + return string(); +} + SubTool::SubTool(Tool &p): Tool(p),