using namespace std;
using namespace Msp;
+SharedLibrary::SharedLibrary(Builder &b, const Msp::FS::Path &p):
+ Binary(b, p)
+{
+ libname = FS::basepart(FS::basename(path));
+ if(!libname.compare(0, 3, "lib"))
+ libname = libname.substr(3);
+}
+
SharedLibrary::SharedLibrary(Builder &b, const Component &c, const list<ObjectFile *> &objs):
- FileTarget(b, &c.get_package(), generate_target_path(c)),
Binary(b, c, objs),
- Library(b, &c.get_package(), path, c.get_name()),
+ libname(c.get_name()),
soname(create_soname(c))
-{ }
+{
+ install_location = "lib";
+ if(component->get_type()==Component::MODULE)
+ {
+ install_location += '/';
+ install_location += package->get_name();
+ }
+}
string SharedLibrary::create_soname(const Component &c)
{