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

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

Issue 191323002: aw: Mark Quickoffice dir as known license issue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « no previous file | 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 (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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 # Using a common pattern for third-partyies makes the ignore regexp shorter 112 # Using a common pattern for third-partyies makes the ignore regexp shorter
113 excluded_dirs_list.append('third_party') 113 excluded_dirs_list.append('third_party')
114 # VCS dirs 114 # VCS dirs
115 excluded_dirs_list.append('.git') 115 excluded_dirs_list.append('.git')
116 excluded_dirs_list.append('.svn') 116 excluded_dirs_list.append('.svn')
117 # Build output 117 # Build output
118 excluded_dirs_list.append('out/Debug') 118 excluded_dirs_list.append('out/Debug')
119 excluded_dirs_list.append('out/Release') 119 excluded_dirs_list.append('out/Release')
120 # 'Copyright' appears in license agreements 120 # 'Copyright' appears in license agreements
121 excluded_dirs_list.append('chrome/app/resources') 121 excluded_dirs_list.append('chrome/app/resources')
122 # Quickoffice js files from internal src used on buildbots 122 # Quickoffice js files from internal src used on buildbots. crbug.com/350472.
123 excluded_dirs_list.append('chrome/browser/resources/chromeos/quickoffice') 123 excluded_dirs_list.append('chrome/browser/resources/chromeos/quickoffice')
124 # This is a test output directory 124 # This is a test output directory
125 excluded_dirs_list.append('chrome/tools/test/reference_build') 125 excluded_dirs_list.append('chrome/tools/test/reference_build')
126 # blink style copy right headers. 126 # blink style copy right headers.
127 excluded_dirs_list.append('content/shell/renderer/test_runner') 127 excluded_dirs_list.append('content/shell/renderer/test_runner')
128 # blink style copy right headers. 128 # blink style copy right headers.
129 excluded_dirs_list.append('content/shell/tools/plugin') 129 excluded_dirs_list.append('content/shell/tools/plugin')
130 # This is tests directory, doesn't exist in the snapshot 130 # This is tests directory, doesn't exist in the snapshot
131 excluded_dirs_list.append('content/test/data') 131 excluded_dirs_list.append('content/test/data')
132 # This is a tests directory that doesn't exist in the shipped product. 132 # This is a tests directory that doesn't exist in the shipped product.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 def _FindThirdPartyDirs(): 203 def _FindThirdPartyDirs():
204 """Gets the list of third-party directories. 204 """Gets the list of third-party directories.
205 Returns: 205 Returns:
206 The list of third-party directories. 206 The list of third-party directories.
207 """ 207 """
208 208
209 # Please don't add here paths that have problems with license files, 209 # Please don't add here paths that have problems with license files,
210 # as they will end up included in Android WebView snapshot. 210 # as they will end up included in Android WebView snapshot.
211 # Instead, add them into known_issues.py. 211 # Instead, add them into known_issues.py.
212 prune_paths = [ 212 prune_paths = [
213 # Temporary until we figure out how not to check out quickoffice on the
214 # Android license check bot. Tracked in crbug.com/350472.
215 os.path.join('chrome', 'browser', 'resources', 'chromeos', 'quickoffice'),
213 # Placeholder directory, no third-party code. 216 # Placeholder directory, no third-party code.
214 os.path.join('third_party', 'adobe'), 217 os.path.join('third_party', 'adobe'),
215 # Apache 2.0 license. See 218 # Apache 2.0 license. See
216 # https://code.google.com/p/chromium/issues/detail?id=140478. 219 # https://code.google.com/p/chromium/issues/detail?id=140478.
217 os.path.join('third_party', 'bidichecker'), 220 os.path.join('third_party', 'bidichecker'),
218 # Isn't checked out on clients 221 # Isn't checked out on clients
219 os.path.join('third_party', 'gles2_conform'), 222 os.path.join('third_party', 'gles2_conform'),
220 # The llvm-build doesn't exist for non-clang builder 223 # The llvm-build doesn't exist for non-clang builder
221 os.path.join('third_party', 'llvm-build'), 224 os.path.join('third_party', 'llvm-build'),
222 # Binaries doesn't apply to android 225 # Binaries doesn't apply to android
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 print ("Incompatibly licensed directories found:\n" + 327 print ("Incompatibly licensed directories found:\n" +
325 "\n".join(sorted(incompatible_directories))) 328 "\n".join(sorted(incompatible_directories)))
326 return ScanResult.Errors 329 return ScanResult.Errors
327 return ScanResult.Ok 330 return ScanResult.Ok
328 331
329 parser.print_help() 332 parser.print_help()
330 return ScanResult.Errors 333 return ScanResult.Errors
331 334
332 if __name__ == '__main__': 335 if __name__ == '__main__':
333 sys.exit(main()) 336 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698