diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-03-17 20:31:46 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:26:33 +1000 |
commit | 8f062f4a0f781b351e361ce07d0701f312069851 (patch) | |
tree | 25a71819137eafbc12ecd080e0af517d6fd52cb2 /lib/tdb | |
parent | 8fd62757d25133cda01b38823040e05ac16ca7dc (diff) | |
download | samba-8f062f4a0f781b351e361ce07d0701f312069851.tar.gz samba-8f062f4a0f781b351e361ce07d0701f312069851.tar.xz samba-8f062f4a0f781b351e361ce07d0701f312069851.zip |
build: neater way to find libreplace and start on tevent waf build
Diffstat (limited to 'lib/tdb')
-rw-r--r-- | lib/tdb/wscript | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/lib/tdb/wscript b/lib/tdb/wscript index 4115593de63..c746af6def0 100644 --- a/lib/tdb/wscript +++ b/lib/tdb/wscript @@ -1,23 +1,30 @@ +VERSION='1.2.1' + srcdir = '.' blddir = 'build' +LIBREPLACE_DIR='../replace' + def set_options(opt): - opt.recurse('../talloc') + opt.recurse(LIBREPLACE_DIR) def configure(conf): - conf.recurse('../talloc') + conf.sub_config(LIBREPLACE_DIR) + conf.SAMBA_CONFIG_H() def build(bld): - bld.recurse('../talloc') + bld.add_subdirs(LIBREPLACE_DIR) - COMMON_SOURCE = '''common/check.c common/error.c common/tdb.c common/traverse.c - common/freelistcheck.c common/lock.c common/dump.c common/freelist.c - common/io.c common/open.c common/transaction.c''' + COMMON_SRC = bld.SUBDIR('common', + '''check.c error.c tdb.c traverse.c + freelistcheck.c lock.c dump.c freelist.c + io.c open.c transaction.c''') bld.SAMBA_LIBRARY('tdb', - COMMON_SOURCE, - 'replace talloc', - 'include') + COMMON_SRC, + libdeps='replace talloc', + include_list='include', + vnum=VERSION) bld.SAMBA_BINARY('tdbtorture', 'tools/tdbtorture.c', |