+ FileTarget *file = dynamic_cast<FileTarget *>(*i);
+ if(file && file->get_package()==tpkg && FS::descendant_depth(file->get_path(), tpkg->get_source())>=0)
+ {
+ FS::Path displaced = tgt->get_path()/FS::relative(file->get_path(), rtgt->get_path());
+ if(Target *ddep = builder.get_vfs().get_target(displaced))
+ deps_to_add.push_back(ddep);
+ }
+ else
+ deps_to_add.push_back(*i);