3 #include "objectfile.h"
4 #include "sourcepackage.h"
5 #include "staticlibrary.h"
10 StaticLibrary::StaticLibrary(Builder &b, const FS::Path &p):
14 StaticLibrary::StaticLibrary(Builder &b, const Component &c, const list<ObjectFile *> &objs):
15 FileTarget(b, &c.get_package(), generate_target_path(c))
18 for(list<ObjectFile *>::const_iterator i=objs.begin(); i!=objs.end(); ++i)
21 install_location = "lib";
24 Msp::FS::Path StaticLibrary::generate_target_path(const Component &c)
26 const Architecture &arch = c.get_package().get_builder().get_current_arch();
27 return c.get_package().get_out_dir()/
28 arch.get_static_library_patterns().front().apply(c.get_name());