Chromium Code Reviews| Index: tools/verify_source_deps.py |
| diff --git a/tools/verify_source_deps.py b/tools/verify_source_deps.py |
| index 56e3156550aa4c07bac6e87445a0d82f472366c5..4cfedc40fcfcba2c91b7d5f358e0735113d26ca3 100755 |
| --- a/tools/verify_source_deps.py |
| +++ b/tools/verify_source_deps.py |
| @@ -25,16 +25,40 @@ V8_INCLUDE_BASE = os.path.join(V8_BASE, 'include') |
| GYP_FILES = [ |
| os.path.join(V8_BASE, 'src', 'd8.gyp'), |
| os.path.join(V8_BASE, 'src', 'v8.gyp'), |
| + os.path.join(V8_BASE, 'src', 'inspector', 'inspector.gyp'), |
| os.path.join(V8_BASE, 'src', 'third_party', 'vtune', 'v8vtune.gyp'), |
| os.path.join(V8_BASE, 'test', 'cctest', 'cctest.gyp'), |
| os.path.join(V8_BASE, 'test', 'unittests', 'unittests.gyp'), |
| os.path.join(V8_BASE, 'tools', 'parser-shell.gyp'), |
| ] |
| +GN_FILES = [ |
| + os.path.join(V8_BASE, 'BUILD.gn'), |
| + os.path.join(V8_BASE, 'src', 'inspector', 'BUILD.gn'), |
| + os.path.join(V8_BASE, 'test', 'cctest', 'BUILD.gn'), |
| + os.path.join(V8_BASE, 'test', 'unittests', 'BUILD.gn'), |
| + os.path.join(V8_BASE, 'tools', 'BUILD.gn'), |
| +] |
| + |
| +GN_UNSUPPORTED_FEATURES = [ |
| + 'aix', |
| + 'cygwin', |
| + 'freebsd', |
| + 'openbsd', |
| + 'ppc', |
| + 'qnx', |
| + 'solaris', |
| + 'valgrind', |
| + 'vtune', |
| + 'x87', |
| +] |
| + |
| def path_no_prefix(path): |
|
vogelheim
2016/09/15 12:07:06
maybe:
for prefix in ['..', 'src/inspector/', ...
jochen (gone - plz use gerrit)
2016/09/15 12:24:18
done
|
| if path.startswith('../'): |
| return path_no_prefix(path[3:]) |
| + elif path.startswith('src/inspector/'): |
| + return path_no_prefix(path[14:]) |
| elif path.startswith('src/'): |
| return path_no_prefix(path[4:]) |
| else: |
| @@ -99,8 +123,12 @@ print "----------- Files not in gyp: ------------" |
| for i in sorted(icheck_values(gyp_values, V8_SRC_BASE, V8_INCLUDE_BASE)): |
| print i |
| -gn_values = set(iflatten_gn_file(os.path.join(V8_BASE, 'BUILD.gn'))) |
| +gn_values = set(itertools.chain( |
| + *[iflatten_gn_file(gn_file) for gn_file in GN_FILES] |
| + )) |
| print "\n----------- Files not in gn: -------------" |
| for i in sorted(icheck_values(gn_values, V8_SRC_BASE, V8_INCLUDE_BASE)): |
| + if set((f for f in GN_UNSUPPORTED_FEATURES if f in i)): |
|
vogelheim
2016/09/15 12:07:05
If I understand this, you want to know whether the
vogelheim
2016/09/15 12:07:05
Why set(..)?
I know the set(...) trick mainly to
jochen (gone - plz use gerrit)
2016/09/15 12:24:18
i is a filename, like 'disassembler-ppc.cc', and u
vogelheim
2016/09/15 12:39:54
Ahh... I don't think 'force-materialize' exists in
|
| + continue |
| print i |