summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2015-02-26 11:09:09 +1100
committerMartin Schwenke <martins@samba.org>2015-02-27 09:06:01 +0100
commitd76f800a0e63a9cd865de60fb026e2d23a9c54f4 (patch)
treeac5a92fc96292e4355d6a3f9b6a9eece3d0b999a /lib
parent9750eb7bab12825b3937985ffbcafa1b46ef4626 (diff)
downloadsamba-d76f800a0e63a9cd865de60fb026e2d23a9c54f4.tar.gz
samba-d76f800a0e63a9cd865de60fb026e2d23a9c54f4.tar.xz
samba-d76f800a0e63a9cd865de60fb026e2d23a9c54f4.zip
lib/util: Build iov_buf library only when building samba
lib/util can be built with SAMBA_UTIL_CORE_ONLY for building standalone ctdb. Any new libraries if not required by ctdb should be built only when SAMBA_UTIL_CORE_ONLY is not specified. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Fri Feb 27 09:06:01 CET 2015 on sn-devel-104
Diffstat (limited to 'lib')
-rwxr-xr-xlib/util/wscript_build13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/util/wscript_build b/lib/util/wscript_build
index 2588742485..b1cdfd5933 100755
--- a/lib/util/wscript_build
+++ b/lib/util/wscript_build
@@ -1,5 +1,8 @@
#!/usr/bin/env python
+# Please add any new SAMBA_SUBSYSTEM/SAMBA_LIBRARY to the bottom of the file
+# unless they are also required to build standalone ctdb.
+
bld.SAMBA_SUBSYSTEM('time-basic',
source='time_basic.c',
deps='replace',
@@ -36,11 +39,6 @@ bld.SAMBA_LIBRARY('socket-blocking',
local_include=False,
private_library=True)
-bld.SAMBA_LIBRARY('iov_buf',
- source='iov_buf.c',
- local_include=False,
- private_library=True)
-
bld.SAMBA_SUBSYSTEM('samba-util-core',
source='''xfile.c data_blob.c util_file.c time.c
signal.c util.c idtree.c fault.c
@@ -156,3 +154,8 @@ if not bld.env.SAMBA_UTIL_CORE_ONLY:
deps='talloc tdb strv util_tdb tdb-wrap samba-util',
local_include=False,
private_library=True)
+
+ bld.SAMBA_LIBRARY('iov_buf',
+ source='iov_buf.c',
+ local_include=False,
+ private_library=True)