]> 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 556ee54..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#include "component.h"
-#include "objectfile.h"
-#include "sourcepackage.h"
-#include "staticlibrary.h"
-
-using namespace std;
-using namespace Msp;
-
-StaticLibrary::StaticLibrary(Builder &b, const FS::Path &p):
-       FileTarget(b, 0, p)
-{ }
-
-StaticLibrary::StaticLibrary(Builder &b, const Component &c, const list<ObjectFile *> &objs):
-       FileTarget(b, &c.get_package(), generate_target_path(c))
-{
-       component = &c;
-       for(list<ObjectFile *>::const_iterator i=objs.begin(); i!=objs.end(); ++i)
-               add_depend(*i);
-
-       install_location = "lib";
-}
-
-Msp::FS::Path StaticLibrary::generate_target_path(const Component &c)
-{
-       return c.get_package().get_out_dir()/("lib"+c.get_name()+".a");
-}