Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: tools/licenses.py

Issue 2224323003: WIP roll gtest/gmock DEPS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/checklicenses/checklicenses.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 # Used for development and test, not in the shipping product. 44 # Used for development and test, not in the shipping product.
45 os.path.join('build','secondary'), 45 os.path.join('build','secondary'),
46 os.path.join('third_party','bison'), 46 os.path.join('third_party','bison'),
47 os.path.join('third_party','blanketjs'), 47 os.path.join('third_party','blanketjs'),
48 os.path.join('third_party','chromite'), 48 os.path.join('third_party','chromite'),
49 os.path.join('third_party','cygwin'), 49 os.path.join('third_party','cygwin'),
50 os.path.join('third_party','gles2_conform'), 50 os.path.join('third_party','gles2_conform'),
51 os.path.join('third_party','gnu_binutils'), 51 os.path.join('third_party','gnu_binutils'),
52 os.path.join('third_party','gold'), 52 os.path.join('third_party','gold'),
53 os.path.join('third_party','gperf'), 53 os.path.join('third_party','gperf'),
54 os.path.join('third_party','gtest'),
54 os.path.join('third_party','kasko'), 55 os.path.join('third_party','kasko'),
55 os.path.join('third_party','lighttpd'), 56 os.path.join('third_party','lighttpd'),
56 os.path.join('third_party','llvm'), 57 os.path.join('third_party','llvm'),
57 os.path.join('third_party','llvm-build'), 58 os.path.join('third_party','llvm-build'),
58 os.path.join('third_party','mingw-w64'), 59 os.path.join('third_party','mingw-w64'),
59 os.path.join('third_party','nacl_sdk_binaries'), 60 os.path.join('third_party','nacl_sdk_binaries'),
60 os.path.join('third_party','pefile'), 61 os.path.join('third_party','pefile'),
61 os.path.join('third_party','perl'), 62 os.path.join('third_party','perl'),
62 os.path.join('third_party','psyco_win32'), 63 os.path.join('third_party','psyco_win32'),
63 os.path.join('third_party','pyelftools'), 64 os.path.join('third_party','pyelftools'),
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 'layout_tests')) # lots of subdirs 103 'layout_tests')) # lots of subdirs
103 104
104 ADDITIONAL_PATHS = ( 105 ADDITIONAL_PATHS = (
105 os.path.join('breakpad'), 106 os.path.join('breakpad'),
106 os.path.join('chrome', 'common', 'extensions', 'docs', 'examples'), 107 os.path.join('chrome', 'common', 'extensions', 'docs', 'examples'),
107 os.path.join('chrome', 'test', 'chromeos', 'autotest'), 108 os.path.join('chrome', 'test', 'chromeos', 'autotest'),
108 os.path.join('chrome', 'test', 'data'), 109 os.path.join('chrome', 'test', 'data'),
109 os.path.join('native_client'), 110 os.path.join('native_client'),
110 os.path.join('net', 'tools', 'spdyshark'), 111 os.path.join('net', 'tools', 'spdyshark'),
111 os.path.join('sdch', 'open-vcdiff'), 112 os.path.join('sdch', 'open-vcdiff'),
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
124 # Directories where we check out directly from upstream, and therefore 123 # Directories where we check out directly from upstream, and therefore
125 # can't provide a README.chromium. Please prefer a README.chromium 124 # can't provide a README.chromium. Please prefer a README.chromium
126 # wherever possible. 125 # wherever possible.
127 SPECIAL_CASES = { 126 SPECIAL_CASES = {
128 os.path.join('native_client'): { 127 os.path.join('native_client'): {
129 "Name": "native client", 128 "Name": "native client",
130 "URL": "http://code.google.com/p/nativeclient", 129 "URL": "http://code.google.com/p/nativeclient",
131 "License": "BSD", 130 "License": "BSD",
132 }, 131 },
133 os.path.join('sdch', 'open-vcdiff'): { 132 os.path.join('sdch', 'open-vcdiff'): {
134 "Name": "open-vcdiff", 133 "Name": "open-vcdiff",
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'): {
140 "Name": "gmock",
141 "URL": "http://code.google.com/p/googlemock",
142 "License": "BSD",
143 "License File": "NOT_SHIPPED",
144 },
145 os.path.join('testing', 'gtest'): {
146 "Name": "gtest",
147 "URL": "http://code.google.com/p/googletest",
148 "License": "BSD",
149 "License File": "NOT_SHIPPED",
150 },
151 os.path.join('third_party', 'angle'): { 138 os.path.join('third_party', 'angle'): {
152 "Name": "Almost Native Graphics Layer Engine", 139 "Name": "Almost Native Graphics Layer Engine",
153 "URL": "http://code.google.com/p/angleproject/", 140 "URL": "http://code.google.com/p/angleproject/",
154 "License": "BSD", 141 "License": "BSD",
155 }, 142 },
156 os.path.join('third_party', 'cros_system_api'): { 143 os.path.join('third_party', 'cros_system_api'): {
157 "Name": "Chromium OS system API", 144 "Name": "Chromium OS system API",
158 "URL": "http://www.chromium.org/chromium-os", 145 "URL": "http://www.chromium.org/chromium-os",
159 "License": "BSD", 146 "License": "BSD",
160 # Absolute path here is resolved as relative to the source root. 147 # Absolute path here is resolved as relative to the source root.
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 if not GenerateCredits(args.file_template, args.entry_template, 552 if not GenerateCredits(args.file_template, args.entry_template,
566 args.output_file, args.target_os): 553 args.output_file, args.target_os):
567 return 1 554 return 1
568 else: 555 else:
569 print __doc__ 556 print __doc__
570 return 1 557 return 1
571 558
572 559
573 if __name__ == '__main__': 560 if __name__ == '__main__':
574 sys.exit(main()) 561 sys.exit(main())
OLDNEW
« no previous file with comments | « tools/checklicenses/checklicenses.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698