OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright 2012 the V8 project authors. All rights reserved. | 3 # Copyright 2012 the V8 project authors. All rights reserved. |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 for ext in SourceProcessor.RELEVANT_EXTENSIONS: | 318 for ext in SourceProcessor.RELEVANT_EXTENSIONS: |
319 if name.endswith(ext): | 319 if name.endswith(ext): |
320 return True | 320 return True |
321 return False | 321 return False |
322 | 322 |
323 def GetPathsToSearch(self): | 323 def GetPathsToSearch(self): |
324 return ['.'] | 324 return ['.'] |
325 | 325 |
326 def IgnoreDir(self, name): | 326 def IgnoreDir(self, name): |
327 return (super(SourceProcessor, self).IgnoreDir(name) or | 327 return (super(SourceProcessor, self).IgnoreDir(name) or |
328 name in ('third_party', 'gyp', 'out', 'obj', 'DerivedSources', | 328 name in ('third_party', 'gyp', 'out', 'obj', 'DerivedSources')) |
329 'emscripten')) | |
330 | 329 |
331 IGNORE_COPYRIGHTS = ['box2d.js', | 330 IGNORE_COPYRIGHTS = ['box2d.js', |
332 'cpplint.py', | 331 'cpplint.py', |
333 'copy.js', | 332 'copy.js', |
334 'corrections.js', | 333 'corrections.js', |
335 'crypto.js', | 334 'crypto.js', |
336 'daemon.py', | 335 'daemon.py', |
337 'earley-boyer.js', | 336 'earley-boyer.js', |
338 'fannkuch.js', | 337 'fannkuch.js', |
339 'fasta.js', | 338 'fasta.js', |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 success = CheckRuntimeVsNativesNameClashes(workspace) and success | 488 success = CheckRuntimeVsNativesNameClashes(workspace) and success |
490 success = CheckExternalReferenceRegistration(workspace) and success | 489 success = CheckExternalReferenceRegistration(workspace) and success |
491 if success: | 490 if success: |
492 return 0 | 491 return 0 |
493 else: | 492 else: |
494 return 1 | 493 return 1 |
495 | 494 |
496 | 495 |
497 if __name__ == '__main__': | 496 if __name__ == '__main__': |
498 sys.exit(Main()) | 497 sys.exit(Main()) |
OLD | NEW |