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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 ADDITIONAL_PATHS = ( | 104 ADDITIONAL_PATHS = ( |
105 os.path.join('breakpad'), | 105 os.path.join('breakpad'), |
106 os.path.join('chrome', 'common', 'extensions', 'docs', 'examples'), | 106 os.path.join('chrome', 'common', 'extensions', 'docs', 'examples'), |
107 os.path.join('chrome', 'test', 'chromeos', 'autotest'), | 107 os.path.join('chrome', 'test', 'chromeos', 'autotest'), |
108 os.path.join('chrome', 'test', 'data'), | 108 os.path.join('chrome', 'test', 'data'), |
109 os.path.join('native_client'), | 109 os.path.join('native_client'), |
110 os.path.join('net', 'tools', 'spdyshark'), | 110 os.path.join('net', 'tools', 'spdyshark'), |
111 os.path.join('sdch', 'open-vcdiff'), | 111 os.path.join('sdch', 'open-vcdiff'), |
112 os.path.join('testing', 'gmock'), | 112 os.path.join('testing', 'gmock'), |
113 os.path.join('testing', 'gtest'), | |
114 os.path.join('tools', 'gyp'), | 113 os.path.join('tools', 'gyp'), |
115 os.path.join('tools', 'page_cycler', 'acid3'), | 114 os.path.join('tools', 'page_cycler', 'acid3'), |
116 os.path.join('url', 'third_party', 'mozilla'), | 115 os.path.join('url', 'third_party', 'mozilla'), |
117 os.path.join('v8'), | 116 os.path.join('v8'), |
118 # Fake directories to include the strongtalk and fdlibm licenses. | 117 # Fake directories to include the strongtalk and fdlibm licenses. |
119 os.path.join('v8', 'strongtalk'), | 118 os.path.join('v8', 'strongtalk'), |
120 os.path.join('v8', 'fdlibm'), | 119 os.path.join('v8', 'fdlibm'), |
121 ) | 120 ) |
122 | 121 |
123 | 122 |
(...skipping 11 matching lines...) Expand all Loading... |
135 "URL": "https://github.com/google/open-vcdiff", | 134 "URL": "https://github.com/google/open-vcdiff", |
136 "License": "Apache 2.0, MIT, GPL v2 and custom licenses", | 135 "License": "Apache 2.0, MIT, GPL v2 and custom licenses", |
137 "License Android Compatible": "yes", | 136 "License Android Compatible": "yes", |
138 }, | 137 }, |
139 os.path.join('testing', 'gmock'): { | 138 os.path.join('testing', 'gmock'): { |
140 "Name": "gmock", | 139 "Name": "gmock", |
141 "URL": "http://code.google.com/p/googlemock", | 140 "URL": "http://code.google.com/p/googlemock", |
142 "License": "BSD", | 141 "License": "BSD", |
143 "License File": "NOT_SHIPPED", | 142 "License File": "NOT_SHIPPED", |
144 }, | 143 }, |
145 os.path.join('testing', 'gtest'): { | 144 os.path.join('testing', 'third_party', 'googletest'): { |
146 "Name": "gtest", | 145 "Name": "gtest", |
147 "URL": "http://code.google.com/p/googletest", | 146 "URL": "http://code.google.com/p/googletest", |
148 "License": "BSD", | 147 "License": "BSD", |
149 "License File": "NOT_SHIPPED", | 148 "License File": "NOT_SHIPPED", |
150 }, | 149 }, |
151 os.path.join('third_party', 'angle'): { | 150 os.path.join('third_party', 'angle'): { |
152 "Name": "Almost Native Graphics Layer Engine", | 151 "Name": "Almost Native Graphics Layer Engine", |
153 "URL": "http://code.google.com/p/angleproject/", | 152 "URL": "http://code.google.com/p/angleproject/", |
154 "License": "BSD", | 153 "License": "BSD", |
155 }, | 154 }, |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 if not GenerateCredits(args.file_template, args.entry_template, | 564 if not GenerateCredits(args.file_template, args.entry_template, |
566 args.output_file, args.target_os): | 565 args.output_file, args.target_os): |
567 return 1 | 566 return 1 |
568 else: | 567 else: |
569 print __doc__ | 568 print __doc__ |
570 return 1 | 569 return 1 |
571 | 570 |
572 | 571 |
573 if __name__ == '__main__': | 572 if __name__ == '__main__': |
574 sys.exit(main()) | 573 sys.exit(main()) |
OLD | NEW |