8 from collections
import defaultdict
14 for typ
in 'lib app test'.
split():
15 self.
deps[typ] = defaultdict(set)
19 uselst = uselst.split()
24 def smplpkg(self, name, use='', test_use='', app_use=''):
26 Fake being the waf bld method of the same name. The 'use' 27 args can be litteral lists or space separated strings and hold 28 names of packages on which the 'name' pacakge depends. 36 self.
register(
'test', name, test_use)
41 'label="Wire Cell Package Dependencies for view: %s";' % typ.upper(),
47 for n,deps
in d.items():
49 edges.append(
'%s -> %s;' % (n, dep))
50 if not dep.startswith(
"WireCell"):
53 exts =
','.
join(list(exts))
54 preamble.append(
'{rank=same; %s}' % exts)
56 preamble =
'\n\t'.
join(preamble)
57 body =
'\n\t'.
join(edges)
58 return 'digraph %s {\n\t%s\n\t%s\n}\n' % (typ, preamble, body)
64 wscrip_builds = sys.argv[2:]
66 for wb
in wscrip_builds:
69 print (bld.dot(which))
Coord add(Coord c1, Coord c2)
def smplpkg(self, name, use='', test_use='', app_use='')
Proc * join(Pipeline &pipeline, Proc *src, Proc *dst)
def register(self, typ, name, uselst)
void split(std::string const &s, char c, OutIter dest)