[buildj] Fixed issue with multiple outputs given the same name. Other targets referred to by target name inst



commit 499099296d0e39e7e50a9cf2fddb800192d14525
Author: Dylan McCall <dylanmccall gmail com>
Date:   Wed May 11 12:34:38 2011 -0700

    Fixed issue with multiple outputs given the same name. Other targets referred to by target name instead of output name.

 buildj.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/buildj.py b/buildj.py
index 9a42d7f..081d9bd 100644
--- a/buildj.py
+++ b/buildj.py
@@ -84,8 +84,8 @@ class ProjectFile:
 		return option_list
 
 	def get_targets (self):
-		names = dict([(tgt.get_output(), tgt) for tgt in self._targets])
-		deps = dict([(tgt.get_output(), tgt.get_uses()) for tgt in self._targets])
+		names = dict([(tgt.get_name(), tgt) for tgt in self._targets])
+		deps = dict([(tgt.get_name(), tgt.get_uses()) for tgt in self._targets])
 		S = [tgt for tgt in deps if not deps[tgt]]
 		targets = []
 		while S:
@@ -226,6 +226,7 @@ class ProjectTarget(object):
 		"WAF bld arguments dictionary"
 		args = {"features": self.get_features (),
 		        "source":   self.get_input (),
+		        "name":     self.get_name (),
 		        "target":   self.get_output ()}
 		
 		return args



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]