]> git.tdb.fi Git - builder.git/blob - source/staticlibrary.cpp
Remove the buildable flag and instead check for tool being non-null
[builder.git] / source / staticlibrary.cpp
1 #include "component.h"
2 #include "objectfile.h"
3 #include "sourcepackage.h"
4 #include "staticlibrary.h"
5
6 using namespace std;
7
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()),
11         comp(c)
12 {
13         for(list<ObjectFile *>::const_iterator i=objs.begin(); i!=objs.end(); ++i)
14                 add_depend(*i);
15
16         install_location = "lib";
17 }
18
19 Msp::FS::Path StaticLibrary::generate_target_path(const Component &c)
20 {
21         return c.get_package().get_out_dir()/("lib"+c.get_name()+".a");
22 }