From ea8d112683504030c782b5f7e41104bdb33f66a1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 20 Mar 2010 22:13:53 -0400 Subject: build: fixed ifaddrs.h for heimdal (from template) --- buildtools/wafsamba/wafsamba.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'buildtools') 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 -- cgit