def CallLoadTargetBuildFile(global_flags, build_file_path, variables, includes, depth, check, generator_input_info):
 try:
  signal.signal(signal.SIGINT, signal.SIG_IGN)
  for (key, value) in global_flags.iteritems():
   globals()[key] = value
  SetGeneratorGlobals(generator_input_info)
  result = LoadTargetBuildFile(build_file_path, per_process_data, per_process_aux_data, variables, includes, depth, check, False)
  if (not result):
   return result
  (build_file_path, dependencies) = result
  build_file_data = per_process_data.pop(build_file_path)
  return (build_file_path, build_file_data, dependencies)
 except GypError as e:
  sys.stderr.write(('gyp: %s\n' % e))
  return None
 except Exception as e:
  print >>sys.stderr, 'Exception:', e
  print >>sys.stderr, traceback.format_exc()
  return None

def CallLoadTargetBuildFile ( global_flags , build_file_path , variables , includes , depth , check , generator_input_info ) : try : signal . signal ( signal . SIGINT , signal . SIG_IGN ) for ( key , value ) in global_flags . iteritems ( ) : globals ( ) [ key ] = value SetGeneratorGlobals ( generator_input_info ) result = LoadTargetBuildFile ( build_file_path , per_process_data , per_process_aux_data , variables , includes , depth , check , False ) if ( not result ) : return result ( build_file_path , dependencies ) = result build_file_data = per_process_data . pop ( build_file_path ) return ( build_file_path , build_file_data , dependencies ) except GypError as e : sys . stderr . write ( ( 'gyp: %s\n' % e ) ) return None except Exception as e : print >> sys . stderr , 'Exception:' , e print >> sys . stderr , traceback . format_exc ( ) return None
wrapper around loadtargetbuildfile for parallel processing .