Lines Matching +full:script +full:- +full:output
4 # Use of this source code is governed by a BSD-style license that can be
8 # Runs ANGLE format table and other script code generation scripts.
25 def get_child_script_dirname(script): argument
26 # All script names are relative to ANGLE's root
27 return os.path.dirname(os.path.abspath(os.path.join(root_dir, script)))
30 def get_executable_name(script): argument
31 with open(script, 'r') as f:
41 def paths_from_auto_script(script, param): argument
42 script_dir = get_child_script_dirname(script)
46 res = subprocess.check_output([exe, os.path.basename(script), param],
49 print('Error with auto_script %s: %s, executable %s' % (param, script, exe))
60 def auto_script(script): argument
62 'inputs': paths_from_auto_script(script, 'inputs'),
63 'outputs': paths_from_auto_script(script, 'outputs')
119 'SPIR-V helpers':
136 # Fast and supports --verify-only without hashes.
188 def update_output_hashes(script, outputs, new_hashes): argument
189 for output in outputs:
190 if not os.path.isfile(output):
191 print('Output is missing from %s: %s' % (script, output))
193 new_hashes[output] = md5(output)
216 '-v',
217 '--verify-no-dirty',
222 '-g', '--generator', action='append', nargs='*', type=str, dest='specified_generators'),
239 for _, script in sorted(ranGenerators.items()):
240 infos[script] = executor.submit(auto_script, script)
242 for name, script in sorted(ranGenerators.items()):
243 info = infos[script].result()
245 filenames = info['inputs'] + info['outputs'] + [script]
257 exe = get_executable_name(script)
258 subprocess.check_call([exe, os.path.basename(script)],
259 cwd=get_child_script_dirname(script))
269 for name, script in sorted(hashless_generators.items()):
270 cmd = [get_executable_name(script), os.path.basename(script)]
271 rc = subprocess.call(cmd + ['--verify-only'], cwd=get_child_script_dirname(script))
279 subprocess.check_call(cmd, cwd=get_child_script_dirname(script))
297 # Update the output hashes again since they can be formatted.
298 for name, script in sorted(ranGenerators.items()):
299 info = auto_script(script)