summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-29 07:47:19 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-29 08:01:48 +1000
commit08c3ce25c6d0571c6271645ef4dae3c5ca2b0e33 (patch)
tree4232bd18f73a40c4034f02ea8cbc2744f7ba006b /buildtools
parent4e7195be362ed51eeab26f7b07dfb7e4dd730d59 (diff)
downloadsamba-08c3ce25c6d0571c6271645ef4dae3c5ca2b0e33.tar.gz
samba-08c3ce25c6d0571c6271645ef4dae3c5ca2b0e33.tar.bz2
samba-08c3ce25c6d0571c6271645ef4dae3c5ca2b0e33.zip
build: added enabled=True/False option to SAMBA_BINARY()
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/wafsamba.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index 6d6416b798..d4766b099d 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -229,9 +229,14 @@ def SAMBA_BINARY(bld, binname, source,
needs_python=False,
vars=None,
install=True,
- install_path=None):
+ install_path=None,
+ enabled=True):
'''define a Samba binary'''
+ if not enabled:
+ SET_TARGET_TYPE(bld, binname, 'DISABLED')
+ return
+
if not SET_TARGET_TYPE(bld, binname, 'BINARY'):
return