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)
committerKarolin Seeger <kseeger@samba.org>
Tue, 18 Nov 2014 20:09:04 +0000 (21:09 +0100)
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>
(cherry picked from commit 04bb8ff7e6a3908b952d4d95edc2c7411611ac33)

buildtools/wafsamba/wafsamba.py

index 8deb5a87c85fcab744bdfeaa4b883f0da21b2055..c3a07e6d218c222a4d6c0c4c940ff2fcb79ecf96 100644 (file)
@@ -578,6 +578,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'''
 
@@ -587,7 +588,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')