Skip to content
Browse files

More work on deps tool

  • Loading branch information...
1 parent 14b1bfd commit f64058ef995b2c2f626907596b0eaa805cef1d78 @rpavlik committed Jan 29, 2010
Showing with 7 additions and 2 deletions.
  1. +7 −2 cmake-module-dependencies.py
View
9 cmake-module-dependencies.py
@@ -17,7 +17,7 @@
###
# third-party packages
-import pydot
+import yapgvb # GraphViz
###
# internal packages
@@ -72,6 +72,9 @@ def main(self):
allmodules["system"] = [x.strip()
for x in t1.communicate()[0].splitlines()[1:]]
+ nodes = {}
+ edges = []
+
for key, val in allmodules.iteritems():
findmodules[key] = [x
for x in allmodules[key]
@@ -80,7 +83,6 @@ def main(self):
for x in allmodules[key]
if re.match(r"Find", x) is None]
-
for infile, number in zip(inputfiles, range(1, len(inputfiles)+1)):
print "------------------------"
print infile + " - " + str(number) + " of " + str(len(inputfiles))
@@ -89,8 +91,11 @@ def main(self):
visitor = self.processFile(infile)
shortname = os.path.relpath(infile)
pathto = os.path.split(shortname)[0]
+
+
dependencies["findmodules"][shortname] = visitor.findmodules
dependencies["othermodules"][shortname] = visitor.modules
+ dependencies["othermodules"][shortname] = visitor.modules
dependencies["optionalmodules"][shortname] = visitor.optionalmodules
dependencies["files"][shortname] = [os.path.join(pathto, x)
for x in visitor.files]

0 comments on commit f64058e

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