]> git.tdb.fi Git - builder.git/blobdiff - source/staticlibrary.cpp
Refactor transitive dependencies to work on all targets
[builder.git] / source / staticlibrary.cpp
diff --git a/source/staticlibrary.cpp b/source/staticlibrary.cpp
deleted file mode 100644 (file)
index 56d857e..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
-#include "archive.h"
-#include "component.h"
-#include "objectfile.h"
-#include "sourcepackage.h"
-#include "staticlibrary.h"
-
-using namespace std;
-
-StaticLibrary::StaticLibrary(Builder &b, const Component &c, const std::list<ObjectFile *> &objs):
-       Target(b, &c.get_package(), generate_target_name(c)),
-       comp(c)
-{
-       buildable=true;
-       for(list<ObjectFile *>::const_iterator i=objs.begin(); i!=objs.end(); ++i)
-               add_depend(*i);
-}
-
-Action *StaticLibrary::build()
-{
-       return Target::build(new Archive(builder, *this));;
-}
-
-string StaticLibrary::generate_target_name(const Component &c)
-{
-       return (c.get_package().get_out_dir()/("lib"+c.get_name()+".a")).str();
-}