]> git.tdb.fi Git - builder.git/blobdiff - source/datacollection.cpp
Refactor transitive dependencies to work on all targets
[builder.git] / source / datacollection.cpp
diff --git a/source/datacollection.cpp b/source/datacollection.cpp
deleted file mode 100644 (file)
index 28f90c8..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#include <msp/fs/utils.h>
-#include "component.h"
-#include "datacollection.h"
-#include "datatransform.h"
-#include "sourcepackage.h"
-
-using namespace Msp;
-
-DataCollection::DataCollection(Builder &b, const Component &c, DataTransform &s):
-       FileTarget(b, c.get_package(), generate_target_path(c, s.get_path())),
-       source(s)
-{
-       component = &c;
-       add_dependency(source);
-}
-
-Msp::FS::Path DataCollection::generate_target_path(const Component &comp, const Msp::FS::Path &src)
-{
-       return comp.get_package().get_temp_directory()/comp.get_name()/(FS::basepart(FS::basename(src))+".mdc");
-}