OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 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 """Generates the contents of an Cronet LICENSE file for the third-party code. | 6 """Generates the contents of an Cronet LICENSE file for the third-party code. |
7 | 7 |
8 It makes use of src/tools/licenses.py and the README.chromium files on which | 8 It makes use of src/tools/licenses.py and the README.chromium files on which |
9 it depends. Based on android_webview/tools/webview_licenses.py. | 9 it depends. Based on android_webview/tools/webview_licenses.py. |
10 """ | 10 """ |
(...skipping 23 matching lines...) Expand all Loading... |
34 """Generates the contents of an Cronet LICENSE file for the third-party code. | 34 """Generates the contents of an Cronet LICENSE file for the third-party code. |
35 Returns: | 35 Returns: |
36 The contents of the LICENSE file. | 36 The contents of the LICENSE file. |
37 """ | 37 """ |
38 # TODO(mef): Generate list of third_party libraries using checkdeps. | 38 # TODO(mef): Generate list of third_party libraries using checkdeps. |
39 third_party_dirs = [ | 39 third_party_dirs = [ |
40 "libevent", | 40 "libevent", |
41 "ashmem", | 41 "ashmem", |
42 "zlib", | 42 "zlib", |
43 "modp_b64", | 43 "modp_b64", |
44 "openssl" | 44 "boringssl" |
45 ] | 45 ] |
46 | 46 |
47 # Start with Chromium's LICENSE file | 47 # Start with Chromium's LICENSE file |
48 content = [_ReadFile('LICENSE')] | 48 content = [_ReadFile('LICENSE')] |
49 | 49 |
50 # Add necessary third_party. | 50 # Add necessary third_party. |
51 for directory in sorted(third_party_dirs): | 51 for directory in sorted(third_party_dirs): |
52 metadata = licenses.ParseDir("third_party/" + directory, REPOSITORY_ROOT, | 52 metadata = licenses.ParseDir("third_party/" + directory, REPOSITORY_ROOT, |
53 require_license_file=True) | 53 require_license_file=True) |
54 content.append("-" * 20) | 54 content.append("-" * 20) |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 else: | 90 else: |
91 print GenerateLicense() | 91 print GenerateLicense() |
92 return 0 | 92 return 0 |
93 | 93 |
94 parser.print_help() | 94 parser.print_help() |
95 return 1 | 95 return 1 |
96 | 96 |
97 | 97 |
98 if __name__ == '__main__': | 98 if __name__ == '__main__': |
99 sys.exit(main()) | 99 sys.exit(main()) |
OLD | NEW |