def _GenerateOutputDeprecated(target_list, target_dicts, data, params, config):
  toplevel_dir = _ToGypPath(os.path.abspath(params['options'].toplevel_dir))

  if _WasGypIncludeFileModified(params, config.files):
    result_dict = { 'status': all_changed_string,
                    'targets': list(config.targets) }
    _WriteOutput(params, **result_dict)
    return

  all_targets, matching_targets, root_targets = _GenerateTargets(
    data, target_list, target_dicts, toplevel_dir, frozenset(config.files),
    params['build_files'])

  unqualified_mapping, invalid_targets = _GetUnqualifiedToTargetMapping(
    all_targets, config.targets)

  if matching_targets:
    search_targets = _LookupTargets(config.targets, unqualified_mapping)
    print 'supplied targets'
    for target in config.targets:
      print '\t', target
    print 'expanded supplied targets'
    for target in search_targets:
      print '\t', target.name
    # Reset the visited status for _GetBuildTargets.
    for target in all_targets.itervalues():
      target.visited = False
    build_targets = _GetBuildTargetsDeprecated(matching_targets, search_targets)
    build_targets = [gyp.common.ParseQualifiedTarget(target.name)[1]
                     for target in build_targets]
  else:
    build_targets = []

  result_dict = { 'targets': build_targets,
                  'status': found_dependency_string if matching_targets else
                            no_dependency_string,
                  'build_targets': build_targets}
  if invalid_targets:
    result_dict['invalid_targets'] = invalid_targets
  _WriteOutput(params, **result_dict)
Old deprecated behavior, will be nuked shortly.
dataset/ETHPy150Open adblockplus/gyp/pylib/gyp/generator/analyzer.py/_GenerateOutputDeprecated