3 #include "objectfile.h"
4 #include "sourcepackage.h"
5 #include "staticlibrary.h"
9 StaticLibrary::StaticLibrary(Builder &b, const Component &c, const list<ObjectFile *> &objs):
10 FileTarget(b, &c.get_package(), generate_target_path(c)),
11 Library(b, package, path, c.get_name()),
15 for(list<ObjectFile *>::const_iterator i=objs.begin(); i!=objs.end(); ++i)
19 Action *StaticLibrary::create_action()
21 return new Archive(builder, *this);
24 Msp::FS::Path StaticLibrary::generate_target_path(const Component &c)
26 return c.get_package().get_out_dir()/("lib"+c.get_name()+".a");