X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finstallcomponent.cpp;h=ed3c191cd7769a1cb95ca77d5f2fb99adab9a41d;hb=HEAD;hp=86919fa3255ca484f760fd9fb6013d5a2e8686a4;hpb=451ef4f33b5a57dcb56bd7cb671bed359ac86247;p=builder.git diff --git a/source/installcomponent.cpp b/source/installcomponent.cpp deleted file mode 100644 index 86919fa..0000000 --- a/source/installcomponent.cpp +++ /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 © = 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)); - } -}