/* $Id$
This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
+Copyright © 2006-2010 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
#include "sharedlibrary.h"
#include "sourcepackage.h"
#include "staticlibrary.h"
+#include "symlink.h"
#include "tarball.h"
#include "target.h"
Target *inst_tgt = builder.get_target("install");
for(list<FileTarget *>::const_iterator i=inst_list.begin(); i!=inst_list.end(); ++i)
- inst_tgt->add_depend(new Install(builder, pkg, **i, inst_loc));
+ {
+ Install *inst = new Install(builder, pkg, **i, inst_loc);
+ inst_tgt->add_depend(inst);
+
+ if(type==LIBRARY)
+ if(SharedLibrary *shlib = dynamic_cast<SharedLibrary *>(*i))
+ inst_tgt->add_depend(new Symlink(builder, pkg, *inst, shlib->get_name()));
+ }
}
PathList Component::collect_source_files() const