1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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>
This commit is contained in:
Stefan Metzmacher 2013-10-08 11:52:23 +02:00 committed by Michael Adam
parent 1c1a2e4596
commit b17c6ad644

View File

@ -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)