]> git.tdb.fi Git - builder.git/blobdiff - source/binary.cpp
Tool names are no longer retrieved from Architecture
[builder.git] / source / binary.cpp
index d73c59450f97501bcab4d32554fc33f9ef8724ce..b8445c14079c8e73946862aa1d34e4d4954cbd4d 100644 (file)
@@ -16,9 +16,15 @@ Binary::Binary(Builder &b, const Component &c, const list<ObjectFile *> &objs):
        FileTarget(b, &c.get_package(), generate_target_path(c)),
        comp(c)
 {
-       buildable = true;
        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()