OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2010 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 # Only binaries, used during development. | 56 # Only binaries, used during development. |
57 os.path.join('third_party','valgrind'), | 57 os.path.join('third_party','valgrind'), |
58 | 58 |
59 # Two directories that are the same as those in base/third_party. | 59 # Two directories that are the same as those in base/third_party. |
60 os.path.join('v8','src','third_party','dtoa'), | 60 os.path.join('v8','src','third_party','dtoa'), |
61 os.path.join('v8','src','third_party','valgrind'), | 61 os.path.join('v8','src','third_party','valgrind'), |
62 | 62 |
63 # Used for development and test, not in the shipping product. | 63 # Used for development and test, not in the shipping product. |
64 os.path.join('third_party','cygwin'), | 64 os.path.join('third_party','cygwin'), |
65 os.path.join('third_party','lighttpd'), | 65 os.path.join('third_party','lighttpd'), |
66 # ---- Check with NACL on this one... we're just pulling bin, not LICENSE | 66 # Filed http://code.google.com/p/nativeclient/issues/detail?id=1323 |
67 # ---- in DEPS. | 67 # to get clarification about using mingw-w64 from NaCl in Chromium: |
68 os.path.join('third_party','mingw-w64'), | 68 os.path.join('third_party','mingw-w64'), |
69 os.path.join('third_party','pefile'), | 69 os.path.join('third_party','pefile'), |
70 os.path.join('third_party','python_26'), | 70 os.path.join('third_party','python_26'), |
71 | 71 |
72 # Redistribution does not require attribution in documentation. | 72 # Redistribution does not require attribution in documentation. |
73 os.path.join('third_party','directxsdk'), | 73 os.path.join('third_party','directxsdk'), |
74 os.path.join('third_party','platformsdk_win2008_6_1'), | 74 os.path.join('third_party','platformsdk_win2008_6_1'), |
75 os.path.join('third_party','platformsdk_win7'), | 75 os.path.join('third_party','platformsdk_win7'), |
76 | 76 |
77 # Harfbuzz-ng is not currently shipping in any product: | 77 # Harfbuzz-ng is not currently shipping in any product: |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 "Name": "WebKit", | 118 "Name": "WebKit", |
119 "URL": "http://webkit.org/", | 119 "URL": "http://webkit.org/", |
120 # Absolute path here is resolved as relative to the source root. | 120 # Absolute path here is resolved as relative to the source root. |
121 "License File": "/webkit/LICENSE", | 121 "License File": "/webkit/LICENSE", |
122 }, | 122 }, |
123 os.path.join('third_party', 'GTM'): { | 123 os.path.join('third_party', 'GTM'): { |
124 "Name": "Google Toolbox for Mac", | 124 "Name": "Google Toolbox for Mac", |
125 "URL": "http://code.google.com/p/google-toolbox-for-mac/", | 125 "URL": "http://code.google.com/p/google-toolbox-for-mac/", |
126 "License File": "COPYING", | 126 "License File": "COPYING", |
127 }, | 127 }, |
| 128 # Filed issue pdfsqueeze:2 with dmaclach to get an honest LICESNE |
| 129 # file in the pdfsqueeze repo. |
128 # pdfsqueeze is Apache Licensed, reuse the same file from GTM: | 130 # pdfsqueeze is Apache Licensed, reuse the same file from GTM: |
129 os.path.join('third_party', 'pdfsqueeze'): { | 131 os.path.join('third_party', 'pdfsqueeze'): { |
130 "Name": "pdfsqueeze", | 132 "Name": "pdfsqueeze", |
131 "URL": "http://code.google.com/p/pdfsqueeze/", | 133 "URL": "http://code.google.com/p/pdfsqueeze/", |
132 "License File": os.path.join('..','GTM','COPYING'), | 134 "License File": os.path.join('..','GTM','COPYING'), |
133 }, | 135 }, |
134 } | 136 } |
135 | 137 |
136 class LicenseError(Exception): | 138 class LicenseError(Exception): |
137 """We raise this exception when a directory's licensing info isn't | 139 """We raise this exception when a directory's licensing info isn't |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 | 293 |
292 if command == 'scan': | 294 if command == 'scan': |
293 if not ScanThirdPartyDirs(): | 295 if not ScanThirdPartyDirs(): |
294 sys.exit(1) | 296 sys.exit(1) |
295 elif command == 'credits': | 297 elif command == 'credits': |
296 if not GenerateCredits(): | 298 if not GenerateCredits(): |
297 sys.exit(1) | 299 sys.exit(1) |
298 else: | 300 else: |
299 print __doc__ | 301 print __doc__ |
300 sys.exit(1) | 302 sys.exit(1) |
OLD | NEW |