Exemplo n.º 1
0
def filemap():
  """Lists the transitive dependencies of targets under the current build root."""
  with EngineInitializer.open_legacy_graph() as (graph, addresses, _):
    for address in addresses:
      target = graph.get_target(address)
      for source in target.sources_relative_to_buildroot():
        print('{} {}'.format(source, target.address.spec))
Exemplo n.º 2
0
def list():
  """Lists the transitive dependencies of targets under the current build root."""
  with EngineInitializer.open_legacy_graph() as (graph, addresses, _):
    for address in addresses:
      print(address)
Exemplo n.º 3
0
def fsnodes():
  """Prints out all of the FilesystemNodes in the Scheduler for debugging purposes."""
  with EngineInitializer.open_legacy_graph() as (_, _, scheduler):
    for node, _ in scheduler.product_graph.completed_nodes():
      if type(node) is FilesystemNode:
        print(node)
Exemplo n.º 4
0
def dependencies():
  """Lists the transitive dependencies of targets under the current build root."""
  with EngineInitializer.open_legacy_graph() as (graph, addresses, _):
    for target in graph.closure([graph.get_target(a) for a in addresses]):
      print(target.address.spec)
Exemplo n.º 5
0
 def setup_legacy_product_graph(self, *specs):
   kwargs = self._make_setup_args(*specs)
   with EngineInitializer.open_legacy_graph(**kwargs) as (_, _, scheduler):
     return scheduler.product_graph
Exemplo n.º 6
0
 def open_scheduler(self, *specs):
     kwargs = self._make_setup_args(*specs)
     with EngineInitializer.open_legacy_graph(**kwargs) as triple:
         yield triple