- IO::print("%s: Note: headers components are deprecated\n", get_source());
- Component comp(obj, Component::LIBRARY, n);
- load_sub(comp);
- const Component::SourceList &sources = comp.get_sources();
- for(Component::SourceList::const_iterator i=sources.begin(); i!=sources.end(); ++i)
- install_map[i->str()] = "include/"+comp.get_name();
-}
-
-void SourcePackage::Loader::if_feature(const string &cond)
-{
- bool match = obj.match_feature(cond);
- obj.builder.get_logger().log("configure", format("%s: feature %s %smatched", obj.name, cond, (match ? "" : "not ")));
- if(match)
- load_sub_with(*this);
+ SourceGenerator *gen = new SourceGenerator(obj.builder, obj, tag);
+ load_sub(*gen);
+ obj.local_tools.add_tool(gen);