]> git.tdb.fi Git - builder.git/blobdiff - source/datacollection.cpp
Fix DataCollection dependencies
[builder.git] / source / datacollection.cpp
index 28f90c81369a0706fea8ca0e8e4eda7db0407e2d..66e9a042012b9d797cfa866b3a70cd3c7b16da86 100644 (file)
@@ -18,3 +18,11 @@ Msp::FS::Path DataCollection::generate_target_path(const Component &comp, const
 {
        return comp.get_package().get_temp_directory()/comp.get_name()/(FS::basepart(FS::basename(src))+".mdc");
 }
+
+void DataCollection::find_dependencies()
+{
+       source.prepare();
+       const Target::Dependencies &tdeps = source.get_transitive_dependencies();
+       for(Target::Dependencies::const_iterator i=tdeps.begin(); i!=tdeps.end(); ++i)
+               add_dependency(**i);
+}