- const Target::Dependencies &world_deps = builder.get_target("world")->get_dependencies();
- for(UseList::const_iterator i=uses.begin(); i!=uses.end(); ++i)
- {
- /* The world target depends on all primary targets; look for the
- static library belonging to the component. This is a bit roundabout
- way but gets the job done. */
- bool found = false;
- for(Target::Dependencies::const_iterator j=world_deps.begin(); j!=world_deps.end(); ++j)
- if((*j)->get_component()==*i && dynamic_cast<StaticLibrary *>(*j))
- {
- results.front()->add_dependency(**j);
- found = true;
- break;
- }
- if(!found)
- builder.problem(package.get_name(), format("Can't find static library %s for component %s", (*i)->get_name(), name));
- }
-