def _DoesTargetTypeRequireBuild(target_dict):
  # 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'))
Returns true if the target type is such that it needs to be built.
dataset/ETHPy150Open adblockplus/gyp/pylib/gyp/generator/analyzer.py/_DoesTargetTypeRequireBuild