diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-06-28 12:07:55 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-06-29 14:28:08 +1000 |
commit | 8cbd36afe84685ee1e289fee11065d3eb0cadc22 (patch) | |
tree | c64b463afdfae4b4e1cb8281ad254831e29459ea /buildtools | |
parent | 1e8876a4f1b49a614bc478ae68b067e8cf6aec62 (diff) | |
download | samba-8cbd36afe84685ee1e289fee11065d3eb0cadc22.tar.gz samba-8cbd36afe84685ee1e289fee11065d3eb0cadc22.tar.bz2 samba-8cbd36afe84685ee1e289fee11065d3eb0cadc22.zip |
build: allow always=True/False on SAMBA_GENERATOR()
this allows us to force a rule to always run. Will be used by
samba_version
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'buildtools')
-rw-r--r-- | buildtools/wafsamba/wafsamba.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 5ffe4b8f9b..21ed001372 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -484,7 +484,8 @@ def SAMBA_GENERATOR(bld, name, rule, source='', target='', group='generators', enabled=True, public_headers=None, header_path=None, - vars=None): + vars=None, + always=False): '''A generic source generator target''' if not SET_TARGET_TYPE(bld, name, 'GENERATOR'): @@ -504,6 +505,9 @@ def SAMBA_GENERATOR(bld, name, rule, source='', target='', ext_out='.c', name=name) + if always: + t.always = True + if public_headers is not None: bld.PUBLIC_HEADERS(public_headers, header_path=header_path) return t |