Lines Matching +full:0 +full:- +full:all +full:- +full:deps
3 # Use of this source code is governed by a BSD-style license that can be
8 This script gets all the header files from ninja_deps, which is from the true
28 """Return all the header files from ninja_deps"""
32 os.path.join(SRC_DIR, 'third_party', 'ninja', 'ninja'), '-C', out_dir,
33 '-t', 'deps'
37 popen = subprocess.Popen(cmd, stdout=subprocess.PIPE, bufsize=-1)
71 # build/ only contains build-specific files like build_config.h
82 obj_file = line.split(':')[0]
88 """Return all the header files from GN"""
101 os.path.join(DEPOT_TOOLS_DIR, gn_exe), 'gen', tmp, '--ide=json', '-q'])
134 """Return all the folders controlled by DEPS file"""
140 'recurse', '--no-progress', '-j1',
141 'python', '-c', 'import os;print os.environ["GCLIENT_DEP_PATH"]'],
153 cmd = [os.path.join(DEPOT_TOOLS_DIR, 'ninja'), '-C', out_dir, '-n']
170 def FilterOutDepsedRepo(files, deps): argument
171 return {f for f in files if not any(f.startswith(d) for d in deps)}
194 NOTE: Use ninja to build all targets in OUT_DIR before running
196 parser.add_argument('--out-dir', metavar='OUT_DIR', default='out/Release',
198 parser.add_argument('--json',
200 parser.add_argument('--whitelist', help='file containing whitelist')
201 parser.add_argument('--skip-dirty-check', action='store_true',
203 parser.add_argument('--verbose', action='store_true',
212 dirty_msg = 'OUT_DIR looks dirty. You need to build all there.'
219 return 0
238 missing = set(d.keys()) - gn
241 deps, deps_err = deps_q.get()
242 missing = FilterOutDepsedRepo(missing, deps)
243 nonexisting = FilterOutDepsedRepo(nonexisting, deps)
255 if len(GetNonExistingFiles(d)) > 0:
256 print('Non-existing files in ninja deps:', GetNonExistingFiles(d))
257 PrintError('Found non-existing files in ninja deps. You should ' +
258 'build all in OUT_DIR.')
259 if len(d) == 0:
260 PrintError('OUT_DIR looks empty. You should build all there.')
262 PrintError('OUT_DIR looks wrong. You should build all there.')
266 missing -= whitelist
267 nonexisting -= whitelist
274 if len(missing) == 0 and len(nonexisting) == 0:
275 return 0
277 if len(missing) > 0:
282 if len(nonexisting) > 0:
283 print('\nThe following non-existing files should be removed from gn files:')
304 # Assume running on the bots. Temporarily return 0 before
306 return 0