Ejemplo n.º 1
0
def GetAllDepsConfigsInOrder(deps_config_paths):
  def GetDeps(path):
    return set(GetDepConfig(path)['deps_configs'])
  return build_utils.GetSortedTransitiveDependencies(deps_config_paths, GetDeps)
Ejemplo n.º 2
0
 def testGetSortedTransitiveDependencies_leavesReverse(self):
     TOP = ['i', 'h', 'g', 'e', 'c']
     EXPECTED = ['a', 'd', 'f', 'i', 'b', 'h', 'g', 'e', 'c']
     actual = build_utils.GetSortedTransitiveDependencies(TOP, _DEPS.get)
     self.assertEqual(EXPECTED, actual)
Ejemplo n.º 3
0
def GetSortedTransitiveDependencies(libraries):
    """Returns all transitive library dependencies in dependency order."""
    return build_utils.GetSortedTransitiveDependencies(libraries,
                                                       GetDependencies)
Ejemplo n.º 4
0
 def testGetSortedTransitiveDependencies_all(self):
     TOP = _DEPS.keys()
     EXPECTED = ['a', 'b', 'c', 'd', 'f', 'e', 'g', 'h', 'i']
     actual = build_utils.GetSortedTransitiveDependencies(TOP, _DEPS.get)
     self.assertEqual(EXPECTED, actual)