wafsamba: allow an optional dep_vars list to be passed to SAMBA_GENERATOR()
authorStefan Metzmacher <metze@samba.org>
Tue, 26 Aug 2014 21:11:39 +0000 (23:11 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 5 Sep 2014 17:47:06 +0000 (19:47 +0200)
This can be used to checksum variables used in the rule function.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
buildtools/wafsamba/wafsamba.py

index ce391a237556416ce70c7324e820ca43ce9035ec..a9a192be9c065d75750a840fa31ec43da1043dbf 100644 (file)
@@ -589,6 +589,7 @@ def SAMBA_GENERATOR(bld, name, rule, source='', target='',
                     public_headers_install=True,
                     header_path=None,
                     vars=None,
+                    dep_vars=[],
                     always=False):
     '''A generic source generator target'''
 
@@ -598,7 +599,6 @@ def SAMBA_GENERATOR(bld, name, rule, source='', target='',
     if not enabled:
         return
 
-    dep_vars = []
     dep_vars.append('ruledeps')
     dep_vars.append('SAMBA_GENERATOR_VARS')