def _GetMSVSConfigurationType(spec, build_file):
 try:
  config_type = {'executable': '1', 'shared_library': '2', 'loadable_module': '2', 'static_library': '4', 'none': '10'}[spec['type']]
 except KeyError:
  if spec.get('type'):
   raise GypError(('Target type %s is not a valid target type for target %s in %s.' % (spec['type'], spec['target_name'], build_file)))
  else:
   raise GypError(('Missing type field for target %s in %s.' % (spec['target_name'], build_file)))
 return config_type

def _GetMSVSConfigurationType ( spec , build_file ) : try : config_type = { 'executable' : '1' , 'shared_library' : '2' , 'loadable_module' : '2' , 'static_library' : '4' , 'none' : '10' } [ spec [ 'type' ] ] except KeyError : if spec . get ( 'type' ) : raise GypError ( ( 'Target type %s is not a valid target type for target %s in %s.' % ( spec [ 'type' ] , spec [ 'target_name' ] , build_file ) ) ) else : raise GypError ( ( 'Missing type field for target %s in %s.' % ( spec [ 'target_name' ] , build_file ) ) ) return config_type
returns the configuration type for this project .