X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fobjectfile.cpp;h=c0a233f56d8f51fe3d916ec4c70776330314d7ed;hb=4d0d003b022943d8a0e39ba19078bab8d32d8857;hp=02f1ba5cb653aa558cbbb304e9d88d92df5ccfdc;hpb=445edbc3c42bbd7880cc414cf153ddfd196bfc1c;p=builder.git diff --git a/source/objectfile.cpp b/source/objectfile.cpp index 02f1ba5..c0a233f 100644 --- a/source/objectfile.cpp +++ b/source/objectfile.cpp @@ -1,11 +1,18 @@ +/* $Id$ + +This file is part of builder +Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #include #include "builder.h" #include "compile.h" #include "component.h" #include "install.h" #include "objectfile.h" -#include "package.h" #include "sourcefile.h" +#include "sourcepackage.h" using namespace std; using namespace Msp; @@ -87,5 +94,5 @@ void ObjectFile::add_depend(Target *tgt) string ObjectFile::generate_target_name(const Component &comp, const string &src) { - return (comp.get_package().get_temp_dir()/comp.get_name()/(Path::splitext(src.substr(src.rfind('/')+1)).base+".o")).str(); + return (comp.get_package().get_temp_dir()/comp.get_name()/(splitext(basename(src)).base+".o")).str(); }