2 #include "objectfile.h"
3 #include "sourcepackage.h"
4 #include "staticlibrary.h"
8 StaticLibrary::StaticLibrary(Builder &b, const Component &c, const list<ObjectFile *> &objs):
9 FileTarget(b, &c.get_package(), generate_target_path(c)),
10 Library(b, package, path, c.get_name())
13 for(list<ObjectFile *>::const_iterator i=objs.begin(); i!=objs.end(); ++i)
16 install_location = "lib";
19 Msp::FS::Path StaticLibrary::generate_target_path(const Component &c)
21 return c.get_package().get_out_dir()/("lib"+c.get_name()+".a");