1 #include <msp/path/utils.h>
4 #include "objectfile.h"
6 #include "sourcefile.h"
11 ObjectFile::ObjectFile(Builder &b, const Component &c, SourceFile &src):
12 Target(b, &c.get_package(), generate_target_name(c, src.get_name())),
18 string ObjectFile::generate_target_name(const Component &comp, const string &src)
20 return (comp.get_package().get_source()/"temp"/comp.get_name()/(Path::splitext(src.substr(src.rfind('/')+1)).base+".o")).str();