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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 "License": "BSD", | 220 "License": "BSD", |
221 # Absolute path here is resolved as relative to the source root. | 221 # Absolute path here is resolved as relative to the source root. |
222 "License File": "/v8/LICENSE.strongtalk", | 222 "License File": "/v8/LICENSE.strongtalk", |
223 }, | 223 }, |
224 os.path.join('v8', 'third_party', 'fdlibm'): { | 224 os.path.join('v8', 'third_party', 'fdlibm'): { |
225 "Name": "fdlibm", | 225 "Name": "fdlibm", |
226 "URL": "http://www.netlib.org/fdlibm/", | 226 "URL": "http://www.netlib.org/fdlibm/", |
227 "License": "Freely Distributable", | 227 "License": "Freely Distributable", |
228 # Absolute path here is resolved as relative to the source root. | 228 # Absolute path here is resolved as relative to the source root. |
229 "License File" : "/v8/third_party/fdlibm/LICENSE", | 229 "License File" : "/v8/third_party/fdlibm/LICENSE", |
| 230 "License Android Compatible" : "yes", |
230 }, | 231 }, |
231 } | 232 } |
232 | 233 |
233 # Special value for 'License File' field used to indicate that the license file | 234 # Special value for 'License File' field used to indicate that the license file |
234 # should not be used in about:credits. | 235 # should not be used in about:credits. |
235 NOT_SHIPPED = "NOT_SHIPPED" | 236 NOT_SHIPPED = "NOT_SHIPPED" |
236 | 237 |
237 | 238 |
238 class LicenseError(Exception): | 239 class LicenseError(Exception): |
239 """We raise this exception when a directory's licensing info isn't | 240 """We raise this exception when a directory's licensing info isn't |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 elif command == 'credits': | 469 elif command == 'credits': |
469 if not GenerateCredits(): | 470 if not GenerateCredits(): |
470 return 1 | 471 return 1 |
471 else: | 472 else: |
472 print __doc__ | 473 print __doc__ |
473 return 1 | 474 return 1 |
474 | 475 |
475 | 476 |
476 if __name__ == '__main__': | 477 if __name__ == '__main__': |
477 sys.exit(main()) | 478 sys.exit(main()) |
OLD | NEW |