| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 # Histogram tools, doesn't exist in the snapshot | 116 # Histogram tools, doesn't exist in the snapshot |
| 117 excluded_dirs_list.append('tools/histograms') | 117 excluded_dirs_list.append('tools/histograms') |
| 118 # Swarming tools, doesn't exist in the snapshot | 118 # Swarming tools, doesn't exist in the snapshot |
| 119 excluded_dirs_list.append('tools/swarming_client') | 119 excluded_dirs_list.append('tools/swarming_client') |
| 120 # vulcanize tools, doesn't exist in the snapshot. |
| 121 excluded_dirs_list.append('tools/vulcanize') |
| 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') |
| 126 | 128 |
| 127 args = ['android_webview/tools/find_copyrights.pl', | 129 args = ['android_webview/tools/find_copyrights.pl', |
| 128 '.' | 130 '.' |
| 129 ] + excluded_dirs_list | 131 ] + excluded_dirs_list |
| (...skipping 162 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 |