]> git.tdb.fi Git - builder.git/blobdiff - source/sharedlibrary.cpp
Rework the Target class hierarchy
[builder.git] / source / sharedlibrary.cpp
index 25034f3fcd0245bf1a8d848f81d8fba413744c09..5c2d26fea27f799521c6697fc3803db959ea23f4 100644 (file)
@@ -6,13 +6,13 @@ Distributed under the LGPL
 */
 
 #include "component.h"
-#include "package.h"
 #include "sharedlibrary.h"
+#include "sourcepackage.h"
 
 using namespace std;
 
 SharedLibrary::SharedLibrary(Builder &b, const Component &c, const list<ObjectFile *> &objs):
-       Executable(b, c, objs),
-       libname(c.get_name())
+       FileTarget(b, &c.get_package(), generate_target_path(c)),
+       Binary(b, c, objs),
+       Library(b, &c.get_package(), path, c.get_name())
 { }
-