#include "tool.h"
using namespace std;
+using namespace Msp;
InstallComponent::InstallComponent(SourcePackage &p, const string &n):
Component(p, n)
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));
}
}