summaryrefslogtreecommitdiff
path: root/source3/wscript_build
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-09-23 07:34:48 +0200
committerMichael Adam <obnox@samba.org>2013-09-23 20:22:02 +0200
commit0895928e8f11f7cd15781a345061dd8db19102d9 (patch)
tree5ce220bbbb4df4a22a64580f5fc1336e25981977 /source3/wscript_build
parent94caaa3867259c1a04c09c050f3487ba1930bae5 (diff)
downloadsamba-0895928e8f11f7cd15781a345061dd8db19102d9.tar.gz
samba-0895928e8f11f7cd15781a345061dd8db19102d9.tar.bz2
samba-0895928e8f11f7cd15781a345061dd8db19102d9.zip
build: define a subsystem TDB_LIB from TDB_LIB_SRC and depend on in sin samba3core
This also allows us to remove vars=locals() from samba3core. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/wscript_build')
-rwxr-xr-xsource3/wscript_build19
1 files changed, 10 insertions, 9 deletions
diff --git a/source3/wscript_build b/source3/wscript_build
index b4528be479..2553223e33 100755
--- a/source3/wscript_build
+++ b/source3/wscript_build
@@ -3,12 +3,6 @@
from samba_utils import *
import samba_version, samba3
-TDB_LIB_SRC = '''
- lib/dbwrap/dbwrap_open.c
- lib/dbwrap/dbwrap_ctdb.c
- lib/dbwrap/dbwrap_watch.c
- lib/g_lock.c'''
-
AVAHI_SRC = 'lib/avahi.c smbd/avahi_register.c'
SERVER_MUTEX_SRC = 'lib/server_mutex.c'
@@ -37,7 +31,6 @@ LIB_SRC = '''
lib/talloc_dict.c
lib/serverid.c
lib/addrchange.c
- ${TDB_LIB_SRC}
../lib/util/debug_s3.c
lib/dumpcore.c
lib/interface.c
@@ -704,6 +697,14 @@ bld.SAMBA3_SUBSYSTEM('samba3util',
deps='ndr samba-security NDR_SECURITY samba-util util_tdb ccan-hash',
vars=locals())
+
+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')
+
bld.SAMBA3_SUBSYSTEM('samba3core',
source=LIB_SRC,
deps='''
@@ -718,8 +719,8 @@ bld.SAMBA3_SUBSYSTEM('samba3core',
param
dbwrap
samba3-util
- errors3''',
- vars=locals())
+ errors3
+ TDB_LIB''')
bld.SAMBA3_LIBRARY('smbd_shim',
source='''lib/smbd_shim.c''',