Example #1
0
def GetAllDepsConfigsInOrder(deps_config_paths):
  def GetDeps(path):
    return set(GetDepConfig(path)['deps_configs'])
  return build_utils.GetSortedTransitiveDependencies(deps_config_paths, GetDeps)
Example #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)
def GetSortedTransitiveDependencies(libraries):
    """Returns all transitive library dependencies in dependency order."""
    return build_utils.GetSortedTransitiveDependencies(libraries,
                                                       GetDependencies)
Example #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)