summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-20 22:13:53 -0400
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:58 +1000
commitea8d112683504030c782b5f7e41104bdb33f66a1 (patch)
tree353d5ae6ac7ac1a2c919494ae63532357598e133 /buildtools
parent19ed4c709526ef59d3f59f736c224bd16bfcfb3d (diff)
downloadsamba-ea8d112683504030c782b5f7e41104bdb33f66a1.tar.gz
samba-ea8d112683504030c782b5f7e41104bdb33f66a1.tar.bz2
samba-ea8d112683504030c782b5f7e41104bdb33f66a1.zip
build: fixed ifaddrs.h for heimdal (from template)
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/wafsamba.py8
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