]> git.tdb.fi Git - builder.git/blobdiff - source/datapack.cpp
Refactor transitive dependencies to work on all targets
[builder.git] / source / datapack.cpp
diff --git a/source/datapack.cpp b/source/datapack.cpp
deleted file mode 100644 (file)
index 713120f..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-#include "component.h"
-#include "datapack.h"
-#include "sourcepackage.h"
-
-using namespace std;
-
-DataPack::DataPack(Builder &b, const Component &c, const vector<FileTarget *> &f):
-       FileTarget(b, c.get_package(), generate_target_path(c)),
-       files(f)
-{
-       component = &c;
-       for(FileTarget *t: files)
-               add_dependency(*t);
-
-       install_location = Msp::FS::Path("share")/package->get_name();
-}
-
-Msp::FS::Path DataPack::generate_target_path(const Component &comp)
-{
-       return comp.get_package().get_output_directory()/(comp.get_name()+".mdp");
-}