def VerifyMissingSources(sources, build_dir, generator_flags, gyp_to_ninja):
 if int(generator_flags.get('msvs_error_on_missing_sources', 0)):
  no_specials = filter((lambda x: ('$' not in x)), sources)
  relative = [os.path.join(build_dir, gyp_to_ninja(s)) for s in no_specials]
  missing = filter((lambda x: (not os.path.exists(x))), relative)
  if missing:
   cleaned_up = [os.path.normpath(x) for x in missing]
   raise Exception(('Missing input files:\n%s' % '\n'.join(cleaned_up)))

def VerifyMissingSources ( sources , build_dir , generator_flags , gyp_to_ninja ) : if int ( generator_flags . get ( 'msvs_error_on_missing_sources' , 0 ) ) : no_specials = filter ( ( lambda x : ( '$' not in x ) ) , sources ) relative = [ os . path . join ( build_dir , gyp_to_ninja ( s ) ) for s in no_specials ] missing = filter ( ( lambda x : ( not os . path . exists ( x ) ) ) , relative ) if missing : cleaned_up = [ os . path . normpath ( x ) for x in missing ] raise Exception ( ( 'Missing input files:\n%s' % '\n' . join ( cleaned_up ) ) )
emulate behavior of msvs_error_on_missing_sources present in the msvs generator: check that all regular source files .