{
for(list<ObjectFile *>::const_iterator i=objs.begin(); i!=objs.end(); ++i)
add_depend(*i);
-
- if(c.get_type()==Component::LIBRARY)
- install_location = "lib";
- else if(c.get_type()==Component::MODULE)
- install_location = "lib/"+package->get_name();
- else if(c.get_type()==Component::PROGRAM)
- install_location = "bin";
}
void Binary::find_depends()
Executable::Executable(Builder &b, const Component &c, const std::list<ObjectFile *> &objs):
FileTarget(b, &c.get_package(), generate_target_path(c)),
Binary(b, c, objs)
-{ }
+{
+ install_location = "bin";
+}
Binary(b, c, objs),
Library(b, &c.get_package(), path, c.get_name()),
soname(create_soname(c))
-{ }
+{
+ install_location = "lib";
+ if(comp.get_type()==Component::MODULE)
+ {
+ install_location += '/';
+ install_location += package->get_name();
+ }
+}
string SharedLibrary::create_soname(const Component &c)
{