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

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

Issue 877583003: [Android WebView] Fix outstanding license check issues on the release bot (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « android_webview/tools/copyright_scanner_unittest.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 os.path.join('third_party', 'llvm-build'), 215 os.path.join('third_party', 'llvm-build'),
216 # Binaries doesn't apply to android 216 # Binaries doesn't apply to android
217 os.path.join('third_party', 'widevine'), 217 os.path.join('third_party', 'widevine'),
218 # third_party directories in this tree aren't actually third party, but 218 # third_party directories in this tree aren't actually third party, but
219 # provide a way to shadow experimental buildfiles into those directories. 219 # provide a way to shadow experimental buildfiles into those directories.
220 os.path.join('build', 'secondary'), 220 os.path.join('build', 'secondary'),
221 # Not shipped, Chromium code 221 # Not shipped, Chromium code
222 os.path.join('tools', 'swarming_client'), 222 os.path.join('tools', 'swarming_client'),
223 # Not shipped, only relates to Chrome for Android, but not to WebView 223 # Not shipped, only relates to Chrome for Android, but not to WebView
224 os.path.join('clank'), 224 os.path.join('clank'),
225 # Bots only, is not a part of the build
226 os.path.join('isolate_deps_dir'),
225 ] 227 ]
226 third_party_dirs = licenses.FindThirdPartyDirs(prune_paths, REPOSITORY_ROOT) 228 third_party_dirs = licenses.FindThirdPartyDirs(prune_paths, REPOSITORY_ROOT)
227 return licenses.FilterDirsWithFiles(third_party_dirs, REPOSITORY_ROOT) 229 return licenses.FilterDirsWithFiles(third_party_dirs, REPOSITORY_ROOT)
228 230
229 231
230 def _Scan(): 232 def _Scan():
231 """Checks that license meta-data is present for all third-party code and 233 """Checks that license meta-data is present for all third-party code and
232 that all non third-party code doesn't contain external copyrighted code. 234 that all non third-party code doesn't contain external copyrighted code.
233 Returns: 235 Returns:
234 ScanResult.Ok if everything is in order; 236 ScanResult.Ok if everything is in order;
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 files = sys.stdin.read().splitlines() 395 files = sys.stdin.read().splitlines()
394 for f, c in \ 396 for f, c in \
395 zip(files, copyright_scanner.FindCopyrights(InputApi(), '.', files)): 397 zip(files, copyright_scanner.FindCopyrights(InputApi(), '.', files)):
396 print f, '\t', ' / '.join(sorted(c)) 398 print f, '\t', ' / '.join(sorted(c))
397 return ScanResult.Ok 399 return ScanResult.Ok
398 parser.print_help() 400 parser.print_help()
399 return ScanResult.Errors 401 return ScanResult.Errors
400 402
401 if __name__ == '__main__': 403 if __name__ == '__main__':
402 sys.exit(main()) 404 sys.exit(main())
OLDNEW
« no previous file with comments | « android_webview/tools/copyright_scanner_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698