-#include "archive.h"
#include "component.h"
#include "objectfile.h"
#include "sourcepackage.h"
StaticLibrary::StaticLibrary(Builder &b, const Component &c, const list<ObjectFile *> &objs):
FileTarget(b, &c.get_package(), generate_target_path(c)),
- Library(b, package, path, c.get_name()),
- comp(c)
+ Library(b, package, path, c.get_name())
{
- buildable = true;
+ component = &c;
for(list<ObjectFile *>::const_iterator i=objs.begin(); i!=objs.end(); ++i)
add_depend(*i);
-}
-Action *StaticLibrary::create_action()
-{
- return new Archive(builder, *this);
+ install_location = "lib";
}
Msp::FS::Path StaticLibrary::generate_target_path(const Component &c)