mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-15 05:29:51 +01:00
add debug logs for ci investigation
This commit is contained in:
parent
8849ebfe75
commit
9ddf9c243b
@ -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):
|
||||
|
@ -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, [])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user