Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: android_webview/tools/webview_licenses.py

Issue 664383004: Merge ARM sysroot install script with existing x86/amd64 one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 excluded_dirs_list.append('gin/test') 142 excluded_dirs_list.append('gin/test')
143 # This is a test output directory 143 # This is a test output directory
144 excluded_dirs_list.append('data/dom_perf') 144 excluded_dirs_list.append('data/dom_perf')
145 # This is a tests directory that doesn't exist in the shipped product. 145 # This is a tests directory that doesn't exist in the shipped product.
146 excluded_dirs_list.append('tools/perf/page_sets') 146 excluded_dirs_list.append('tools/perf/page_sets')
147 excluded_dirs_list.append('tools/perf/page_sets/tough_animation_cases') 147 excluded_dirs_list.append('tools/perf/page_sets/tough_animation_cases')
148 # Histogram tools, doesn't exist in the snapshot 148 # Histogram tools, doesn't exist in the snapshot
149 excluded_dirs_list.append('tools/histograms') 149 excluded_dirs_list.append('tools/histograms')
150 # Swarming tools, doesn't exist in the snapshot 150 # Swarming tools, doesn't exist in the snapshot
151 excluded_dirs_list.append('tools/swarming_client') 151 excluded_dirs_list.append('tools/swarming_client')
152 # Arm sysroot tools, doesn't exist in the snapshot 152 # ARM sysroot, doesn't exist in the snapshot
153 excluded_dirs_list.append('arm-sysroot') 153 excluded_dirs_list.append('chrome/installer/linux/debian_wheezy_arm-sysroot')
154 # Data is not part of open source chromium, but are included on some bots. 154 # Data is not part of open source chromium, but are included on some bots.
155 excluded_dirs_list.append('data') 155 excluded_dirs_list.append('data')
156 # This is not part of open source chromium, but are included on some bots. 156 # This is not part of open source chromium, but are included on some bots.
157 excluded_dirs_list.append('skia/tools/clusterfuzz-data') 157 excluded_dirs_list.append('skia/tools/clusterfuzz-data')
158 158
159 files_to_scan = copyright_scanner.FindFiles( 159 files_to_scan = copyright_scanner.FindFiles(
160 REPOSITORY_ROOT, ['.'], excluded_dirs_list) 160 REPOSITORY_ROOT, ['.'], excluded_dirs_list)
161 sharded_files_to_scan = _ShardList(files_to_scan, 2000) 161 sharded_files_to_scan = _ShardList(files_to_scan, 2000)
162 pool = multiprocessing.Pool() 162 pool = multiprocessing.Pool()
163 offending_files_chunks = pool.map_async( 163 offending_files_chunks = pool.map_async(
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 elif args[0] == 'display_copyrights': 345 elif args[0] == 'display_copyrights':
346 files = sys.stdin.read().splitlines() 346 files = sys.stdin.read().splitlines()
347 for f, c in zip(files, copyright_scanner.FindCopyrights('.', files)): 347 for f, c in zip(files, copyright_scanner.FindCopyrights('.', files)):
348 print f, '\t', ' / '.join(sorted(c)) 348 print f, '\t', ' / '.join(sorted(c))
349 return ScanResult.Ok 349 return ScanResult.Ok
350 parser.print_help() 350 parser.print_help()
351 return ScanResult.Errors 351 return ScanResult.Errors
352 352
353 if __name__ == '__main__': 353 if __name__ == '__main__':
354 sys.exit(main()) 354 sys.exit(main())
OLDNEW
« no previous file with comments | « DEPS ('k') | build/common.gypi » ('j') | build/linux/install-arm-sysroot.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698