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(), c.get_package().get_out_dir()/generate_filename(c))
18 for(list<ObjectFile *>::const_iterator i=objs.begin(); i!=objs.end(); ++i)
21 install_location = "lib";
24 string StaticLibrary::generate_filename(const Component &comp)
26 const Architecture &arch = comp.get_package().get_builder().get_current_arch();
27 return arch.get_static_library_patterns().front().apply(comp.get_name());