Lines Matching +full:0 +full:- +full:all +full:- +full:deps
2 # Copyright 2017 The Chromium Authors. All rights reserved.
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"""
31 cmd = [os.path.join(DEPOT_TOOLS_DIR, 'ninja'), '-C', out_dir, '-t', 'deps']
34 popen = subprocess.Popen(cmd, stdout=subprocess.PIPE, bufsize=-1)
68 # build/ only contains build-specific files like build_config.h
79 obj_file = line.split(':')[0]
85 """Return all the header files from GN"""
98 os.path.join(DEPOT_TOOLS_DIR, gn_exe), 'gen', tmp, '--ide=json', '-q'])
131 """Return all the folders controlled by DEPS file"""
137 'recurse', '--no-progress', '-j1',
138 'python', '-c', 'import os;print os.environ["GCLIENT_DEP_PATH"]'],
150 cmd = [os.path.join(DEPOT_TOOLS_DIR, 'ninja'), '-C', out_dir, '-n']
167 def FilterOutDepsedRepo(files, deps): argument
168 return {f for f in files if not any(f.startswith(d) for d in deps)}
191 NOTE: Use ninja to build all targets in OUT_DIR before running
193 parser.add_argument('--out-dir', metavar='OUT_DIR', default='out/Release',
195 parser.add_argument('--json',
197 parser.add_argument('--whitelist', help='file containing whitelist')
198 parser.add_argument('--skip-dirty-check', action='store_true',
200 parser.add_argument('--verbose', action='store_true',
209 dirty_msg = 'OUT_DIR looks dirty. You need to build all there.'
216 return 0
235 missing = set(d.keys()) - gn
238 deps, deps_err = deps_q.get()
239 missing = FilterOutDepsedRepo(missing, deps)
240 nonexisting = FilterOutDepsedRepo(nonexisting, deps)
252 if len(GetNonExistingFiles(d)) > 0:
253 print 'Non-existing files in ninja deps:', GetNonExistingFiles(d)
254 PrintError('Found non-existing files in ninja deps. You should ' +
255 'build all in OUT_DIR.')
256 if len(d) == 0:
257 PrintError('OUT_DIR looks empty. You should build all there.')
259 PrintError('OUT_DIR looks wrong. You should build all there.')
263 missing -= whitelist
264 nonexisting -= whitelist
271 if len(missing) == 0 and len(nonexisting) == 0:
272 return 0
274 if len(missing) > 0:
279 if len(nonexisting) > 0:
280 print '\nThe following non-existing files should be removed from gn files:'