Exemple #1
0
void Package::addDependencyParents(const char *path, const char *postfix,
                                   DependencyGraph::KindOf kindOf) {
  vector<string> files;
  findFiles(files, path, postfix);
  DependencyGraphPtr dep = m_ar->getDependencyGraph();
  int rootSize = m_root.size();
  for (unsigned int i = 0; i < files.size(); i++) {
    const string &file = files[i];
    ASSERT(file.substr(0, rootSize) == m_root);
    dep->addParent(kindOf, "", file.substr(rootSize), ConstructPtr());
  }
}