From 681f3dad7c32fc5dcf51ceda889d1f115a641aaa Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 21 Apr 2010 17:13:16 +1000 Subject: build: added --nonshared-binary=LIST option This allows you to specify some binaries that should be built without shared libs. A non-shared smbtorture will make testing s3 in the build farm easier --- buildtools/wafsamba/samba_bundled.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'buildtools/wafsamba/samba_bundled.py') diff --git a/buildtools/wafsamba/samba_bundled.py b/buildtools/wafsamba/samba_bundled.py index f668d56cb6..f105a2d5ff 100644 --- a/buildtools/wafsamba/samba_bundled.py +++ b/buildtools/wafsamba/samba_bundled.py @@ -127,3 +127,11 @@ def CHECK_BUNDLED_SYSTEM(conf, libname, minversion='0.0.0', sys.exit(1) return False +def NONSHARED_BINARY(bld, name): + '''return True if a binary should be built without non-system shared libs''' + if bld.env.DISABLE_SHARED: + return True + return target_in_list(name, bld.env.NONSHARED_BINARIES, False) +Build.BuildContext.NONSHARED_BINARY = NONSHARED_BINARY + + -- cgit