3 This file is part of builder
4 Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
10 #include "objectfile.h"
11 #include "sourcepackage.h"
12 #include "staticlibrary.h"
16 StaticLibrary::StaticLibrary(Builder &b, const Component &c, const list<ObjectFile *> &objs):
17 FileTarget(b, &c.get_package(), generate_target_path(c)),
18 Library(b, package, path, c.get_name()),
22 for(list<ObjectFile *>::const_iterator i=objs.begin(); i!=objs.end(); ++i)
26 Action *StaticLibrary::create_action()
28 return new Archive(builder, *this);
31 Msp::FS::Path StaticLibrary::generate_target_path(const Component &c)
33 return c.get_package().get_out_dir()/("lib"+c.get_name()+".a");