ambuild2/frontend/base_gen.py
changeset 219 84822e8a3205
parent 218 032616e296da
child 220 0aada1a7b9ec
     1.1 --- a/ambuild2/frontend/base_gen.py	Sat Dec 28 10:21:31 2013 -0500
     1.2 +++ b/ambuild2/frontend/base_gen.py	Sat Dec 28 10:21:44 2013 -0500
     1.3 @@ -122,8 +122,15 @@
     1.4    def AddCopy(self, source, output_path):
     1.5      return self.generator.addCopy(self, source, output_path)
     1.6  
     1.7 -  def AddCommand(self, inputs, argv, outputs, dep_type=None):
     1.8 -    return self.generator.addShellCommand(self, inputs, argv, outputs, dep_type=dep_type)
     1.9 +  def AddCommand(self, inputs, argv, outputs, dep_type=None, weak_inputs=[]):
    1.10 +    return self.generator.addShellCommand(
    1.11 +      self,
    1.12 +      inputs,
    1.13 +      argv,
    1.14 +      outputs,
    1.15 +      dep_type = dep_type,
    1.16 +      weak_inputs = weak_inputs
    1.17 +    )
    1.18  
    1.19    def AddConfigureFile(self, path):
    1.20      return self.generator.addConfigureFile(self, path)
    1.21 @@ -236,7 +243,7 @@
    1.22    def addCopy(self, context, source, output_path):
    1.23      raise Exception('Must be implemented!')
    1.24  
    1.25 -  def addShellCommand(self, context, inputs, argv, outputs, dep_type=None):
    1.26 +  def addShellCommand(self, context, inputs, argv, outputs, dep_type=None, weak_inputs=[]):
    1.27      raise Exception('Must be implemented!')
    1.28  
    1.29    def addConfigureFile(self, context, path):