1 #include "installcomponent.h"
4 #include "sourcepackage.h"
9 InstallComponent::InstallComponent(SourcePackage &p, const string &n):
13 void InstallComponent::create_targets() const
15 Builder &builder = package.get_builder();
16 Target *inst = builder.get_build_graph().get_target("install");
17 Tool © = builder.get_toolchain().get_tool("CP");
19 SourceList source_filenames = collect_source_files();
20 for(SourceList::const_iterator i=source_filenames.begin(); i!=source_filenames.end(); ++i)
22 Target *tgt = builder.get_vfs().get_target(*i);
24 tgt = new File(builder, package, *i);
25 inst->add_dependency(*copy.create_target(*tgt, name));