- const StringList &sources = comp.get_sources();
- for(StringList::const_iterator i=sources.begin(); i!=sources.end(); ++i)
- install_map[*i] = "include/"+comp.get_name();
-}
-
-void SourcePackage::Loader::if_arch(const string &cond)
-{
- const Architecture &arch = obj.builder.get_current_arch();
- bool negate = (cond[0]=='!');
- bool match = (arch.match_name(cond.substr(negate))!=negate);
- obj.builder.get_logger().log("configure", format("%s: arch %s %smatched", obj.name, cond, (match ? "" : "not ")));
- if(match)
- load_sub_with(*this);
+ 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();