def _DoesTargetTypeRequireBuild(target_dict):
  """Returns true if the target type is such that it needs to be built."""
  # If a 'none' target has rules or actions we assume it requires a build.
  return bool(target_dict['type'] != 'none' or
              target_dict.get('actions') or target_dict.get('rules'))
dataset/ETHPy150Open adblockplus/gyp/pylib/gyp/generator/analyzer.py/_DoesTargetTypeRequireBuild/original