]> git.tdb.fi Git - builder.git/blobdiff - source/installcomponent.cpp
Refactor transitive dependencies to work on all targets
[builder.git] / source / installcomponent.cpp
diff --git a/source/installcomponent.cpp b/source/installcomponent.cpp
deleted file mode 100644 (file)
index 86919fa..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#include "installcomponent.h"
-#include "builder.h"
-#include "file.h"
-#include "sourcepackage.h"
-#include "tool.h"
-
-using namespace std;
-using namespace Msp;
-
-void InstallComponent::create_targets() const
-{
-       Builder &builder = package.get_builder();
-       Target *inst = builder.get_build_graph().get_target("install");
-       Tool &copy = builder.get_toolchain().get_tool("CP");
-
-       for(const FS::Path &s: collect_source_files())
-       {
-               Target *tgt = builder.get_vfs().get_target(s);
-               if(!tgt)
-                       tgt = new File(builder, package, s);
-               inst->add_dependency(*copy.create_target(*tgt, name));
-       }
-}