]> git.tdb.fi Git - builder.git/blobdiff - source/staticlibrary.cpp
Move the Component reference to Target and make it a pointer
[builder.git] / source / staticlibrary.cpp
index b7e4eff1d43941391393986f92c1acecd1bdab43..45ec3df5b64a0251ae00506706f7b4ae81314de6 100644 (file)
@@ -1,11 +1,3 @@
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
-#include "archive.h"
 #include "component.h"
 #include "objectfile.h"
 #include "sourcepackage.h"
@@ -15,17 +7,13 @@ using namespace std;
 
 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)