summaryrefslogtreecommitdiffstats
path: root/tools/licenses.py
diff options
context:
space:
mode:
authormal@chromium.org <mal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-16 06:07:29 +0000
committermal@chromium.org <mal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-16 06:07:29 +0000
commit946cbf75237b70f9966ee2d639894a37503cd33f (patch)
treec8189f7d1e5bdb10a4cf26ad1db654fbc2573add /tools/licenses.py
parent53b8e6cd46b054ce0ce011ce66a89690376fe566 (diff)
downloadchromium_src-946cbf75237b70f9966ee2d639894a37503cd33f.zip
chromium_src-946cbf75237b70f9966ee2d639894a37503cd33f.tar.gz
chromium_src-946cbf75237b70f9966ee2d639894a37503cd33f.tar.bz2
Modify licenses.py to handle Windows paths and support all DEPS.
Also bring about_credits.html up to date. 1. licenses.py was failing on Windows because of path separators, so I changed remaining path strings to use os.path.join. 2. I wasn't seeing all DEPS on my system, so I modified DEPS locally to ignore os_deps. That led to several changes to make sure os-specific libraries (pdfsqueeze, GTM, for example) get attribution in about_credits. 3. Some of the code we pull in doesn't need attribution in our about_credits (windows SDK), so I added new ignore rules. BUG=none TEST= dunno. about:credits credits everything we include? R= evan@chromium.org Review URL: http://codereview.chromium.org/6263006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71570 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/licenses.py')
-rwxr-xr-xtools/licenses.py59
1 files changed, 44 insertions, 15 deletions
diff --git a/tools/licenses.py b/tools/licenses.py
index 87a8bb8..e4883da 100755
--- a/tools/licenses.py
+++ b/tools/licenses.py
@@ -22,42 +22,60 @@ import sys
# Paths from the root of the tree to directories to skip.
PRUNE_PATHS = set([
# Same module occurs in both the top-level third_party and others.
- "base/third_party/icu",
+ os.path.join('base','third_party','icu'),
# Assume for now that breakpad has their licensing in order.
- "breakpad",
+ os.path.join('breakpad'),
# This is just a tiny vsprops file, presumably written by the googleurl
# authors. Not third-party code.
- "googleurl/third_party/icu",
+ os.path.join('googleurl','third_party','icu'),
# Assume for now that native client has their licensing in order.
- "native_client",
+ os.path.join('native_client'),
# Same module occurs in chrome/ and in net/, so skip one of them.
- "net/third_party/mozilla_security_manager",
+ os.path.join('net','third_party','mozilla_security_manager'),
- # Same module occurs in base/ and in net/, so skip one of them.
- "net/third_party/nss",
+ # Same module occurs in base/, net/, and src/ so skip all but one of them.
+ os.path.join('third_party','nss'),
+ os.path.join('net','third_party','nss'),
# We don't bundle o3d samples into our resulting binaries.
- "o3d/samples",
+ os.path.join('o3d','samples'),
# Not in the public Chromium tree.
- "third_party/adobe",
+ os.path.join('third_party','adobe'),
# Written as part of Chromium.
- "third_party/fuzzymatch",
+ os.path.join('third_party','fuzzymatch'),
# Same license as Chromium.
- "third_party/lss",
+ os.path.join('third_party','lss'),
# Only binaries, used during development.
- "third_party/valgrind",
+ os.path.join('third_party','valgrind'),
# Two directories that are the same as those in base/third_party.
- "v8/src/third_party/dtoa",
- "v8/src/third_party/valgrind",
+ os.path.join('v8','src','third_party','dtoa'),
+ os.path.join('v8','src','third_party','valgrind'),
+
+ # Used for development and test, not in the shipping product.
+ os.path.join('third_party','cygwin'),
+ os.path.join('third_party','lighttpd'),
+ # ---- Check with NACL on this one... we're just pulling bin, not LICENSE
+ # ---- in DEPS.
+ os.path.join('third_party','mingw-w64'),
+ os.path.join('third_party','pefile'),
+ os.path.join('third_party','python_26'),
+
+ # Redistribution does not require attribution in documentation.
+ os.path.join('third_party','directxsdk'),
+ os.path.join('third_party','platformsdk_win2008_6_1'),
+ os.path.join('third_party','platformsdk_win7'),
+
+ # Harfbuzz-ng is not currently shipping in any product:
+ os.path.join('third_party','harfbuzz-ng'),
])
# Directories we don't scan through.
@@ -68,7 +86,7 @@ PRUNE_DIRS = ('.svn', '.git', # VCS metadata
ADDITIONAL_PATHS = (
# The directory with the word list for Chinese and Japanese segmentation
# with different license terms than ICU.
- "third_party/icu/source/data/brkitr",
+ os.path.join('third_party','icu','source','data','brkitr'),
)
@@ -102,6 +120,17 @@ SPECIAL_CASES = {
# Absolute path here is resolved as relative to the source root.
"License File": "/webkit/LICENSE",
},
+ os.path.join('third_party', 'GTM'): {
+ "Name": "Google Toolbox for Mac",
+ "URL": "http://code.google.com/p/google-toolbox-for-mac/",
+ "License File": "COPYING",
+ },
+ # pdfsqueeze is Apache Licensed, reuse the same file from GTM:
+ os.path.join('third_party', 'pdfsqueeze'): {
+ "Name": "pdfsqueeze",
+ "URL": "http://code.google.com/p/pdfsqueeze/",
+ "License File": os.path.join('..','GTM','COPYING'),
+ },
}
class LicenseError(Exception):