add debug logs for ci investigation

This commit is contained in:
Ivan Avdeev 2022-11-13 15:40:25 -08:00 committed by Ivan Avdeev
parent 8849ebfe75
commit 9ddf9c243b
2 changed files with 13 additions and 6 deletions

View File

@ -24,16 +24,16 @@ spvOpNames = dict()
for name, n in spvOp.items():
spvOpNames[n] = name
# print("cwd", os.path.abspath('.'), file=sys.stderr)
#
# src_dir = os.path.abspath(os.path.dirname(args.pipelines.name))
# print("src", src_dir, file=sys.stderr)
#
print("cwd", os.path.abspath('.'), file=sys.stderr)
src_dir = os.path.abspath(os.path.dirname(args.pipelines.name))
print("src", src_dir, file=sys.stderr)
# #dst_dir = os.path.abspath(os.path.dirname(args.output.name))
# #print("dst", dst_dir, file=sys.stderr)
shaders_path = os.path.abspath(args.path if args.path else '.')
# print("shaders_path", shaders_path, file=sys.stderr)
print("shaders_path", shaders_path, file=sys.stderr)
# remove comment lines and fix comma
def prepareJSON(path):

View File

@ -3,6 +3,9 @@ import json
def configure(conf):
conf.find_program('sebastian.py', var='SEBASTIAN', path_list=[conf.path.abspath()])
#print(conf)
#print(conf.env)
#conf.env.SEBASTIAN = conf.find_file('sebastian.py')
class sebastian(Task.Task):
color = 'CYAN'
@ -20,10 +23,14 @@ class sebastian(Task.Task):
out = self.outputs[0]
cmd = env.SEBASTIAN + [node.abspath(), '--path', out.parent.abspath(), '--depend', '-']
print(cmd)
output = bld.cmd_and_log(cmd, cwd = self.get_cwd(), env = env.env or None, quiet = True)
deps = json.loads(output)
print(deps)
ndeps = [bld.path.find_resource(dep) for dep in deps]
print(ndeps)
return (ndeps, [])