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

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

Issue 340153004: Move gn secondary_source to the build/ directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update android webview_licenses.py as well Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « .gn ('k') | build/secondary/chrome/BUILD.gn » ('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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 # https://code.google.com/p/chromium/issues/detail?id=140478. 223 # https://code.google.com/p/chromium/issues/detail?id=140478.
224 os.path.join('third_party', 'bidichecker'), 224 os.path.join('third_party', 'bidichecker'),
225 # Isn't checked out on clients 225 # Isn't checked out on clients
226 os.path.join('third_party', 'gles2_conform'), 226 os.path.join('third_party', 'gles2_conform'),
227 # The llvm-build doesn't exist for non-clang builder 227 # The llvm-build doesn't exist for non-clang builder
228 os.path.join('third_party', 'llvm-build'), 228 os.path.join('third_party', 'llvm-build'),
229 # Binaries doesn't apply to android 229 # Binaries doesn't apply to android
230 os.path.join('third_party', 'widevine'), 230 os.path.join('third_party', 'widevine'),
231 # third_party directories in this tree aren't actually third party, but 231 # third_party directories in this tree aren't actually third party, but
232 # provide a way to shadow experimental buildfiles into those directories. 232 # provide a way to shadow experimental buildfiles into those directories.
233 os.path.join('tools', 'gn', 'secondary'), 233 os.path.join('build', 'secondary'),
234 # Not shipped, Chromium code 234 # Not shipped, Chromium code
235 os.path.join('tools', 'swarming_client'), 235 os.path.join('tools', 'swarming_client'),
236 ] 236 ]
237 third_party_dirs = licenses.FindThirdPartyDirs(prune_paths, REPOSITORY_ROOT) 237 third_party_dirs = licenses.FindThirdPartyDirs(prune_paths, REPOSITORY_ROOT)
238 return licenses.FilterDirsWithFiles(third_party_dirs, REPOSITORY_ROOT) 238 return licenses.FilterDirsWithFiles(third_party_dirs, REPOSITORY_ROOT)
239 239
240 240
241 def _Scan(): 241 def _Scan():
242 """Checks that license meta-data is present for all third-party code and 242 """Checks that license meta-data is present for all third-party code and
243 that all non third-party code doesn't contain external copyrighted code. 243 that all non third-party code doesn't contain external copyrighted code.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 return ScanResult.Ok 337 return ScanResult.Ok
338 elif args[0] == 'incompatible_directories': 338 elif args[0] == 'incompatible_directories':
339 return _ProcessIncompatibleResult(GetUnknownIncompatibleDirectories()) 339 return _ProcessIncompatibleResult(GetUnknownIncompatibleDirectories())
340 elif args[0] == 'all_incompatible_directories': 340 elif args[0] == 'all_incompatible_directories':
341 return _ProcessIncompatibleResult(GetIncompatibleDirectories()) 341 return _ProcessIncompatibleResult(GetIncompatibleDirectories())
342 parser.print_help() 342 parser.print_help()
343 return ScanResult.Errors 343 return ScanResult.Errors
344 344
345 if __name__ == '__main__': 345 if __name__ == '__main__':
346 sys.exit(main()) 346 sys.exit(main())
OLDNEW
« no previous file with comments | « .gn ('k') | build/secondary/chrome/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698