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

Side by Side Diff: tools/verify_source_deps.py

Issue 2385663002: Version 5.5.335.1 (cherry-pick) (Closed)
Patch Set: Created 4 years, 2 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/presubmit.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 2015 the V8 project authors. All rights reserved. 2 # Copyright 2015 the V8 project 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 """ 6 """
7 Script to print potentially missing source dependencies based on the actual 7 Script to print potentially missing source dependencies based on the actual
8 .h and .cc files in the source tree and which files are included in the gyp 8 .h and .cc files in the source tree and which files are included in the gyp
9 and gn files. The latter inclusion is overapproximated. 9 and gn files. The latter inclusion is overapproximated.
10 10
(...skipping 12 matching lines...) Expand all
23 23
24 GYP_FILES = [ 24 GYP_FILES = [
25 os.path.join(V8_BASE, 'src', 'd8.gyp'), 25 os.path.join(V8_BASE, 'src', 'd8.gyp'),
26 os.path.join(V8_BASE, 'src', 'v8.gyp'), 26 os.path.join(V8_BASE, 'src', 'v8.gyp'),
27 os.path.join(V8_BASE, 'src', 'inspector', 'inspector.gypi'), 27 os.path.join(V8_BASE, 'src', 'inspector', 'inspector.gypi'),
28 os.path.join(V8_BASE, 'src', 'third_party', 'vtune', 'v8vtune.gyp'), 28 os.path.join(V8_BASE, 'src', 'third_party', 'vtune', 'v8vtune.gyp'),
29 os.path.join(V8_BASE, 'samples', 'samples.gyp'), 29 os.path.join(V8_BASE, 'samples', 'samples.gyp'),
30 os.path.join(V8_BASE, 'test', 'cctest', 'cctest.gyp'), 30 os.path.join(V8_BASE, 'test', 'cctest', 'cctest.gyp'),
31 os.path.join(V8_BASE, 'test', 'fuzzer', 'fuzzer.gyp'), 31 os.path.join(V8_BASE, 'test', 'fuzzer', 'fuzzer.gyp'),
32 os.path.join(V8_BASE, 'test', 'unittests', 'unittests.gyp'), 32 os.path.join(V8_BASE, 'test', 'unittests', 'unittests.gyp'),
33 os.path.join(V8_BASE, 'test', 'inspector', 'inspector.gyp'),
34 os.path.join(V8_BASE, 'testing', 'gmock.gyp'), 33 os.path.join(V8_BASE, 'testing', 'gmock.gyp'),
35 os.path.join(V8_BASE, 'testing', 'gtest.gyp'), 34 os.path.join(V8_BASE, 'testing', 'gtest.gyp'),
36 os.path.join(V8_BASE, 'tools', 'parser-shell.gyp'), 35 os.path.join(V8_BASE, 'tools', 'parser-shell.gyp'),
37 ] 36 ]
38 37
39 ALL_GYP_PREFIXES = [ 38 ALL_GYP_PREFIXES = [
40 '..', 39 '..',
41 'common', 40 'common',
42 os.path.join('src', 'third_party', 'vtune'), 41 os.path.join('src', 'third_party', 'vtune'),
43 'src', 42 'src',
44 'samples', 43 'samples',
45 'testing', 44 'testing',
46 'tools', 45 'tools',
47 os.path.join('test', 'cctest'), 46 os.path.join('test', 'cctest'),
48 os.path.join('test', 'common'), 47 os.path.join('test', 'common'),
49 os.path.join('test', 'fuzzer'), 48 os.path.join('test', 'fuzzer'),
50 os.path.join('test', 'unittests'), 49 os.path.join('test', 'unittests'),
51 os.path.join('test', 'inspector'),
52 ] 50 ]
53 51
54 GYP_UNSUPPORTED_FEATURES = [ 52 GYP_UNSUPPORTED_FEATURES = [
55 'gcmole', 53 'gcmole',
56 ] 54 ]
57 55
58 GN_FILES = [ 56 GN_FILES = [
59 os.path.join(V8_BASE, 'BUILD.gn'), 57 os.path.join(V8_BASE, 'BUILD.gn'),
60 os.path.join(V8_BASE, 'build', 'secondary', 'testing', 'gmock', 'BUILD.gn'), 58 os.path.join(V8_BASE, 'build', 'secondary', 'testing', 'gmock', 'BUILD.gn'),
61 os.path.join(V8_BASE, 'build', 'secondary', 'testing', 'gtest', 'BUILD.gn'), 59 os.path.join(V8_BASE, 'build', 'secondary', 'testing', 'gtest', 'BUILD.gn'),
62 os.path.join(V8_BASE, 'src', 'inspector', 'BUILD.gn'), 60 os.path.join(V8_BASE, 'src', 'inspector', 'BUILD.gn'),
63 os.path.join(V8_BASE, 'test', 'cctest', 'BUILD.gn'), 61 os.path.join(V8_BASE, 'test', 'cctest', 'BUILD.gn'),
64 os.path.join(V8_BASE, 'test', 'unittests', 'BUILD.gn'), 62 os.path.join(V8_BASE, 'test', 'unittests', 'BUILD.gn'),
65 os.path.join(V8_BASE, 'test', 'inspector', 'BUILD.gn'),
66 os.path.join(V8_BASE, 'tools', 'BUILD.gn'), 63 os.path.join(V8_BASE, 'tools', 'BUILD.gn'),
67 ] 64 ]
68 65
69 GN_UNSUPPORTED_FEATURES = [ 66 GN_UNSUPPORTED_FEATURES = [
70 'aix', 67 'aix',
71 'cygwin', 68 'cygwin',
72 'freebsd', 69 'freebsd',
73 'gcmole', 70 'gcmole',
74 'openbsd', 71 'openbsd',
75 'ppc', 72 'ppc',
76 'qnx', 73 'qnx',
77 'solaris', 74 'solaris',
78 'vtune', 75 'vtune',
79 'x87', 76 'x87',
80 ] 77 ]
81 78
82 ALL_GN_PREFIXES = [ 79 ALL_GN_PREFIXES = [
83 '..', 80 '..',
84 os.path.join('src', 'inspector'), 81 os.path.join('src', 'inspector'),
85 'src', 82 'src',
86 'testing', 83 'testing',
87 os.path.join('test', 'cctest'), 84 os.path.join('test', 'cctest'),
88 os.path.join('test', 'unittests'), 85 os.path.join('test', 'unittests'),
89 os.path.join('test', 'inspector'),
90 ] 86 ]
91 87
92 def pathsplit(path): 88 def pathsplit(path):
93 return re.split('[/\\\\]', path) 89 return re.split('[/\\\\]', path)
94 90
95 def path_no_prefix(path, prefixes): 91 def path_no_prefix(path, prefixes):
96 for prefix in prefixes: 92 for prefix in prefixes:
97 if path.startswith(prefix + os.sep): 93 if path.startswith(prefix + os.sep):
98 return path_no_prefix(path[len(prefix) + 1:], prefixes) 94 return path_no_prefix(path[len(prefix) + 1:], prefixes)
99 return path 95 return path
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 for i in missing_gyp_files(): 168 for i in missing_gyp_files():
173 print i 169 print i
174 170
175 print "\n----------- Files not in gn: -------------" 171 print "\n----------- Files not in gn: -------------"
176 for i in missing_gn_files(): 172 for i in missing_gn_files():
177 print i 173 print i
178 return 0 174 return 0
179 175
180 if '__main__' == __name__: 176 if '__main__' == __name__:
181 sys.exit(main()) 177 sys.exit(main())
OLDNEW
« no previous file with comments | « tools/presubmit.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698