def _GetUnqualifiedToTargetMapping(all_targets, to_find):
  result = {}
  if not to_find:
    return result
  to_find = set(to_find)
  for target_name in all_targets.keys():
    extracted = gyp.common.ParseQualifiedTarget(target_name)
    if len(extracted) > 1 and extracted[1] in to_find:
      to_find.remove(extracted[1])
      result[extracted[1]] = all_targets[target_name]
      if not to_find:
        return result
  return result
Returns a mapping (dictionary) from unqualified name to Target for all the
dataset/ETHPy150Open pyokagan/gyp/pylib/gyp/generator/analyzer.py/_GetUnqualifiedToTargetMapping