1 #include "installcomponent.h"
4 #include "sourcepackage.h"
10 InstallComponent::InstallComponent(SourcePackage &p, const string &n):
14 void InstallComponent::create_targets() const
16 Builder &builder = package.get_builder();
17 Target *inst = builder.get_build_graph().get_target("install");
18 Tool © = builder.get_toolchain().get_tool("CP");
20 for(const FS::Path &s: collect_source_files())
22 Target *tgt = builder.get_vfs().get_target(s);
24 tgt = new File(builder, package, s);
25 inst->add_dependency(*copy.create_target(*tgt, name));