-
-string Binary::create_build_signature() const
-{
- set<const Tool *> object_tools;
- for(list<ObjectFile *>::const_iterator i=objects.begin(); i!=objects.end(); ++i)
- object_tools.insert((*i)->get_tool());
-
- list<string> sigs;
- for(set<const Tool *>::const_iterator i=object_tools.begin(); i!=object_tools.end(); ++i)
- sigs.push_back((*i)->create_build_signature(component->get_build_info()));
- sigs.sort();
- sigs.push_front(tool->create_build_signature(component->get_build_info()));
- if(const Architecture *arch = tool->get_architecture())
- sigs.push_front(arch->get_name());
-
- return join(sigs.begin(), sigs.end(), ";");
-}