X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Finstallcomponent.cpp;h=86919fa3255ca484f760fd9fb6013d5a2e8686a4;hb=451ef4f33b5a57dcb56bd7cb671bed359ac86247;hp=ed3c191cd7769a1cb95ca77d5f2fb99adab9a41d;hpb=276a7c7c046a8f1b692cecbd53f17595ed23264d;p=builder.git diff --git a/source/installcomponent.cpp b/source/installcomponent.cpp index ed3c191..86919fa 100644 --- a/source/installcomponent.cpp +++ b/source/installcomponent.cpp @@ -5,10 +5,7 @@ #include "tool.h" using namespace std; - -InstallComponent::InstallComponent(SourcePackage &p, const string &n): - Component(p, n) -{ } +using namespace Msp; void InstallComponent::create_targets() const { @@ -16,12 +13,11 @@ void InstallComponent::create_targets() const Target *inst = builder.get_build_graph().get_target("install"); Tool © = builder.get_toolchain().get_tool("CP"); - SourceList source_filenames = collect_source_files(); - for(SourceList::const_iterator i=source_filenames.begin(); i!=source_filenames.end(); ++i) + for(const FS::Path &s: collect_source_files()) { - Target *tgt = builder.get_vfs().get_target(*i); + Target *tgt = builder.get_vfs().get_target(s); if(!tgt) - tgt = new File(builder, package, *i); + tgt = new File(builder, package, s); inst->add_dependency(*copy.create_target(*tgt, name)); } }