diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-10-08 11:52:23 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-03-24 17:09:10 +0100 |
commit | b17c6ad6441c19de0fca4ff9ca1bdc2d0b59f300 (patch) | |
tree | c4f18638006ab3b4b3bd3728e1cc860f16cb35ed | |
parent | 1c1a2e459655c6062ab4fc425cb055360a75b3f3 (diff) | |
download | samba-b17c6ad6441c19de0fca4ff9ca1bdc2d0b59f300.tar.gz samba-b17c6ad6441c19de0fca4ff9ca1bdc2d0b59f300.tar.xz samba-b17c6ad6441c19de0fca4ff9ca1bdc2d0b59f300.zip |
s3:wscript: create a libsamba-cluster-support.so
This collects the ctdb version dependent files,
which allows vendors to provide multiple versions
of libsamba-cluster-support.so each compiled against different
ctdb versions.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
-rwxr-xr-x | source3/wscript_build | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/source3/wscript_build b/source3/wscript_build index ad833180aa7..5cc93a2ed0e 100755 --- a/source3/wscript_build +++ b/source3/wscript_build @@ -270,21 +270,32 @@ bld.SAMBA3_SUBSYSTEM('samba3util', lib/sock_exec.c''', deps='ndr samba-security NDR_SECURITY samba-util util_tdb ccan-hash') +bld.SAMBA3_LIBRARY('samba-cluster-support', + source=''' + lib/dbwrap/dbwrap_ctdb.c + lib/messages_ctdbd.c + lib/ctdb_packet.c + lib/ctdbd_conn.c + lib/ctdb_conn.c + torture/test_ctdbconn.c + ''', + deps=''' + talloc + tevent + tdb + ''', + allow_undefined_symbols=True, + private_library=True) bld.SAMBA3_SUBSYSTEM('TDB_LIB', source='''lib/dbwrap/dbwrap_open.c - lib/dbwrap/dbwrap_ctdb.c lib/dbwrap/dbwrap_watch.c lib/g_lock.c''', - deps='dbwrap') + deps='dbwrap samba-cluster-support') bld.SAMBA3_SUBSYSTEM('samba3core', source='''lib/messages.c lib/messages_local.c - lib/messages_ctdbd.c - lib/ctdb_packet.c - lib/ctdbd_conn.c - lib/ctdb_conn.c lib/util_cluster.c lib/id_cache.c lib/talloc_dict.c @@ -1210,7 +1221,6 @@ bld.SAMBA3_BINARY('smbtorture' + bld.env.suffix3, torture/test_authinfo_structs.c torture/test_smbsock_any_connect.c torture/test_cleanup.c - torture/test_ctdbconn.c torture/test_notify.c lib/tevent_barrier.c torture/test_dbwrap_watch.c @@ -1230,6 +1240,7 @@ bld.SAMBA3_BINARY('smbtorture' + bld.env.suffix3, LOCKING NDR_OPEN_FILES idmap + samba-cluster-support ''', cflags='-DWINBINDD_SOCKET_DIR=\"%s\"' % bld.env.WINBINDD_SOCKET_DIR, install=False) |