Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

More work on deps tool

  • Loading branch information...
commit f64058ef995b2c2f626907596b0eaa805cef1d78 1 parent 14b1bfd
Ryan Pavlik authored

Showing 1 changed file with 7 additions and 2 deletions. Show diff stats Hide diff stats

  1. +7 2 cmake-module-dependencies.py
9 cmake-module-dependencies.py
@@ -17,7 +17,7 @@
17 17
18 18 ###
19 19 # third-party packages
20   -import pydot
  20 +import yapgvb # GraphViz
21 21
22 22 ###
23 23 # internal packages
@@ -72,6 +72,9 @@ def main(self):
72 72 allmodules["system"] = [x.strip()
73 73 for x in t1.communicate()[0].splitlines()[1:]]
74 74
  75 + nodes = {}
  76 + edges = []
  77 +
75 78 for key, val in allmodules.iteritems():
76 79 findmodules[key] = [x
77 80 for x in allmodules[key]
@@ -80,7 +83,6 @@ def main(self):
80 83 for x in allmodules[key]
81 84 if re.match(r"Find", x) is None]
82 85
83   -
84 86 for infile, number in zip(inputfiles, range(1, len(inputfiles)+1)):
85 87 print "------------------------"
86 88 print infile + " - " + str(number) + " of " + str(len(inputfiles))
@@ -89,8 +91,11 @@ def main(self):
89 91 visitor = self.processFile(infile)
90 92 shortname = os.path.relpath(infile)
91 93 pathto = os.path.split(shortname)[0]
  94 +
  95 +
92 96 dependencies["findmodules"][shortname] = visitor.findmodules
93 97 dependencies["othermodules"][shortname] = visitor.modules
  98 + dependencies["othermodules"][shortname] = visitor.modules
94 99 dependencies["optionalmodules"][shortname] = visitor.optionalmodules
95 100 dependencies["files"][shortname] = [os.path.join(pathto, x)
96 101 for x in visitor.files]

0 comments on commit f64058e

Please sign in to comment.
Something went wrong with that request. Please try again.