parameters: (self, spec)
return_statement: return (gyp.common.uniquer(deps), gyp.common.uniquer(link_deps))
docstring: Compute the dependencies of a gyp spec.
  
      Returns a tuple (deps, link_deps), where each is a list of
      filenames that will need to be put in front of make for either
      building (deps) or linking (link_deps).
docstring_summary: Compute the dependencies of a gyp spec.
docstring_tokens: Compute the dependencies of a gyp spec .
function: def ComputeDeps(self, spec):
      """Compute the dependencies of a gyp spec.
  
      Returns a tuple (deps, link_deps), where each is a list of
      filenames that will need to be put in front of make for either
      building (deps) or linking (link_deps).
      """
      deps = []
      link_deps = []
      if 'dependencies' in spec:
        deps.extend([target_outputs[dep] for dep in spec['dependencies']
                     if target_outputs[dep]])
        for dep in spec['dependencies']:
          if dep in target_link_deps:
            link_deps.append(target_link_deps[dep])
        deps.extend(link_deps)
        # TODO: It seems we need to transitively link in libraries (e.g. -lfoo)?
        # This hack makes it work:
        # link_deps.extend(spec.get('libraries', []))
      return (gyp.common.uniquer(deps), gyp.common.uniquer(link_deps))
function_tokens: def ComputeDeps ( self , spec ) : deps = [ ] link_deps = [ ] if 'dependencies' in spec : deps . extend ( [ target_outputs [ dep ] for dep in spec [ 'dependencies' ] if target_outputs [ dep ] ] ) for dep in spec [ 'dependencies' ] : if dep in target_link_deps : link_deps . append ( target_link_deps [ dep ] ) deps . extend ( link_deps ) # TODO: It seems we need to transitively link in libraries (e.g. -lfoo)? # This hack makes it work: # link_deps.extend(spec.get('libraries', [])) return ( gyp . common . uniquer ( deps ) , gyp . common . uniquer ( link_deps ) )