summaryrefslogtreecommitdiff
path: root/wscript_build
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2015-02-23 17:12:46 +0100
committerAndreas Schneider <asn@cryptomilk.org>2015-02-23 22:31:22 +0100
commitc0a463d94abb5c50eaca7b1d402c979684f96a97 (patch)
treec7ab4682ecc3a579b799ab33d4bc8f9c5e55bc1a /wscript_build
parent8e76e267fe105d77400b7c593499f6d175e3467a (diff)
downloadsamba-c0a463d94abb5c50eaca7b1d402c979684f96a97.tar.gz
waf: Only build the wrappers if we enable selftest
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Feb 23 22:31:22 CET 2015 on sn-devel-104
Diffstat (limited to 'wscript_build')
-rw-r--r--wscript_build13
1 files changed, 9 insertions, 4 deletions
diff --git a/wscript_build b/wscript_build
index fc4197441f4..d0fa87b81ea 100644
--- a/wscript_build
+++ b/wscript_build
@@ -2,6 +2,7 @@
# top level waf build script for samba4
+import Options
import os
srcdir = "."
@@ -70,10 +71,14 @@ bld.RECURSE('source4/lib/messaging')
bld.RECURSE('source4/lib/events')
bld.RECURSE('source4/lib/cmdline')
bld.RECURSE('source4/lib/http')
-bld.RECURSE('lib/socket_wrapper')
-bld.RECURSE('lib/resolv_wrapper')
-bld.RECURSE('lib/nss_wrapper')
-bld.RECURSE('lib/uid_wrapper')
+if bld.CONFIG_GET('NSS_WRAPPER'):
+ bld.RECURSE('lib/nss_wrapper')
+if bld.CONFIG_GET('SOCKET_WRAPPER'):
+ bld.RECURSE('lib/socket_wrapper')
+if bld.CONFIG_GET('RESOLV_WRAPPER'):
+ bld.RECURSE('lib/resolv_wrapper')
+if bld.CONFIG_GET('UID_WRAPPER'):
+ bld.RECURSE('lib/uid_wrapper')
if bld.CHECK_FOR_THIRD_PARTY():
bld.RECURSE('third_party')
bld.RECURSE('source4/lib/stream')