diff options
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r-- | buildtools/wafsamba/wafsamba.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index e7ea4d3117..acb8845295 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -402,19 +402,23 @@ Build.BuildContext.SAMBA_SUBSYSTEM = SAMBA_SUBSYSTEM def SAMBA_GENERATOR(bld, name, rule, source, target, - group='build_source'): + group='build_source', enabled=True): '''A generic source generator target''' if not SET_TARGET_TYPE(bld, name, 'GENERATOR'): return + if not enabled: + return False + bld.SET_BUILD_GROUP(group) bld( rule=rule, source=source, target=target, before='cc', - ext_out='.c') + ext_out='.c', + name=name) Build.BuildContext.SAMBA_GENERATOR = SAMBA_GENERATOR |