| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Checks third-party licenses for the purposes of the Android WebView build. | 6 """Checks third-party licenses for the purposes of the Android WebView build. |
| 7 | 7 |
| 8 The Android tree includes a snapshot of Chromium in order to power the system | 8 The Android tree includes a snapshot of Chromium in order to power the system |
| 9 WebView. This tool checks that all code uses open-source licenses compatible | 9 WebView. This tool checks that all code uses open-source licenses compatible |
| 10 with Android, and that we meet the requirements of those licenses. It can also | 10 with Android, and that we meet the requirements of those licenses. It can also |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 # This is a test output directory | 106 # This is a test output directory |
| 107 excluded_dirs_list.append('chrome/tools/test/reference_build') | 107 excluded_dirs_list.append('chrome/tools/test/reference_build') |
| 108 # blink style copy right headers. | 108 # blink style copy right headers. |
| 109 excluded_dirs_list.append('content/shell/renderer/test_runner') | 109 excluded_dirs_list.append('content/shell/renderer/test_runner') |
| 110 # This is tests directory, doesn't exist in the snapshot | 110 # This is tests directory, doesn't exist in the snapshot |
| 111 excluded_dirs_list.append('content/test/data') | 111 excluded_dirs_list.append('content/test/data') |
| 112 # This is a tests directory that doesn't exist in the shipped product. | 112 # This is a tests directory that doesn't exist in the shipped product. |
| 113 excluded_dirs_list.append('gin/test') | 113 excluded_dirs_list.append('gin/test') |
| 114 # This is a test output directory | 114 # This is a test output directory |
| 115 excluded_dirs_list.append('data/dom_perf') | 115 excluded_dirs_list.append('data/dom_perf') |
| 116 # This is a tests directory that doesn't exist in the shipped product. |
| 117 excluded_dirs_list.append('tools/perf/page_sets') |
| 116 # Histogram tools, doesn't exist in the snapshot | 118 # Histogram tools, doesn't exist in the snapshot |
| 117 excluded_dirs_list.append('tools/histograms') | 119 excluded_dirs_list.append('tools/histograms') |
| 118 # Swarming tools, doesn't exist in the snapshot | 120 # Swarming tools, doesn't exist in the snapshot |
| 119 excluded_dirs_list.append('tools/swarming_client') | 121 excluded_dirs_list.append('tools/swarming_client') |
| 120 # Arm sysroot tools, doesn't exist in the snapshot | 122 # Arm sysroot tools, doesn't exist in the snapshot |
| 121 excluded_dirs_list.append('arm-sysroot') | 123 excluded_dirs_list.append('arm-sysroot') |
| 122 # Data is not part of open source chromium, but are included on some bots. | 124 # Data is not part of open source chromium, but are included on some bots. |
| 123 excluded_dirs_list.append('data') | 125 excluded_dirs_list.append('data') |
| 124 # This is not part of open source chromium, but are included on some bots. | 126 # This is not part of open source chromium, but are included on some bots. |
| 125 excluded_dirs_list.append('skia/tools/clusterfuzz-data') | 127 excluded_dirs_list.append('skia/tools/clusterfuzz-data') |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 return scan_result | 294 return scan_result |
| 293 elif args[0] == 'notice': | 295 elif args[0] == 'notice': |
| 294 print GenerateNoticeFile() | 296 print GenerateNoticeFile() |
| 295 return ScanResult.Ok | 297 return ScanResult.Ok |
| 296 | 298 |
| 297 parser.print_help() | 299 parser.print_help() |
| 298 return ScanResult.Errors | 300 return ScanResult.Errors |
| 299 | 301 |
| 300 if __name__ == '__main__': | 302 if __name__ == '__main__': |
| 301 sys.exit(main()) | 303 sys.exit(main()) |
| OLD | NEW |