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

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

Issue 29993003: Use swarming_client instead of swarm_client. (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Rebased Created 7 years, 1 month 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 | « DEPS ('k') | base/base_unittests.isolate » ('j') | 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 (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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 # Isn't checked out on clients 185 # Isn't checked out on clients
186 os.path.join('third_party', 'gles2_conform'), 186 os.path.join('third_party', 'gles2_conform'),
187 # The llvm-build doesn't exist for non-clang builder 187 # The llvm-build doesn't exist for non-clang builder
188 os.path.join('third_party', 'llvm-build'), 188 os.path.join('third_party', 'llvm-build'),
189 # Binaries doesn't apply to android 189 # Binaries doesn't apply to android
190 os.path.join('third_party', 'widevine'), 190 os.path.join('third_party', 'widevine'),
191 # third_party directories in this tree aren't actually third party, but 191 # third_party directories in this tree aren't actually third party, but
192 # provide a way to shadow experimental buildfiles into those directories. 192 # provide a way to shadow experimental buildfiles into those directories.
193 os.path.join('tools', 'gn', 'secondary'), 193 os.path.join('tools', 'gn', 'secondary'),
194 # Not shipped, Chromium code 194 # Not shipped, Chromium code
195 os.path.join('tools', 'swarm_client'), 195 os.path.join('tools', 'swarming_client'),
196 ] 196 ]
197 third_party_dirs = licenses.FindThirdPartyDirs(prune_paths, REPOSITORY_ROOT) 197 third_party_dirs = licenses.FindThirdPartyDirs(prune_paths, REPOSITORY_ROOT)
198 return licenses.FilterDirsWithFiles(third_party_dirs, REPOSITORY_ROOT) 198 return licenses.FilterDirsWithFiles(third_party_dirs, REPOSITORY_ROOT)
199 199
200 200
201 def _Scan(): 201 def _Scan():
202 """Checks that license meta-data is present for all third-party code and 202 """Checks that license meta-data is present for all third-party code and
203 that all non third-party code doesn't contain external copyrighted code. 203 that all non third-party code doesn't contain external copyrighted code.
204 Returns: 204 Returns:
205 ScanResult.Ok if everything is in order; 205 ScanResult.Ok if everything is in order;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 return scan_result 282 return scan_result
283 elif args[0] == 'notice': 283 elif args[0] == 'notice':
284 print GenerateNoticeFile() 284 print GenerateNoticeFile()
285 return ScanResult.Ok 285 return ScanResult.Ok
286 286
287 parser.print_help() 287 parser.print_help()
288 return ScanResult.Errors 288 return ScanResult.Errors
289 289
290 if __name__ == '__main__': 290 if __name__ == '__main__':
291 sys.exit(main()) 291 sys.exit(main())
OLDNEW
« no previous file with comments | « DEPS ('k') | base/base_unittests.isolate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698