def ValidateActionsInTarget(target, target_dict, build_file):
 target_name = target_dict.get('target_name')
 actions = target_dict.get('actions', [])
 for action in actions:
  action_name = action.get('action_name')
  if (not action_name):
   raise GypError(("Anonymous action in target %s.  An action must have an 'action_name' field." % target_name))
  inputs = action.get('inputs', None)
  if (inputs is None):
   raise GypError(('Action in target %s has no inputs.' % target_name))
  action_command = action.get('action')
  if (action_command and (not action_command[0])):
   raise GypError(('Empty action as command in target %s.' % target_name))

def ValidateActionsInTarget ( target , target_dict , build_file ) : target_name = target_dict . get ( 'target_name' ) actions = target_dict . get ( 'actions' , [ ] ) for action in actions : action_name = action . get ( 'action_name' ) if ( not action_name ) : raise GypError ( ( "Anonymous action in target %s.  An action must have an 'action_name' field." % target_name ) ) inputs = action . get ( 'inputs' , None ) if ( inputs is None ) : raise GypError ( ( 'Action in target %s has no inputs.' % target_name ) ) action_command = action . get ( 'action' ) if ( action_command and ( not action_command [ 0 ] ) ) : raise GypError ( ( 'Empty action as command in target %s.' % target_name ) )
validates the inputs to the actions in a target .