OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env 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 """Utility for checking and processing licensing information in third_party | 6 """Utility for checking and processing licensing information in third_party |
7 directories. | 7 directories. |
8 | 8 |
9 Usage: licenses.py <command> | 9 Usage: licenses.py <command> |
10 | 10 |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 "URL": "http://no-public-url", | 238 "URL": "http://no-public-url", |
239 "License": "Khronos", | 239 "License": "Khronos", |
240 "License File": "NOT_SHIPPED", | 240 "License File": "NOT_SHIPPED", |
241 }, | 241 }, |
242 os.path.join('tools', 'telemetry', 'third_party', 'gsutil'): { | 242 os.path.join('tools', 'telemetry', 'third_party', 'gsutil'): { |
243 "Name": "gsutil", | 243 "Name": "gsutil", |
244 "URL": "https://cloud.google.com/storage/docs/gsutil", | 244 "URL": "https://cloud.google.com/storage/docs/gsutil", |
245 "License": "Apache 2.0", | 245 "License": "Apache 2.0", |
246 "License File": "NOT_SHIPPED", | 246 "License File": "NOT_SHIPPED", |
247 }, | 247 }, |
| 248 os.path.join('third_party', 'swiftshader'): { |
| 249 "Name": "SwiftShader", |
| 250 "URL": "https://swiftshader.googlesource.com/SwiftShader", |
| 251 "License": "Apache 2.0 and compatible licenses", |
| 252 "License Android Compatible": "yes", |
| 253 "License File": "/third_party/swiftshader/LICENSE.txt", |
| 254 }, |
248 } | 255 } |
249 | 256 |
250 # Special value for 'License File' field used to indicate that the license file | 257 # Special value for 'License File' field used to indicate that the license file |
251 # should not be used in about:credits. | 258 # should not be used in about:credits. |
252 NOT_SHIPPED = "NOT_SHIPPED" | 259 NOT_SHIPPED = "NOT_SHIPPED" |
253 | 260 |
254 # Paths for libraries that we have checked are not shipped on iOS. These are | 261 # Paths for libraries that we have checked are not shipped on iOS. These are |
255 # left out of the licenses file primarily because we don't want to cause a | 262 # left out of the licenses file primarily because we don't want to cause a |
256 # firedrill due to someone thinking that Chrome for iOS is using LGPL code | 263 # firedrill due to someone thinking that Chrome for iOS is using LGPL code |
257 # when it isn't. | 264 # when it isn't. |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 if not GenerateCredits(args.file_template, args.entry_template, | 572 if not GenerateCredits(args.file_template, args.entry_template, |
566 args.output_file, args.target_os): | 573 args.output_file, args.target_os): |
567 return 1 | 574 return 1 |
568 else: | 575 else: |
569 print __doc__ | 576 print __doc__ |
570 return 1 | 577 return 1 |
571 | 578 |
572 | 579 |
573 if __name__ == '__main__': | 580 if __name__ == '__main__': |
574 sys.exit(main()) | 581 sys.exit(main()) |
OLD | NEW |