string inst_loc;
if(type==TARBALL)
{
- const Tool &tar = toolchain.get_tool("TAR");
+ Tool &tar = toolchain.get_tool("TAR");
list<Target *> files;
for(SourceList::const_iterator i=source_filenames.begin(); i!=source_filenames.end(); ++i)
else if(type==INSTALL)
{
Target *inst = build_graph.get_target("install");
- const Tool © = toolchain.get_tool("CP");
+ Tool © = toolchain.get_tool("CP");
for(SourceList::const_iterator i=source_filenames.begin(); i!=source_filenames.end(); ++i)
{
FileTarget *ft;
}
else if(type==DATAPACK)
{
- const Tool &dcomp = toolchain.get_tool("DATA");
+ Tool &dcomp = toolchain.get_tool("DATA");
list<Target *> files;
for(SourceList::const_iterator i=source_filenames.begin(); i!=source_filenames.end(); ++i)
for(SourceList::const_iterator i=source_filenames.begin(); i!=source_filenames.end(); ++i)
{
string ext = FS::extpart(FS::basename(*i));
- const Tool *tool = toolchain.get_tool_for_suffix(ext, true);
+ Tool *tool = toolchain.get_tool_for_suffix(ext, true);
if(tool)
{
Target *src = tool->create_source(*this, *i);
}
}
- const Tool &linker = toolchain.get_tool("LINK");
+ Tool &linker = toolchain.get_tool("LINK");
list<Target *> results;
if(type==LIBRARY)
{
- const Tool &archiver = toolchain.get_tool("AR");
+ Tool &archiver = toolchain.get_tool("AR");
results.push_back(linker.create_target(objs, "shared"));
results.push_back(archiver.create_target(objs));
}
Package *req = obj.package.get_builder().get_package_manager().find_package(n);
if(req)
obj.requires.push_back(req);
+ else
+ obj.problems.push_back(format("Required package %s not found", n));
}
void Component::Loader::source(const string &s)