lib/util: Build iov_buf library only when building samba
authorAmitay Isaacs <amitay@gmail.com>
Thu, 26 Feb 2015 00:09:09 +0000 (11:09 +1100)
committerMartin Schwenke <martins@samba.org>
Fri, 27 Feb 2015 08:06:01 +0000 (09:06 +0100)
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

lib/util/wscript_build

index 258874248573f9b03e5d162a99d2819386ab8a28..b1cdfd59330270e70e0282a05e30bb47d63817e9 100755 (executable)
@@ -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)