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

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

Issue 11722029: [Android WebView] Update license checking tools data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « android_webview/tools/third_party_files_whitelist.txt ('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 (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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 # 'Copyright' appears in strings. 123 # 'Copyright' appears in strings.
124 directory_list.append('chrome/app/resources/') 124 directory_list.append('chrome/app/resources/')
125 # This is a Chrome on Linux reference build, doesn't exist in the snapshot 125 # This is a Chrome on Linux reference build, doesn't exist in the snapshot
126 directory_list.append('chrome/tools/test/reference_build/chrome_linux/') 126 directory_list.append('chrome/tools/test/reference_build/chrome_linux/')
127 # Remoting internal tools, doesn't exist in the snapshot 127 # Remoting internal tools, doesn't exist in the snapshot
128 directory_list.append('remoting/appengine/') 128 directory_list.append('remoting/appengine/')
129 # Histogram tools, doesn't exist in the snapshot 129 # Histogram tools, doesn't exist in the snapshot
130 directory_list.append('tools/histograms/') 130 directory_list.append('tools/histograms/')
131 # Arm sysroot tools, doesn't exist in the snapshot 131 # Arm sysroot tools, doesn't exist in the snapshot
132 directory_list.append('arm-sysroot/') 132 directory_list.append('arm-sysroot/')
133 # Windows-only
134 directory_list.append('tools/win/toolchain/7z/')
133 135
134 # Exclude files under listed directories and some known offenders. 136 # Exclude files under listed directories and some known offenders.
135 offending_files = [] 137 offending_files = []
136 for x in files: 138 for x in files:
137 x = os.path.normpath(x) 139 x = os.path.normpath(x)
138 is_in_listed_directory = False 140 is_in_listed_directory = False
139 for y in directory_list: 141 for y in directory_list:
140 if x.startswith(y): 142 if x.startswith(y):
141 is_in_listed_directory = True 143 is_in_listed_directory = True
142 break 144 break
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 return 1 281 return 1
280 elif args[0] == 'notice': 282 elif args[0] == 'notice':
281 print GenerateNoticeFile() 283 print GenerateNoticeFile()
282 return 0 284 return 0
283 285
284 parser.print_help() 286 parser.print_help()
285 return 1 287 return 1
286 288
287 if __name__ == '__main__': 289 if __name__ == '__main__':
288 sys.exit(main()) 290 sys.exit(main())
OLDNEW
« no previous file with comments | « android_webview/tools/third_party_files_whitelist.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698