X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstaticlibrary.cpp;h=56d857e02a1aa049fa4713faea44748223ea6f3a;hb=654de39b62a9a58fd8e1b5a557361d628345788b;hp=df0cc7cb5811e9b2386f7fa398d9356a91ab1906;hpb=4fcc283a4bb1f695bd124006906bcdaba053193f;p=builder.git diff --git a/source/staticlibrary.cpp b/source/staticlibrary.cpp index df0cc7c..56d857e 100644 --- a/source/staticlibrary.cpp +++ b/source/staticlibrary.cpp @@ -1,7 +1,14 @@ +/* $Id$ + +This file is part of builder +Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #include "archive.h" #include "component.h" #include "objectfile.h" -#include "package.h" +#include "sourcepackage.h" #include "staticlibrary.h" using namespace std; @@ -22,5 +29,5 @@ Action *StaticLibrary::build() string StaticLibrary::generate_target_name(const Component &c) { - return (c.get_package().get_source()/("lib"+c.get_name()+".a")).str(); + return (c.get_package().get_out_dir()/("lib"+c.get_name()+".a")).str(); }